All Projects → ithaka → apiron

ithaka / apiron

Licence: MIT license
🍳 apiron is a Python package that helps you cook a tasty client for RESTful APIs. Just don't wash it with SOAP.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to apiron

RESTEasy
REST API calls made easier
Stars: ✭ 12 (-88.68%)
Mutual labels:  api-client, requests, rest-client
Datafire
A framework for building integrations and APIs
Stars: ✭ 487 (+359.43%)
Mutual labels:  api-client, rest-client
Php Curl Class
PHP Curl Class makes it easy to send HTTP requests and integrate with web APIs
Stars: ✭ 2,903 (+2638.68%)
Mutual labels:  api-client, requests
Apiclientcodegen
A collection of Visual Studio custom tool code generators for Swagger / OpenAPI specification files
Stars: ✭ 50 (-52.83%)
Mutual labels:  api-client, rest-client
bitrix
Bitrix24 REST API client that doesn't suck. Suffer no more.
Stars: ✭ 59 (-44.34%)
Mutual labels:  api-client, rest-client
radiobrowser4j
RadioBrowser Java API library
Stars: ✭ 30 (-71.7%)
Mutual labels:  api-client, rest-client
Apipie
Transform api declaration to js object for frontend. Inspired by VueRouter, koa-middleware and axios.
Stars: ✭ 29 (-72.64%)
Mutual labels:  api-client, rest-client
Requester
Powerful, modern HTTP/REST client built on top of the Requests library
Stars: ✭ 273 (+157.55%)
Mutual labels:  requests, rest-client
Parse Dashboard For Ios
A beautiful mobile client for managing your Parse apps while you are on the go! Now you can easily view and modify your data in the same way you would on the offical desktop client.
Stars: ✭ 81 (-23.58%)
Mutual labels:  api-client, rest-client
drowsy
😪 Lazy integrations tool for RESTful interfaces to aid POC development and streamline integrations
Stars: ✭ 19 (-82.08%)
Mutual labels:  api-client, rest-client
YuiAPI
一个浏览器API测试客户端,API文档生成器,支持chrome/firefox/新版edge
Stars: ✭ 25 (-76.42%)
Mutual labels:  api-client, rest-client
Python Simple Rest Client
Simple REST client for python 3.6+
Stars: ✭ 143 (+34.91%)
Mutual labels:  requests, rest-client
restofus
Restofus - a cross-platform (REST) API client.
Stars: ✭ 18 (-83.02%)
Mutual labels:  api-client, rest-client
Taviloglu.Wrike.ApiClient
.NET Client for Wrike API
Stars: ✭ 24 (-77.36%)
Mutual labels:  api-client, rest-client
Restclient
🦄 Simple HTTP and REST client for Unity based on Promises, also supports Callbacks! 🎮
Stars: ✭ 675 (+536.79%)
Mutual labels:  requests, rest-client
Uplink
A Declarative HTTP Client for Python
Stars: ✭ 824 (+677.36%)
Mutual labels:  api-client, requests
Openapi Generator
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
Stars: ✭ 10,634 (+9932.08%)
Mutual labels:  api-client, rest-client
NClient
💫 NClient is an automatic type-safe .Net HTTP client that allows you to call web service API methods using annotated interfaces or controllers without boilerplate code.
Stars: ✭ 25 (-76.42%)
Mutual labels:  api-client, rest-client
sevenbridges-python
SevenBridges Python Api bindings
Stars: ✭ 41 (-61.32%)
Mutual labels:  api-client, rest-client
pylistenbrainz
A simple ListenBrainz client library for Python
Stars: ✭ 17 (-83.96%)
Mutual labels:  api-client

apiron

PyPI version Supported Python versions Build status Documentation Status Contributor Covenant

apiron helps you cook a tasty client for RESTful APIs. Just don't wash it with SOAP.

Pie in a cast iron skillet

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 import JsonEndpoint, Service

class GitHub(Service):
    domain = 'https://api.github.com'
    user = JsonEndpoint(path='/users/{username}')
    repo = JsonEndpoint(path='/repos/{org}/{repo}')

Interacting with a service

Once your service definition is in place, you can interact with its endpoints:

response = GitHub.user(username='defunkt')
# {"name": "Chris Wanstrath", ...}

response = GitHub.repo(org='github', repo='hub')
# {"description": "hub helps you win at git.", ...}

To learn more about building clients, head over to the docs.

Contributing

We are happy to consider contributions via pull request, especially if they address an existing bug or vulnerability. Please read our contribution guidelines before getting started.

License

This package is available under the MIT license. For more information, view the full license and copyright notice.

Copyright 2018-2022 Ithaka Harbors, Inc.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].