Metadata-Version: 2.1
Name: vital
Version: 0.3.5
Summary: 
Home-page: https://github.com/adeptlabs/vital-python
License: GNU
Keywords: vital,tryvital,python
Author: maitham
Author-email: maitham@tryvital.io
Requires-Python: >=3.8,<4.0
Classifier: Environment :: Console
Classifier: License :: Other/Proprietary License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development :: Documentation
Requires-Dist: PyJWT (>=2.0.1,<3.0.0)
Requires-Dist: arrow
Requires-Dist: auth0-python
Requires-Dist: importlib-metadata (>=3.7.3,<4.0.0)
Requires-Dist: requests
Project-URL: Repository, https://github.com/adeptlabs/vital-python
Description-Content-Type: text/markdown

# vital-python

The official Python Library for [Vital API](https://docs.tryvital.io)


# Install
```
pip install vital
```

# Calling Endpoints

```
from vital import Client

# Available environments are 'sandbox', 'development', and 'production'.
client = Client(client_id='***', secret='***', environment='sandbox')
```

# Supported Endpoints

```
<!-- Dates have to be url encoded -->
start_date =  (datetime.now()-timedelta(days=1)).isoformat())
end_date = datetime.now().isoformat()

client.Link.create(user_key="user_key")
client.Body.get(user_key=**,start_date, end_date)
client.Activity.get(user_key=**,start_date, end_date)
client.Sleep.get(user_key=**,start_date, end_date)
client.SourceSpecific.get(user_key=**,start_date, end_date)
client.User.create(client_user_id=**)
client.User.providers(user_key=**)
client.User.get(client_user_id=**)


from vital.types import WebhookEventCodes, WebhookType

client.Webhooks.test(WebhookEventCodes.HISTORICAL_DATA_UPDATE, 
                     WebhookType.ACTIVITY)
```


# Installing locally 
```
poetry build --format sdist
tar -xvf dist/*-`poetry version -s`.tar.gz -O '*/setup.py' > setup.py
```
