Skip to main content

Python wrapper for FatSecret REST API

Project description

Looking for new maintainer

Life and career have taken me in a different direction and I no longer have time to keep this updated. I've attempted to get this merged back into the original with no success. If you're interested in continuing this then let me know.

pyfatsecret

status

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

fatsecret-0.4.0.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

fatsecret-0.4.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file fatsecret-0.4.0.tar.gz.

File metadata

  • Download URL: fatsecret-0.4.0.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for fatsecret-0.4.0.tar.gz
Algorithm Hash digest
SHA256 85cc4462a24fa6249087851bdf37d4926d4dc2b2d49f440d02be21f01a17f2cb
MD5 c630a8ce5192ce1aee39ba1b8e19f37d
BLAKE2b-256 9ae8453cc5469f046595549c7b1778ae2b553084ae95f8823c948735d5de9408

See more details on using hashes here.

File details

Details for the file fatsecret-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: fatsecret-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for fatsecret-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac781979fea4c69f566d90f4613dad6c15e6eb3cb81ab29b8d88e227d59e79d9
MD5 5acedb594a002e94bb51541a743cc06d
BLAKE2b-256 fcc50b9766f0d72d58b3ef554647f04236bb11b96bd6eef5a3b947ee2830b6f5

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