Python wrapper for the Fatsecret API
Project description
pyfatsecret
This library provides a lightweight python wrapper for the Fatsecret API with the goal of making it easier to visualize the data retrieved from the API. To that end, this library will usually return lists of identical elements for ease of plotting, discarding extra header fields that the Fatsecret API otherwise includes. All API calls return either a single or list of JSON dictionaries.
Installation
Install the module via pip
$ pip install fatsecret
or easy_install::
$ easy_install fatsecret
Config
Register for a developer account at Fatsecret. You will need your Consumer Key and Consumer Secret key for your application.
Usage
Fatsecret supports both delegated and public calls. Only through delegated calls can you access Fatsecret user profile data.
If you're only interested in the public data you only require a session to make HTTP requests:
from fatsecret import Fatsecret
fs = Fatsecret(consumer_key, consumer_secret)
Once you have created a session then you can start reading from Fatsecret's public food and recipe database
foods = fs.foods_search("Tacos")
Refer to the documentation for further examples and detail
Contributing
All contributions are welcome! I'm not actively maintaining this library, so there's a good chance that any API changes have not been implemented in this wrapper.
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 fatsecret-0.5.0.tar.gz.
File metadata
- Download URL: fatsecret-0.5.0.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50f35e24c50fe03e611de9c5f9862a1d805d98f0da1cfc3552e4ac5030f0980a
|
|
| MD5 |
cbc5bb460ba23bd5025159c8baed554b
|
|
| BLAKE2b-256 |
c0cb31dd1c9fffc0fc96871a5141891ba2f893634eac0a1dd6d98303acd87da4
|
File details
Details for the file fatsecret-0.5.0-py3-none-any.whl.
File metadata
- Download URL: fatsecret-0.5.0-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1618c7750aaa5318bed621416affbfc289567759046aaaed1bf2c4a44332f489
|
|
| MD5 |
901ab8415654c7e2cd192d8265c70abd
|
|
| BLAKE2b-256 |
4a1f661357925cc1879f6c8da531b5c3030925d70d9d2073a0583375ee3f0afb
|