# 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": null,
"docs_url": null,
"requires_python": "<4.0,>=3.8",
"maintainer_email": null,
"keywords": "async, asyncio, fragment, ton, telegram",
"author": "ren3104",
"author_email": "2ren3104@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/14/0e/74fa6e08ca57842ce6407cc73f7260829c10aa8e62e7043697f0989bc873/python-fragment-0.3.0.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.3.0",
"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": "eec6c964f2245c491e6930067f2b6d1cbca5e626522b92744c31cc992d4d4d2f",
"md5": "561502f2c64fb42040fc240ce775a1be",
"sha256": "9825d343cefb9e8057cdb9fbfc630e474f51c9833c4298fcd51018f006edcba4"
},
"downloads": -1,
"filename": "python_fragment-0.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "561502f2c64fb42040fc240ce775a1be",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8",
"size": 7239,
"upload_time": "2024-06-17T18:35:57",
"upload_time_iso_8601": "2024-06-17T18:35:57.609471Z",
"url": "https://files.pythonhosted.org/packages/ee/c6/c964f2245c491e6930067f2b6d1cbca5e626522b92744c31cc992d4d4d2f/python_fragment-0.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "140e74fa6e08ca57842ce6407cc73f7260829c10aa8e62e7043697f0989bc873",
"md5": "424843d1e685de4bee1e04d12bd3c611",
"sha256": "561228d316251f34a9c7d34f557a073f682cdd9ee1b8976019388f685e51d488"
},
"downloads": -1,
"filename": "python-fragment-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "424843d1e685de4bee1e04d12bd3c611",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8",
"size": 6069,
"upload_time": "2024-06-17T18:35:55",
"upload_time_iso_8601": "2024-06-17T18:35:55.118423Z",
"url": "https://files.pythonhosted.org/packages/14/0e/74fa6e08ca57842ce6407cc73f7260829c10aa8e62e7043697f0989bc873/python-fragment-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-17 18:35:55",
"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"
}