packge to allow defining an API via dictionaries
Project description
# dappy
package to allow defining an API declaratively
## Example
```python
from dappy import API, Endpoint
ItunesAPI = API('itunes.apple.com', [
Endpoint(
'search', '/search',
query_map={ 'search_string': 'term' }
),
Endpoint('get', '/lookup', defaults={'id': '656270845'})
])
ItunesAPI.search(search_string='Hello, World')
ItunesAPI.get()
```
* Free software: MIT license
* Documentation: https://dappy.readthedocs.io.
=======
History
=======
0.1.0 (2017-09-13)
------------------
* First release on PyPI.
package to allow defining an API declaratively
## Example
```python
from dappy import API, Endpoint
ItunesAPI = API('itunes.apple.com', [
Endpoint(
'search', '/search',
query_map={ 'search_string': 'term' }
),
Endpoint('get', '/lookup', defaults={'id': '656270845'})
])
ItunesAPI.search(search_string='Hello, World')
ItunesAPI.get()
```
* Free software: MIT license
* Documentation: https://dappy.readthedocs.io.
=======
History
=======
0.1.0 (2017-09-13)
------------------
* First release on PyPI.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dappy-2.0.0.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for dappy-2.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79f079beec7e46aaeb67964720a26d06ee9301130ab214e46054be20c42dd6ca |
|
MD5 | 3329ec0fa28fab57a0bc27972768cda6 |
|
BLAKE2b-256 | 10c240d2c4fc9bad108ee2193bddad2ab8710a4b9767b4ba64bd6a19d90af330 |