dappy 3.0.3

Creator: coderz1093

Last updated:

Add to Cart

Description:

dappy 3.0.3

# dappypackage to allow defining an API declaratively## ExampleAll the API calls below (".get()", ".search()") return a dict parsed with json.loads()```pythonfrom dappy import API, EndpointItunesAPI = API('itunes.apple.com', [ Endpoint( 'search', '/search', query_map={ 'search_string': 'term' }, # Map input query params to what the API actually expects default_query={ 'entity': 'podcast' } # Default query params to send with every request ), Endpoint('get', '/lookup')], scheme='https') # scheme defaults to 'https'ItunesAPI.search(query={ 'search_string': 'Hello, World' # 'search_string" will get mapped to 'term' before we send the request}) # 'entity=podcast' gets added to the query without us providing it hereItunesAPI.get(query={ 'id': '656270845' })```See https://dappy.readthedocs.io/en/latest/usage.html for more usage info.* Free software: MIT license* Documentation: https://dappy.readthedocs.io.=======History=======2.0.1 (2019-01-03)------------------* Readme change to clarify the new API expectations2.0.0 (Who can remember)------------------* API now behaves differently. * no more kwargs on endpoint calls, use `query={}` to pass query params and `params={}` to pass post params1.0.0 (2017-09-13)------------------* First release on PyPI.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.