Skip to main content

Python tools for rdlevels

Project description

py-vitals

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

Installation

Just run pip install pyvitals!

Examples

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')

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

pyvitals-0.2.0.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

pyvitals-0.2.0-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

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