An asynchronous, unofficial Whatnot API wrapper
Project description
Whatnot API
Work-in-progress unofficial asynchronous API wrapper for Whatnot API.
Download
poetry add whatnot
or pip install whatnot
Roadmap
See ROADMAP.md
Example
import asyncio
from whatnot import Whatnot
async def main():
async with Whatnot() as whatnot:
whatnot.login("bob@example.com", "secret_password")
# Get the whatnot account
whatnot_user = await whatnot.get_user("whatnot")
print(whatnot_user.username)
# OR await whatnot.get_user_by_id("21123")
# Get user's lives
lives = await whatnot.get_user_lives(whatnot_user.id)
# Print out all of the lives
for live in lives:
print(live.title)
asyncio.run(main())
Project Layout
- whatnot
- exc.py - Exceptions
- interactive_login.py - Interactive Login Tool
- queries.py - Queries
- types.py - Types
- utils.py - Utilities
- whatnot.py - Main class
Disclaimer
This project is unofficial and is not affiliated with or endorsed by Whatnot.
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
whatnot-0.2.0b2.tar.gz
(8.5 kB
view hashes)
Built Distribution
Close
Hashes for whatnot-0.2.0b2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27b200dc2b0a9289287966c084f06f51de5b302164a7b7c9afa40aa8e2139a0c |
|
MD5 | 219266d80d7095c4969eba8b517b36a1 |
|
BLAKE2b-256 | 356ba8c72ebba347abb445adab219b93368be0d764777cec8c378311aa0fbb3d |