Skip to main content

Work with the Fotoware API in Python

Project description

pyfwapi

Work with the Fotoware API in Python.

Examples

>>> from pyfwapi import Tenant
... fw = Tenant("https://tenant.example.org", client_id="abd123", client_secret="sekret")
...
... async for archive in fw.archives():
...     print(a.name)
Marketing
Technical docs

Design considerations

The API responses are parsed using Pydantic. It's a hefty dependency, but -- for now -- allows easy parsing of the JSON responses. And it also enables easy integration with FastAPI.

Explorations of attrs, cattrs, and msgspec failed to quickly result in satisfactory objects from the API JSON responses.

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

pyfwapi-0.2.1.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

pyfwapi-0.2.1-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file pyfwapi-0.2.1.tar.gz.

File metadata

  • Download URL: pyfwapi-0.2.1.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pyfwapi-0.2.1.tar.gz
Algorithm Hash digest
SHA256 41dc1934e60848f047d891cbf024f7ac94c3cbc79e5bbca3849f0d650d083b64
MD5 88b282be2e45cf5590917f8136aba488
BLAKE2b-256 6727087edac7f9356f3100b9203d220a4ab457a53b17d6ea1afdc86bb120f84f

See more details on using hashes here.

File details

Details for the file pyfwapi-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: pyfwapi-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pyfwapi-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 45d7c352a541109bfb2d5e2a6a0a427170c0eb93d9e115d20832a624ed59f2fe
MD5 3c7136dcb02971564f2fa9c526ee2aac
BLAKE2b-256 7ffc4c4304a6ab7aea2e92d38bad6063b0eb42971f14861fa0b8a12a4a8f5272

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