Skip to main content

No project description provided

Project description

apix

Example

# models.py
from apix import Schema, Path, PathInfo

class Data(Schema):
    key: str
    value: str

class GetData(Path[Data]):
    __info__ = PathInfo("GET", "/data", Data)
    key: str

# sync.py
from apix.sync import SyncClient

class MySyncClient(SyncClient):
    BASE_URL = "https://my.api"

    def get_data(self, key: str) -> Data:
        return self(GetData(key=key))


# main.py
from apix import Config

with MySyncClient() as client:
    print(client.get_data("Key")) # "Value"

Serializers

Http Clients

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

apix-0.0a3.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

apix-0.0a3-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file apix-0.0a3.tar.gz.

File metadata

  • Download URL: apix-0.0a3.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.10.4 CPython/3.10.12

File hashes

Hashes for apix-0.0a3.tar.gz
Algorithm Hash digest
SHA256 e7883ecde118520e4deadbbca4bed3438f7533d4e94c432e00f111c6e36a2553
MD5 a32094335d1564242030bdeed5c61e9c
BLAKE2b-256 0e1bb2c265fdd39d007d98c443de121c28c76340ec0e1c910c6ebd27cefb2f44

See more details on using hashes here.

File details

Details for the file apix-0.0a3-py3-none-any.whl.

File metadata

  • Download URL: apix-0.0a3-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.10.4 CPython/3.10.12

File hashes

Hashes for apix-0.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 24b5c8e35d81c6804d2cedb5f2d9e2e709482b060506402347de7fb746181edd
MD5 4a958c97e51116945873702a3323a53a
BLAKE2b-256 de0922063684a7e65dbc5fd2a39eb7c0a6626e359e0c55ecbc5c79c0fa2a60b1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page