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.1.tar.gz
(6.3 kB
view hashes)
Built Distribution
Close
Hashes for python_fragment-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4cd17422d3844fe7cbabb1e818afbd717f1f51dfc6f3a8cac9b5c16f503e3d7 |
|
MD5 | 4476d2566836ee808fbda77179bdf122 |
|
BLAKE2b-256 | 5f698cfc1df7afa785cdd36c026860290651d319c33994ebf07ddf61b6827897 |