{"id":27057301,"url":"https://github.com/bonsancon/pyblaze","last_synced_at":"2025-04-05T11:18:29.215Z","repository":{"id":62592429,"uuid":"504668912","full_name":"bonsancon/pyblaze","owner":"bonsancon","description":"Package that allows you to interact with the Blaze API.","archived":false,"fork":false,"pushed_at":"2022-06-21T22:22:16.000Z","size":42,"stargazers_count":3,"open_issues_count":4,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-04T17:04:06.561Z","etag":null,"topics":["blaze","crash","double","hacktoberfest","python3"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/bonsancon-pyblaze/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bonsancon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-17T20:51:24.000Z","updated_at":"2023-02-22T20:28:05.000Z","dependencies_parsed_at":"2022-11-03T23:00:39.608Z","dependency_job_id":null,"html_url":"https://github.com/bonsancon/pyblaze","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":"alvarofpp/template-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonsancon%2Fpyblaze","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonsancon%2Fpyblaze/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonsancon%2Fpyblaze/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonsancon%2Fpyblaze/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bonsancon","download_url":"https://codeload.github.com/bonsancon/pyblaze/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276159,"owners_count":20912288,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blaze","crash","double","hacktoberfest","python3"],"created_at":"2025-04-05T11:18:28.622Z","updated_at":"2025-04-05T11:18:29.206Z","avatar_url":"https://github.com/bonsancon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyBlaze\n\n\u003ca href=\"https://pypi.org/project/bonsancon-pyblaze/\"\u003e\n  \u003cimg alt=\"PyPI\" src=\"https://img.shields.io/pypi/v/bonsancon-pyblaze.svg\"\u003e\n\u003c/a\u003e\n\nPython package to access Blaze API resources.\n\n```bash\npip install bonsancon-pyblaze\n```\n\n**Games available**:\n\n- [Crash][game-crash]\n- [Double][game-double]\n\n## How to use\n\n```python\nfrom pyblaze import BlazeClient\n\nclient = BlazeClient()\nclient.version()  # Version(version='2.159.0')\n```\n\nIf you want to get data from specific game, you can:\n\n```python\nfrom pyblaze.games import Crash\n\nclient = Crash()\nclient.current()  # CurrentResponse(crash_point=None, total_eur_bet=5454.341490738392, ...)\n```\n\n## Clients and methods\n\nThe package have 3 clients:\n\n| Client        | Description          | `import`                           |\n|---------------|----------------------|------------------------------------|\n| `BlazeClient` | Blaze API Client.    | `from pyblaze import BlazeClient`  |\n| `Crash`       | Blaze Crash Client.  | `from pyblaze.games import Crash`  |\n| `Double`      | Blaze Double Client. | `from pyblaze.games import Double` |\n\n### BlazeClient\n\n| Method                   | Description                    |\n|--------------------------|--------------------------------|\n| `announcement()`         | Get current announcement.      |\n| `chat_rooms()`           | Get chat rooms config.         |\n| `chat_room(chat_number)` | Get messages from a chat room. |\n| `country()`              | Get country config.            |\n| `currencies()`           | Get currencies config.         |\n| `settings()`             | Get Blaze platform settings.   |\n| `time()`                 | Get time (for what?).          |\n| `version()`              | Get Blaze platform version.    |\n\n### Games\n\n| Method                                                      | Description                               |\n|-------------------------------------------------------------|-------------------------------------------|\n| `current()`                                                 | Get current game.                         |\n| `get_game_by_id(id)`                                        | Get game data by id.                      |\n| `get_previous_game_hash_by_hash(hash_code)`                 | Get previous game hash by the given hash. |\n| `get_previous_games_to_hash_by_hash(hash_code, hash_match)` | Get previous games to hash.               |\n| `get_previous_n_games_by_hash(hash_code, number_of_games)`  | Get previous N games by the given hash.   |\n| `get_result_by_hash(game_hash)`                             | Get result by the given hash.             |\n| `recent()`                                                  | Get recent results.                       |\n| `recent_history()`                                          | Get recent results.                       |\n\n**TO DO**: fix Double methods to previous games.\n\n## Contributing\n\nContributions are more than welcome. Fork, improve and make a pull request.\nFor bugs, ideas for improvement or other, please create an [issue][issues].\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n[game-crash]: https://blaze.com/pt/games/crash\n[game-double]: https://blaze.com/pt/games/double\n[issues]: https://github.com/bonsancon/pyblaze/issues\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbonsancon%2Fpyblaze","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbonsancon%2Fpyblaze","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbonsancon%2Fpyblaze/lists"}