Metadata-Version: 2.1
Name: pyvitals
Version: 0.2.0
Summary: Python tools for rdlevels
Home-page: https://github.com/huantianad/py-vitals
Author: huantian
Author-email: davidtianli@gmail.com
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/huantianad/py-vitals/issues
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: requests
Requires-Dist: pyyaml

# py-vitals

Python tools for rdlevels, adds a few helpful functions for downloading and parsing levels.

# Installation

Just run `pip install pyvitals`!

# Examples

```python
import pyvitals

# Get the list of levels from the rdlevels API
data = pyvitals.get_site_data()

# Only get verified levels
data = pyvitals.get_site_data(verified_only=True)

# Download the first level in the list to the current directory, unzipping it in the process
path = pyvitals.download_level(data[0]['download_url'], './', unzip = True)

# Parse the rdlevel from the recently download level
level_data = pyvitals.parse_level(f'{path}/main.rdlevel')
```


