CRUDs is a high level library for API's, and is ideal for automation system and/or interactive environments like Notebooks
Project description
"Create, Read, Update, Delete"s
CRUDs is a high level library for API's, and is ideal for automated data processing and interactive environments like Notebooks.
>>> import cruds
>>>
>>> catfact_ninja = cruds.Client(host="https://catfact.ninja/")
>>>
>>> data = catfact_ninja.read("fact")
>>> type(date)
<class 'dict'>
Make Create, Read, Update and Delete operations quickly, easily, and safely. CRUDs aims to handle the majority of the setup needed for production so you can focus on moving data.
Features:
- Authentication with a bearer token, username & password, or OAuth2 (Beta)
- Data serialization/deserialize (Only JSON format)
- Request parameters as Dictionaries and automatically URL encoded
- Default connection timeout (300 seconds)
- Raises exceptions on bad status codes (Can be white listed)
- Retries with back-off
- SSL Verification
- Logging for monitoring
- Interfaces (SDK Creation)
Installation
To install a stable version use PyPI.
$ pip install cruds
Documentation
For more information about how to use CRUDS, please visit Read the Docs.
License
CRUDs is released under the MIT License. See the bundled LICENSE file for details.
Credits
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.