Package: ton-fragment
TON FragmentUnOfficial Fragment (Telegram - Ton Coin) Python libraryNote: ⚠️ 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$pipinstallton-fragmentAlso can be found onpypiUsageAvailable optionsFor 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.UsernamesGet All Usernames - Top Auctions - Price high to low:fromton_fragment.usernames.usernamesimportUsernamesall_usernames=Usernames('auction')print(all_usernames.result)Get All Usernames - Top Auctions - Price low to high:fromton_fragment.usernames.usernamesimportUsernamesall_usernames=Usernames('auction','price_asc')print(all_usernames.result)Get All Usernames - Top Auctions - sort by recently listed:fromton_fragment.usernames.usernamesimportUsernamesall_usernames=Usernames('auction','listed')print(all_usernames.result)Get All Usernames - Top Auctions - sort by ending soon:fromton_fragment.usernames.usernamesimportUsernamesall_usernames=Usernames('auction','ending')print(all_usernames.result)NumbersGet All Numbers - For Sale:fromton_fragment.numbers.numbersimportNumbersall_numbers=Numbers('sale')print(all_numbers.result)Get All Numbers - Sold - sort by recently listed:fromton_fragment.numbers.numbersimportNumbersall_numbers=Numbers('sold','listed')print(all_numbers.result)Get All Numbers - For Sale - sort by ending soon:fromton_fragment.numbers.numbersimportNumbersall_numbers=Numbers('sale','ending')print(all_numbers.result)Get a brief information about a numberfromton_fragment.numbers.numberimportNumbermy_number=Number('8888888')print(my_number.data)print(my_number.number)print(my_number.status)print(my_number.ends_in)Star HistoryIssuesFeel free to submit issues and enhancement requests or contact me viavida.page/nima.ContributingPlease refer to each project's style and contribution guidelines for submitting patches and additions. In general, we follow the "fork-and-pull" Git workflow.Forkthe repo on GitHubClonethe project to your own machineUpdate the Versioninsideinit.pyCommitchanges to your own branchPushyour work back up to your forkSubmit aPull requestso that we can review your changesMIT LicenseCopyright (c) 2022 Nima AkbarzadePermission 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.