GithubHelp home page GithubHelp logo

ton-fragment's Introduction

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

ton-fragment's People

Contributors

iw4p avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.