A way to access nitrotype's unofficial api.
Project description
NitrotypePy
This package accesses nitrotype's official api along with its unofficial user api. Currently still in development.
Installation
pip3 install git+https://github.com/RangerEmerald/NitrotypePy
or
pip3 install git+https://github.com/RangerEmerald/NitrotypePy@branch-name
or
pip3 install NitrotypePy
About
The endpoints this package uses are https://www.nitrotype.com/racer/ along with https://www.nitrotype.com/api/v2/. The first link is used only to access racer information, while the second one is nitrotype's offical api.
Usage
Access user information:
from NitrotypePy import user
print(user('corndog')) # Or use any other username. Make sure it is their username, not their display name
Get team information:
from NitrotypePy import teams
print(teams('NT')) # Or any other team tag
Get top 100 teams:
from NitrotypePy import top
print(top())
Get the latest news:
from NitrotypePy import news
print(news()) # Use this to get all the latest news
print(news(234)) # Use this to get the news by its id
Access any object from the bootstrap:
from NitrotypePy import bootstrap
print(bootstrap("CASH_SENDING")) # Or any other portion of the bootstrap
Access raw api:
from NitrotypePy import api
print(api("")) # Or any other endpoint. For now, this is only a "get" request
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 NitrotypePy-0.0.6.tar.gz.
File metadata
- Download URL: NitrotypePy-0.0.6.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea043dc3df0cab675acfb2b4a81ba12c3473c15c157b2494989bb13b27457fba
|
|
| MD5 |
17297839e62ddc7d091a1986abd48299
|
|
| BLAKE2b-256 |
71575a6e7158da53696391d4968f0cd63998cf95e2deb9f4cdfdc956a2eaf0b7
|
File details
Details for the file NitrotypePy-0.0.6-py3-none-any.whl.
File metadata
- Download URL: NitrotypePy-0.0.6-py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61e5e340e2bf09049e2868bbf9e19348b130282f0490820bd9d658379a3632d1
|
|
| MD5 |
361d6cb24d8c784f796ce8741fa012e0
|
|
| BLAKE2b-256 |
0e550434c725cece7d6cf1ba2b1309a2d52311d45f7d0ab31bdb977a5646e2ac
|