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!
You can also run pip install git+https://github.com/huantianad/pyvitals to install the latest bleeding edge version
from the GitHub repo directly.
Examples
import os
import pyvitals
# Get the list of levels from the rdlevels API
data = pyvitals.get_sheet_data()
# Only get verified levels
data = pyvitals.get_sheet_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(os.path.join(path, 'main.rdlevel'))
# Parse a rdzip's main.rdlevel directly
level_data = pyvitals.parse_rdzip(data[0]['download_url'])
Documentation
There's no documentation yet :(, but I'll probably get to it eventually. For now, you can check out the docstrings.
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
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 pyvitals-0.4.1.tar.gz.
File metadata
- Download URL: pyvitals-0.4.1.tar.gz
- Upload date:
- Size: 7.5 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ebe00cc4dce6e3eb6cdb68929092c650096c48d3c5ba311dfc69f4bca395872
|
|
| MD5 |
13103d2e7a01de07688b89354f08e10a
|
|
| BLAKE2b-256 |
e1bfc0872388ad56543f726ed6008a4ba05a43d033065049e4ef2866ff0abacb
|
File details
Details for the file pyvitals-0.4.1-py3-none-any.whl.
File metadata
- Download URL: pyvitals-0.4.1-py3-none-any.whl
- Upload date:
- Size: 9.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a48ce1daad33a84f85b6de69891146909ff6083751113cfca5414d551d0057a8
|
|
| MD5 |
5cc7b16b79bf94efff4a4a773cfa3cd3
|
|
| BLAKE2b-256 |
eaa3544db0692e3da1fd000462c5999b9a91c82fbfddffe2f67170a10af0554a
|