🚀 Fast API Clients for Python
pip install neoclientThe simplest neoclient file looks like this:
from neoclient import get
@get("https://httpbin.org/ip")
def ip(): ...>>> ip()
{'origin': '1.2.3.4'}If you've come from requests or httpx, the above example is equivelant to:
from requests import get
# or: from httpx import get
def ip():
return get("https://httpbin.org/ip").json()Operations can share configuration from a NeoClient instance:
from neoclient import NeoClient
client = NeoClient("https://httpbin.org/")
@client.get("/ip")
def ip(): ...>>> ip()
{'origin': '1.2.3.4'}