Comments (7)
I'm all for it! I know that @jmathai was hoping to keep the various libraries fairly consistent. Jaisen, I think this would make the client much easier to use - can we start with Python and revisit the other libraries?
from openphoto-python.
Sorry, I'm still learning the GitHub flow.. consider this a duplicate of my pull request in issue #13!
from openphoto-python.
@walkah @sneakypete81 No opposition from me. Whatever makes the most sense for Python devs is > than my philosophical desire to keep the libraries consistent :)
from openphoto-python.
Cool. I'll review the pull request then when I get a chance. @jmathai maybe I'll have a look at bringing some of the other libraries in line - cake and eat it too ;-)
from openphoto-python.
@walkah Possible to leave them backwards compatible for a few versions?
from openphoto-python.
I would think that's a very good idea, yes.
from openphoto-python.
Makes sense to me. Most of my changes are additions rather than modifications to existing behaviour, but you can consider whether or not to include the following modifications to the get() and set() method behaviour:
- Parameters are passed in as keywords rather than a single dictionary: get(endpoint, param1=value1, param2=value2) instead of get(endpoint, {"param1": value1, "param2": value2}).
- Lists and boolean parameters are handled correctly. This doesn't affect compatibility, and seems like a good idea.
- The HTTP response is (optionally) parsed to a dict. The old behaviour can still be requested by specifying "process_response=False". We could make this the default if you like - I chose to make the default "True" since a dict is more useful than a JSON string.
- Error response codes (optionally) raise exceptions. As above.
from openphoto-python.
Related Issues (20)
- Provide the necessary command-line steps to create OAuth tokens HOT 1
- Error 500 "Invalid mime type" HOT 9
- Delete methods should return boolean HOT 2
- Rename to Trovebox HOT 6
- Submit to PyPI
- Python 3 Support HOT 2
- Add support for TravisCI HOT 5
- Remove redundant tag/create API endpoint HOT 2
- Retry if a request fails HOT 1
- More unit tests
- accept use of self-signed ssl certificate HOT 6
- doesn't work with https HOT 2
- CLI does not perform tilde expansion
- error with StringIO cannot read config_file HOT 3
- Properly handle Unicode characters in post params HOT 7
- Uploading files with non ASCII characters fails HOT 5
- Support unicode parameter lists
- Validate config files
- Explicitely state a license in the code (copyright headers) of LICENSE file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openphoto-python.