Reverse engineered Fragment API that mimics the official webclient
Project description
python-fragment
Features
- Fast and asynchronous
- Fully typed
- Easy to contribute and use
Installation
pip install -U python-fragment
Or using poetry:
poetry add python-fragment
Quick Start
from fragment import FragmentAPI
import asyncio
async def main():
api = FragmentAPI()
async with api:
# Get username auctions
usernames = await api.usernames.search()
for username in usernames[:5]:
print(username)
# {
# 'username': 'lynx',
# 'status': 'auction',
# 'value': 6619.0,
# 'datetime': '2023-10-31T06:11:25+00:00',
# 'is_resale': False
# }
asyncio.run(main())
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
python-fragment-0.2.0.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for python_fragment-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 838544c36fb736f728b594e46e31e95e87699aed65aa54404750d4b361ca9267 |
|
MD5 | b49ce170f94697cfd2c23fe152317a0f |
|
BLAKE2b-256 | 048b3ec26f0b9fc280e33ae9465bb722295bd532222ab744e1e73a98b5dbbac5 |