hwapi: Happy Wheels API Wrapper
Installation
Requirement: Python3.6+
pip(3) install git+https://github.com/kittenswolf/hwapi.git
pip(3) install -r requirements.txt
Usage (async)
import asyncio
import hwapi
client = hwapi.client(useragent="test")
async def test():
jim = await client.user(2)
async for level in jim.levels("newest", "anytime"):
print("Replays for Jim's level '{}':".format(level.name))
async for replay in level.replays("completion_time"):
print(" ID: {} - time: {}".format(replay.id, replay.completion_time))
featured_levels = await client.featured_levels()
print("There are {} featured levels.".format(len(featured_levels)))
async for level in client.levels("newest", "anytime"):
user_location = await level.author.location()
user_joined = await level.author.date_joined()
print("{}'s author: {} location: {}, date joined: {}".format(level.name, level.author.name, user_location, user_joined))
loop = asyncio.get_event_loop()
loop.run_until_complete(test())
Metadata
Release files for hwapi 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| hwapi-0.1.3.tar.gz | 5.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hwapi-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.2 kB
Release files / hwapi-0.1.3.tar.gz
| Download URL | hwapi-0.1.3.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
acc0705e3a3faf59c565c270feb6fe2a9af955da3a1b2ca7e9a29799c17fcf9e
|
|
BLAKE2b-256 checksum How to use checksums |
018d6bdb44b70e0c94a1932c56fd4bbd24cc472b6ae6a14cf3d14c07fb97688b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|
Release files / hwapi-0.1.3-py3-none-any.whl
| Download URL | hwapi-0.1.3-py3-none-any.whl |
|---|---|
| Size | 18.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f8ae0970a46df56c4a48668538c3e7008316ddc8f380f46419781991ca4ffeec
|
|
BLAKE2b-256 checksum How to use checksums |
0fac298d0a8bbcbf0ec3ac86730901ec877f439e6397c22256e52857ccce20f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|
Security for hwapi 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.