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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ff_inventory_api-0.2.1.tar.gz.
File metadata
- Download URL: ff_inventory_api-0.2.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86001b2f5b33615df3054ca2313ba9f6bdfd643fbfb23494845aa624b43f4376
|
|
| MD5 |
bf31cdc14c1d3aff0993bd49b397a777
|
|
| BLAKE2b-256 |
8452f3e12033111405a2676927eb83fefc34307ca9cf3738afacdb98f143160f
|
Provenance
The following attestation bundles were made for ff_inventory_api-0.2.1.tar.gz:
Publisher:
release.yml on marci4/FF-Inventory-API
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ff_inventory_api-0.2.1.tar.gz -
Subject digest:
86001b2f5b33615df3054ca2313ba9f6bdfd643fbfb23494845aa624b43f4376 - Sigstore transparency entry: 805055562
- Sigstore integration time:
-
Permalink:
marci4/FF-Inventory-API@3f5a5a6f49fe947c768cea5e38e1d070b0ad00b8 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/marci4
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3f5a5a6f49fe947c768cea5e38e1d070b0ad00b8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ff_inventory_api-0.2.1-py3-none-any.whl.
File metadata
- Download URL: ff_inventory_api-0.2.1-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39dabea1a7e56943a46991376f038258867ac5c9a88f78039740da25a6d50e6a
|
|
| MD5 |
2e7882fa4779dd6d58b30f016efb26f1
|
|
| BLAKE2b-256 |
16d8f6e741b82a7ed5426dfa89a5bf64260b3806e1db8d6e15096bc881ebcc41
|
Provenance
The following attestation bundles were made for ff_inventory_api-0.2.1-py3-none-any.whl:
Publisher:
release.yml on marci4/FF-Inventory-API
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ff_inventory_api-0.2.1-py3-none-any.whl -
Subject digest:
39dabea1a7e56943a46991376f038258867ac5c9a88f78039740da25a6d50e6a - Sigstore transparency entry: 805055572
- Sigstore integration time:
-
Permalink:
marci4/FF-Inventory-API@3f5a5a6f49fe947c768cea5e38e1d070b0ad00b8 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/marci4
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3f5a5a6f49fe947c768cea5e38e1d070b0ad00b8 -
Trigger Event:
push
-
Statement type: