# python-fragment
<p align="center">
<a href="https://github.com/ren3104/python-fragment/blob/main/LICENSE"><img src="https://img.shields.io/github/license/ren3104/python-fragment" alt="GitHub license"></a>
<a href="https://pypi.org/project/python-fragment"><img src="https://img.shields.io/pypi/v/python-fragment?color=blue" alt="PyPi package version"></a>
<a href="https://pypi.org/project/python-fragment"><img src="https://img.shields.io/pypi/pyversions/python-fragment.svg" alt="Supported python versions"></a>
</p>
## Features
- Fast and asynchronous
- Fully typed
- Easy to contribute and use
## Installation
```shell
pip install -U python-fragment
```
Or using poetry:
```shell
poetry add python-fragment
```
## Quick Start
```python
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())
```
Raw data
{
"_id": null,
"home_page": "https://github.com/ren3104/python-fragment",
"name": "python-fragment",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8,<4.0",
"maintainer_email": "",
"keywords": "async,asyncio,fragment,ton,telegram",
"author": "ren3104",
"author_email": "2ren3104@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/0c/a9/ba434faf9874a44a261e11d1e69af54d79fbe1a73e05902ba903951354a6/python-fragment-0.2.1.tar.gz",
"platform": null,
"description": "# python-fragment\n<p align=\"center\">\n <a href=\"https://github.com/ren3104/python-fragment/blob/main/LICENSE\"><img src=\"https://img.shields.io/github/license/ren3104/python-fragment\" alt=\"GitHub license\"></a>\n <a href=\"https://pypi.org/project/python-fragment\"><img src=\"https://img.shields.io/pypi/v/python-fragment?color=blue\" alt=\"PyPi package version\"></a>\n <a href=\"https://pypi.org/project/python-fragment\"><img src=\"https://img.shields.io/pypi/pyversions/python-fragment.svg\" alt=\"Supported python versions\"></a>\n</p>\n\n## Features\n- Fast and asynchronous\n- Fully typed\n- Easy to contribute and use\n\n## Installation\n```shell\npip install -U python-fragment\n```\nOr using poetry:\n```shell\npoetry add python-fragment\n```\n\n## Quick Start\n```python\nfrom fragment import FragmentAPI\n\nimport asyncio\n\n\nasync def main():\n api = FragmentAPI()\n async with api:\n # Get username auctions\n usernames = await api.usernames.search()\n for username in usernames[:5]:\n print(username)\n # {\n # 'username': 'lynx',\n # 'status': 'auction',\n # 'value': 6619.0,\n # 'datetime': '2023-10-31T06:11:25+00:00',\n # 'is_resale': False\n # }\n\n\nasyncio.run(main())\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Reverse engineered Fragment API that mimics the official webclient",
"version": "0.2.1",
"project_urls": {
"Bug Tracker": "https://github.com/ren3104/python-fragment/issues",
"Homepage": "https://github.com/ren3104/python-fragment",
"Repository": "https://github.com/ren3104/python-fragment"
},
"split_keywords": [
"async",
"asyncio",
"fragment",
"ton",
"telegram"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "5f698cfc1df7afa785cdd36c026860290651d319c33994ebf07ddf61b6827897",
"md5": "4476d2566836ee808fbda77179bdf122",
"sha256": "c4cd17422d3844fe7cbabb1e818afbd717f1f51dfc6f3a8cac9b5c16f503e3d7"
},
"downloads": -1,
"filename": "python_fragment-0.2.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4476d2566836ee808fbda77179bdf122",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8,<4.0",
"size": 7557,
"upload_time": "2023-11-29T17:25:59",
"upload_time_iso_8601": "2023-11-29T17:25:59.058288Z",
"url": "https://files.pythonhosted.org/packages/5f/69/8cfc1df7afa785cdd36c026860290651d319c33994ebf07ddf61b6827897/python_fragment-0.2.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0ca9ba434faf9874a44a261e11d1e69af54d79fbe1a73e05902ba903951354a6",
"md5": "5ffb3181bea5bee54bc26dba25bf5362",
"sha256": "b11a651008fce95bebc35924157f454623263346054aef8b4d9415f2c5d4956b"
},
"downloads": -1,
"filename": "python-fragment-0.2.1.tar.gz",
"has_sig": false,
"md5_digest": "5ffb3181bea5bee54bc26dba25bf5362",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8,<4.0",
"size": 6314,
"upload_time": "2023-11-29T17:25:57",
"upload_time_iso_8601": "2023-11-29T17:25:57.396136Z",
"url": "https://files.pythonhosted.org/packages/0c/a9/ba434faf9874a44a261e11d1e69af54d79fbe1a73e05902ba903951354a6/python-fragment-0.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-29 17:25:57",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ren3104",
"github_project": "python-fragment",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "python-fragment"
}