A python wrapper for the Terra API
Project description
Terra Python Package
A wrapper in python for the Terra endpoints and models.
User Guide: https://docs.tryterra.co/docs/python-project-1
Install using
pip install terra-python
Then import the Terra class from terra.base_client
Initialise a new Terra instance with:
from terra.base_client import Terra
terra = Terra(api_key='YOUR API KEY', dev_id='YOUR DEV ID', secret='YOUR TERRA SECRET');
Now you can call the following functions from the instance:
from_user_idget_activity_for_userget_body_for_userget_daily_for_userget_sleep_for_userget_athlete_for_userget_menstruation_for_userget_nutrition_for_usergenerate_widget_sessiongenerate_authentication_urlget_user_infodeauthenticate_userlist_userslist_providerscheck_terra_signaturehandle_flask_webhookshandle_webhooks
The documentation for the wrapper is available here: https://tryterra.github.io/terra-client-python/
In addition, all the data models documented on [https://docs.tryterra.co/docs/data-models] are available to import and use.
The models support autocompleting the types to manipulate data coming from Terra
Project details
Release history Release notifications | RSS feed
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 terra_python-0.0.13.tar.gz.
File metadata
- Download URL: terra_python-0.0.13.tar.gz
- Upload date:
- Size: 22.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2631e56681e98ae0d0a8e0efb58914e1f0bbf3a744b66cc2f1f1d1f97c0da729
|
|
| MD5 |
67c83648b7d059a73ba20bc3137a9616
|
|
| BLAKE2b-256 |
0323b45a4708a50e9bb6818ddd3743263c0ffaa0715719d7d425aef1d388e8fa
|
File details
Details for the file terra_python-0.0.13-py3-none-any.whl.
File metadata
- Download URL: terra_python-0.0.13-py3-none-any.whl
- Upload date:
- Size: 33.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d4d8187c63db1663e8f62526e336dfaf7facf878862a4665f1b5cdf37bd5643
|
|
| MD5 |
6d0c718d20cc0eb628899c5ecd6e6bde
|
|
| BLAKE2b-256 |
e57cedaede3eb25a7b97ff1d0db6270fb42f6b4f4f937595a06446175d2f9e8d
|