Skip to main content

Async Python client library for the Valentina Noir API

Project description

Valentina Python Client

Async Python client library for accessing the Valentina Noir API.

Features

  • Async-first design - Built on httpx for efficient async HTTP operations
  • Type-safe - Full type hints with Pydantic models for request/response validation
  • Convenient factory pattern - Create a client once, access services from anywhere
  • Automatic pagination - Stream through large datasets with iter_all() or fetch everything with list_all()
  • Robust error handling - Specific exception types for different error conditions
  • Idempotency support - Optional automatic idempotency keys for safe retries
  • Rate limit handling - Built-in support for automatic rate limit retries

This client is a supported and up-to-date reference implementation for the Valentina Noir API. The full documentation for is available at https://docs.valentina-noir.com/python-api-client/.

Documentation

For complete documentation including configuration options, all available services, response models, and error handling, see the Full Documentation.

Development Tools

Validate Constants

Verify that the Literal type constants in this package are in sync with the live API's /options endpoint. This catches drift between client and server before a release.

# Via duty task
uv run duty validate_constants

# Via script directly
uv run python scripts/validate_constants.py --api-key <key> --company-id <id>

The script reads configuration from (highest precedence first):

  1. CLI arguments (--api-url, --api-key, --company-id)
  2. System environment variables (VALENTINA_CLIENT_BASE_URL, VALENTINA_CLIENT_API_KEY, VALENTINA_CLIENT_DEFAULT_COMPANY_ID)
  3. A .env.secrets file in the project root

Exit codes: 0 = all constants match, 1 = mismatches found, 2 = missing configuration.

Resources

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

valentina_python_client-1.3.0.tar.gz (52.2 kB view details)

Uploaded Source

Built Distribution

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

valentina_python_client-1.3.0-py3-none-any.whl (77.6 kB view details)

Uploaded Python 3

File details

Details for the file valentina_python_client-1.3.0.tar.gz.

File metadata

  • Download URL: valentina_python_client-1.3.0.tar.gz
  • Upload date:
  • Size: 52.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for valentina_python_client-1.3.0.tar.gz
Algorithm Hash digest
SHA256 fa2fcbf0efa728cae6b10da4ed8ec4df9168b40cbb68acdbc4d65728661989ae
MD5 fd27ca18bb8fe3156d331f40348c429e
BLAKE2b-256 e5c784504482ab9362a3dc7ef0f75ce71776de8cb83ffb16f0199a7468347668

See more details on using hashes here.

File details

Details for the file valentina_python_client-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for valentina_python_client-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 77177aaf700401fef6ef1843a41c935468a32813d6136e31c2e29f10ef02fed3
MD5 8a6cd9b08af8afeedf1f38c9b8b3ac78
BLAKE2b-256 d69ecce227e511e2f40e6d8152204fd556e923cfabf86c5e386c32bee93bd103

See more details on using hashes here.

Supported by

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