Skip to main content

A simple API Wrapper for bot-hosting.net

Project description

Bot Hosting Wrapper

PyPI Downloads

A simple yet powerful Python wrapper for bot-hosting.net's API

🚀Information

As of 20/01/2025, this library can only be used from bot-hosting.net's nodes. If you try to access it from elsewhere, Cloudflare will block your request with a 403 error.

⚠️ Important: Your account token expires every 2 weeks! If something isn't working, double-check that you're using an up-to-date Auth ID.

This is maintained by @suspectedesp on Github

Table of Contents

Installation

Dependencies | Make sure you have the following installed (+ used version in development):

requests==2.31.0
colorama==0.4.6
datetime==5.4

Install using pip:

pip install requests colorama datetime

Usage

Retrieving your Authorization key

Please follow the instructions to get your auth id:

  • Login to your account and go to this page
  • Open your browser's console (usually by pressing F12 or pressing Control + Shift + I)
  • Navigate to the 'Console' tab
  • Paste in the following code:
var token = localStorage.getItem('token');
console.log('Your Auth ID:', token);

Your Auth ID will now be displayed in the console and can use the module, congrats!

🔹 For a full list of commands and usage examples, check out the Wiki

Changelog

📢 Stay up to date with the latest changes! Find the latest release notes under the Releases tab.

Wiki

Need function documentation, known issues or coding usage? Check out the wiki under the Wiki tab

License

The Unlicense

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.

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 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.

For more information, please refer to https://unlicense.org

Contributing

  • Follow these simple steps for contributing via Github
  • Fork the repository.
  • Create a new branch: git checkout -b feature/my-feature.
  • Commit your changes: git commit -am 'Add my feature'.
  • Push to the branch: git push origin feature/my-feature.
  • Submit a pull request.

💖Credits

Many thanks to:

  • @mathiasDPX for giving me some ideas and remaking the code
  • @pondwader for letting me upload this
  • @Aidan-The-Dev for the useful PR

Thank you all! Your contributions mean a lot, I appreciate it <3

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bot_hosting_wrapper-1.4.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bot_hosting_wrapper-1.4-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file bot_hosting_wrapper-1.4.tar.gz.

File metadata

  • Download URL: bot_hosting_wrapper-1.4.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for bot_hosting_wrapper-1.4.tar.gz
Algorithm Hash digest
SHA256 927eeafddf8a3fc44c9b04703bc008a7c41020cad38967f0377c2653af49057f
MD5 57b163d4e9a8571cccc09b52ddb4b2f6
BLAKE2b-256 96ccf7db55c20efd3e0b67317ff97b9f745014634d50498f7138155c8488f893

See more details on using hashes here.

File details

Details for the file bot_hosting_wrapper-1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for bot_hosting_wrapper-1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 76eb73ee35a83b5f0dc7974eeb2441673aab219ccd5524ae40a8f522ffab7b4a
MD5 3a056ace148a70eaf566489571116429
BLAKE2b-256 f00a08ec7d09828d78263a7b736a63c6a8648e4ef55bd8074df711e4beff9725

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page