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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyfwapi-0.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 533c6f4c209c4b97f24839af194270531d1403cbf0235de0f71ff61f33f4a3ed
MD5 5bf1dbcb2c997b6b4d861658b58b5ca1
BLAKE2b-256 70480c0bb770fd88c6c5c555819a60479f54b07c0cf85521e022e529a3e34d5a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyfwapi-0.2.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c8b7bcaf66e649169f1d2dead508b59e5a6170d221715cd184b9645a1cb35e9b
MD5 2357d08e86031c32f7379b91b639beab
BLAKE2b-256 99fe3ca62748eb8b2efbb5476b485ab8a7295fada3e1e34de306397470856760

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