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(query={
'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(query={
'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.1.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for dappy-2.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a80ddb4a4fbe24f27853cf2390b0371a0d47a278f514ccf270745b05611272a5 |
|
MD5 | 59e655f388f05090a4388834cb95dacb |
|
BLAKE2b-256 | b10ae4b2cbf740c1e4e3cb061582e15a6b51e69f74044fc4c4c778df2b0642c4 |