Skip to main content

PyPI - Python Version PyPI - Downloads Coverage

DeclarativeX: Your Declarative HTTP Client 🚀

Why Choose DeclarativeX? 🤷‍♂️

Sick of writing boilerplate for every HTTP request? Headers, JSON parsing, and all that jazz?

Say hello to DeclarativeX!

We handle the nitty-gritty so you can focus on what really counts—your core logic.

🌟 Key Features

  • Declarative Goodness: Decorators make your life easy. Just add and go!
  • Function Over Form: No need for classes. Check the docs for function-based setups.
  • Data Validation: Using Pydantic? We've got your robust validation needs covered.
  • Async Ready: Need it fast? We're async-compatible.
  • Rate Limiting: Stay on the good side of APIs with built-in rate limiting.
  • Authentication: Add authentication with a single line of code.
  • Automatic Retries: We retry failed requests automatically(or reject, if you prefer).
  • Middleware Support: Add your custom logic with ease.
  • Auto Body Parsing: Skip manual parsing. Use a dataclass or Pydantic model for auto-magic.
  • GraphQL: We support GraphQL queries and mutations out of the box.

Installation 🛠️

pip install declarativex

Available extras 🎁

DeclarativeX comes with a few extras that you can install separately. Here's a list of available extras:

  • http2 - HTTP/2 support
  • graphql - GraphQL support
  • brotli - Brotli compression support

To install an extra, just add it to the end of the command:

pip install declarativex[http2,graphql,brotli]

Docs 📖

Find all the details at https://declarativex.dev.

Show Some Love ❤️

Every contribution counts and is super appreciated! 🙏

Liking what you see? Support the creator to keep this project thriving.

ko-fi

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

declarativex-1.6.6.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

declarativex-1.6.6-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file declarativex-1.6.6.tar.gz.

File metadata

  • Download URL: declarativex-1.6.6.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1019-azure

File hashes

Hashes for declarativex-1.6.6.tar.gz
Algorithm Hash digest
SHA256 a6343fbf0cd3cae0a6823dc0752d2346373352e5e210531e8613347cb4fcf9e8
MD5 daf67fd782157b023923552e0e03aa0b
BLAKE2b-256 046de9e1ee8cf9de067209c98a7d262dc112cd9ce307205e4fe92c7f75dede29

See more details on using hashes here.

File details

Details for the file declarativex-1.6.6-py3-none-any.whl.

File metadata

  • Download URL: declarativex-1.6.6-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1019-azure

File hashes

Hashes for declarativex-1.6.6-py3-none-any.whl
Algorithm Hash digest
SHA256 bfd2c1382eddc1fe1f137563696bc55bed31fd7af0c2fcebcc9edf11a7931eaf
MD5 a8e8cf89f053aa571f869bf7e94ebcf0
BLAKE2b-256 ec2f38651211d4425c765986c424dc9bf8c8075ecbc072f03d85bc7d93cfed9e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.6.6 This release

2 files

1.6.5

2 files

1.6.4

2 files

1.6.3

2 files

1.6.2

2 files

1.6.1

2 files

1.6.0

2 files

1.5.2

2 files

1.5.1

2 files

1.5.0

2 files

1.4.1

2 files

1.4.0

2 files

1.3.0

2 files

1.2.0

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page