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.3.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

pyfwapi-0.2.3-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyfwapi-0.2.3.tar.gz
  • Upload date:
  • Size: 14.3 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.3.tar.gz
Algorithm Hash digest
SHA256 2d9ef0e3492d2bf37b7c4ce84a091671c38ebe1fc141448d7b6348b66bb8e735
MD5 5af56536914b3aee96c0d3950359c031
BLAKE2b-256 a07c05cf14682386e8b227a23003b87798e480d5dc4a999928b479cd4207b2b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyfwapi-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 19.5 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a7868c8dd5719588ae75767f7cdb0d13d38bd4a6b0cce0807e03d1839b744fca
MD5 9c31b571e0bf7551fe97a267bb9493a6
BLAKE2b-256 58dd6f1da67ec21c32280db83473ff039c4759ed618e4b4be8958e8cceb6003c

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