Skip to main content

TON Fragment

UnOfficial Fragment (Telegram - Ton Coin) Python library

PyPI version Supported Python versions Downloads Ton-Fragment

Note: ⚠️ This package is still under develop and needs your contribution. Sometimes maybe you get an error, It's normal and fine; You can open an issue to keep me informed.

Installation

$ pip install ton-fragment

Also can be found on pypi

Usage

Available options

For Usernames(x, y) and Numbers(x, y): x can be one of ['auction', 'sold', 'sale'] and it's required. y is not required it can be ['listed', 'ending', 'price_asc']. the default is empty which triggerd price high to low function.

Usernames

Get All Usernames - Top Auctions - Price high to low:

from ton_fragment.usernames.usernames import Usernames
all_usernames = Usernames('auction')
print(all_usernames.result)

Get All Usernames - Top Auctions - Price low to high:

from ton_fragment.usernames.usernames import Usernames
all_usernames = Usernames('auction', 'price_asc')
print(all_usernames.result)

Get All Usernames - Top Auctions - sort by recently listed:

from ton_fragment.usernames.usernames import Usernames
all_usernames = Usernames('auction', 'listed')
print(all_usernames.result)

Get All Usernames - Top Auctions - sort by ending soon:

from ton_fragment.usernames.usernames import Usernames
all_usernames = Usernames('auction', 'ending')
print(all_usernames.result)

Numbers

Get All Numbers - For Sale:

from ton_fragment.numbers.numbers import Numbers
all_numbers = Numbers('sale')
print(all_numbers.result)

Get All Numbers - Sold - sort by recently listed:

from ton_fragment.numbers.numbers import Numbers
all_numbers = Numbers('sold', 'listed')
print(all_numbers.result)

Get All Numbers - For Sale - sort by ending soon:

from ton_fragment.numbers.numbers import Numbers
all_numbers = Numbers('sale', 'ending')
print(all_numbers.result)

Get a brief information about a number

from ton_fragment.numbers.number import Number
my_number = Number('8888888')
print(my_number.data)
print(my_number.number)
print(my_number.status)
print(my_number.ends_in)

Star History

Star History Chart

Issues

Feel free to submit issues and enhancement requests or contact me via vida.page/nima.

Contributing

Please refer to each project's style and contribution guidelines for submitting patches and additions. In general, we follow the "fork-and-pull" Git workflow.

  1. Fork the repo on GitHub
  2. Clone the project to your own machine
  3. Update the Version inside init.py
  4. Commit changes to your own branch
  5. Push your work back up to your fork
  6. Submit a Pull request so that we can review your changes

MIT License

Copyright (c) 2022 Nima Akbarzade

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Metadata

Release files for ton-fragment 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ton-fragment 1.0.3
File Size Uploaded Provenance Actions
ton_fragment-1.0.3.tar.gz 8.6 kB Without provenance Details for ton_fragment-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ton-fragment 1.0.3
File Interpreter ABI Platform Actions
ton_fragment-1.0.3-py3-none-any.whl Python 3 none any Details for ton_fragment-1.0.3-py3-none-any.whl

Total release size: 20.1 kB

Release files / ton_fragment-1.0.3.tar.gz

Download URL ton_fragment-1.0.3.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f1884b3290425d42470434f8ec67661591a751a569e4f8f7c0347d6312f13278
BLAKE2b-256 checksum
How to use checksums
f8cd8bd96c6c182637e4cac4f3f00c1e2881edfd8acd858c9c89743eb8bc3236
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release files / ton_fragment-1.0.3-py3-none-any.whl

Download URL ton_fragment-1.0.3-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
efb1b16360a61cd6861603db139ef32a2dcc3ffb08ba6c074356e5ef81230f3a
BLAKE2b-256 checksum
How to use checksums
984d05902e70087bbe149cf9100aa4b4b658ec9b292fb22755c5aeef376e8bab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Security for ton-fragment 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page