Skip to main content

Unofficial Python client for the FF-Inventory web app.

Project description

ff-inventory-api

Unofficial Python client for the FF-Inventory web app.

Features

  • Session handling and login (CSRF extraction)
  • Read organizational lists, create/delete lists, add/remove items
  • Parse inspection basket and upcoming inspections
  • Scrape users overview

Installation

pip install ff-inventory-api

Usage

from ff_inventory_api import FFInventoryAPI, OrganizationalList

api = FFInventoryAPI()
api.login("user@example.com", "password")

# Lists
lists = api.get_organisational_lists()
if lists:
    first = lists[0]
    print(first.id, first.title)

# Basket
basket = api.get_basket()
print(basket)

Development

  • Python >= 3.10
  • Install deps:
pip install -r requirements.txt -r requirements-test.txt
  • Run tests:
pytest -q

License

MIT

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

ff_inventory_api-0.2.2.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

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

ff_inventory_api-0.2.2-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ff_inventory_api-0.2.2.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ff_inventory_api-0.2.2.tar.gz
Algorithm Hash digest
SHA256 e99ed013a6d46ec94c73b89f24871a70d929205cccc36d874cef1a93329e6fe7
MD5 8fe976d7eb81410ec9c034a44e6859c4
BLAKE2b-256 0294502eeaafee64db07b08480502d70ce31418e2ed8a77d1fd59e86d401306d

See more details on using hashes here.

Provenance

The following attestation bundles were made for ff_inventory_api-0.2.2.tar.gz:

Publisher: release.yml on marci4/FF-Inventory-API

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for ff_inventory_api-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4d116e8bbd95955ac9aa73cc41e6021933f9651d474b66cf92bfe29cc12d83b7
MD5 e9aa71e7c8ed8bd39f38e39e24b80e1c
BLAKE2b-256 f9c34e0d8a12ce79bc72311f6942e5679f7a7da536bb564513073d3b8b4199e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for ff_inventory_api-0.2.2-py3-none-any.whl:

Publisher: release.yml on marci4/FF-Inventory-API

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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