Blaze API
Project description
PyBlaze
Python package to access Blaze API resources.
pip install bonsancon-pyblaze
Games available:
How to use
from pyblaze import BlazeClient
client = BlazeClient()
client.version() # Version(version='2.159.0')
If you want to get data from specific game, you can:
from pyblaze.games import Crash
client = Crash()
client.current() # CurrentResponse(crash_point=None, total_eur_bet=5454.341490738392, ...)
Clients and methods
The package have 3 clients:
Client | Description | import |
---|---|---|
BlazeClient |
Blaze API Client. | from pyblaze import BlazeClient |
Crash |
Blaze Crash Client. | from pyblaze.games import Crash |
Double |
Blaze Double Client. | from pyblaze.games import Double |
BlazeClient
Method | Description | Example |
---|---|---|
announcement |
Get current announcement. | client.announcement() |
chat_rooms |
Get chat rooms config. | client.chat_rooms() |
chat_room |
Get messages from a chat room. | client.chat_room(2) |
country |
Get country config. | client.country() |
currencies |
Get currencies config. | client.currencies() |
settings |
Get Blaze platform settings. | client.settings() |
time |
Get time (for what?). | client.time() |
version |
Get Blaze platform version. | client.version() |
Games
Method | Description | Example |
---|---|---|
recent |
Get recents results. | client.recents() |
current |
Get current game. | client.game() |
get_result_by_hash |
Get result by the given hash. | client.get_result_by_hash(game_hash) |
get_previous_game_hash |
Get previous game by the given hash. | client.get_previous_game_hash(hash_code) |
get_previous_n_games |
Get previous N games by the given hash. | client.get_previous_n_games(hash_code, number_of_games) |
get_previous_games_to_hash |
Get previous games to hash. | client.get_previous_games_to_hash(hash_code, hash_match) |
TO DO: fix Double methods to previous games.
Contributing
Contributions are more than welcome. Fork, improve and make a pull request. For bugs, ideas for improvement or other, please create an issue.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for bonsancon_pyblaze-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e73eb16b5b15c5fe225b17c30be576f06f46c290e4f26ca504828eb196c85a5b |
|
MD5 | 9b56a175e11cfa1b1fd4916d25fd3681 |
|
BLAKE2b-256 | dd3cf128b5f7dc8df69eece83844ce56ddc668f22a957fd4ca76c19891cf0290 |