wisefood-client
A small, robust Python client for accessing and populating the data infrastructure of the WiseFood platform.
The WiseFood platform exposes two distinct APIs, and this package ships one client for each:
DataClient— the WiseFood Data API: articles, artifacts, guides, guidelines, textbooks, textbook passages, and food-composition tables (FCTables).Client— the WiseFood API: households, members, and member profiles.
Install
pip install wisefood
Quickstart
import os
from wisefood import DataClient, Credentials
client = DataClient(
os.environ["WISEFOOD_API_URL"],
Credentials(username=os.environ["WISEFOOD_USERNAME"],
password=os.environ["WISEFOOD_PASSWORD"]),
)
article = client.articles["some-article-slug"]
print(article.title)
for hit in client.articles.search("mediterranean diet", limit=5):
print(hit.title)
Machine-to-machine auth uses client_id / client_secret instead of username/password.
Documentation
Full docs (concepts, per-resource guides, API reference) live at https://wisefood-client.readthedocs.io.
License
See LICENSE.
Release files for wisefood 0.0.25
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wisefood-0.0.25.tar.gz | 48.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wisefood-0.0.25-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 93.3 kB
Release files / wisefood-0.0.25.tar.gz
| Download URL | wisefood-0.0.25.tar.gz |
|---|---|
| Size | 48.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1acff34c001a7a2fc7d61d1da2e9944883267297bdc7faaf3181b5c1c1e5a14
|
|
BLAKE2b-256 checksum How to use checksums |
1906dec68874a2e6753005ffff5109904c52b661a75ad36b5b70dc65a713a3d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / wisefood-0.0.25-py3-none-any.whl
| Download URL | wisefood-0.0.25-py3-none-any.whl |
|---|---|
| Size | 45.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9236fd4f74d7f09ab588158103782348a85d9f76c263da6f804cdec481e23e53
|
|
BLAKE2b-256 checksum How to use checksums |
25ccd7aea1310a9864db3e81ecd2d308296298e6eaf2d034bf034ae07718243f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|