I'm looking for folks to try out and provide feedback on our Python API client, apiron. You can read about the impetus and see the code in the links below!
:fried_egg: apiron is a Python package that helps you cook a tasty client for RESTful APIs. Just don't wash it with SOAP.
apiron
apiron helps you cook a tasty client for RESTful APIs. Just don't wash it with SOAP.
Gathering data from multiple services has become a ubiquitous task for web application developers
The complexity can grow quickly
calling an API endpoint with multiple parameter sets
calling multiple API endpoints,
calling multiple endpoints in multiple APIs.
While the business logic can get hairy,
the code to interact with those APIs doesn't have to.
apiron provides declarative, structured configuration of services and endpoints
with a unified interface for interacting with them.
Defining a service
A service definition requires a domain
and one or more endpoints with which to interact:
from apiron.service.base import Service
from apiron.endpoint import JsonEndpoint
classGitHub(Service):
domain ='https://api.github.com'
user = JsonEndpoint(path='/users/{username}')
repo = JsonEndpoint(path='/repos/{org}/{repo}')
I'm looking for folks to try out and provide feedback on our Python API client,
apiron
. You can read about the impetus and see the code in the links below!Open sourcing apiron: A Python package for declarative RESTful API interaction
Dane Hillard
ithaka / apiron
:fried_egg: apiron is a Python package that helps you cook a tasty client for RESTful APIs. Just don't wash it with SOAP.
apiron
apiron
helps you cook a tasty client for RESTful APIs. Just don't wash it with SOAP.Gathering data from multiple services has become a ubiquitous task for web application developers The complexity can grow quickly calling an API endpoint with multiple parameter sets calling multiple API endpoints, calling multiple endpoints in multiple APIs. While the business logic can get hairy, the code to interact with those APIs doesn't have to.
apiron
provides declarative, structured configuration of services and endpoints with a unified interface for interacting with them.Defining a service
A service definition requires a domain and one or more endpoints with which to interact:
Interacting with a service
…