Skip to main content

Reverse engineered Fragment API that mimics the official webclient

Project description

python-fragment

GitHub license PyPi package version Supported python versions

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.3.0.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distribution

python_fragment-0.3.0-py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page