JoDBS_Tools
JoDBS_Tools is a utility library designed to simplify tasks such as connecting to MongoDB databases, implementing role-based access control in Discord bots, and interfacing with external APIs or Node Networks.
Features
- Simplify Bot Setup: Clear up your main bot file and just pass what you need.
- Database Connection: Seamlessly connect to MongoDB databases.
- Role-Based Decorators: Restrict bot commands based on user roles using custom decorators.
- API Integration: Easily connect to external APIs and retrieve data for your applications.
- Enhanced Bot Network Integration: Additional methods for connecting to your Bot Node Network.
- YouTube Video Notifier: Receive notifications for new videos from your favorite YouTubers.
Upcoming Features
- Asynchronous Functions: Improved performance with asynchronous functions for bot setup and network connections.
- Logging Support: Log all those print statements into a log.txt file instead, no need for endless console spam. Your code runs without issues now, yes?
- Extensive Documentation: Learn how to use a NodeConnection with your Bot.
Installation
Install the package using pip:
pip install JoDBS-Tools
Usage
Run a simple Discord Bot (Local Hosted):
import os
from nextcord.ext import commands
from nextcord import Intents
from JoDBS_Tools import BotSetup
bot = commands.Bot(intents=Intents.all())
env_path = os.path.join(os.path.dirname(__file__), '.env')
bot_setup = BotSetup(bot, env_path=env_path, NodeConnection=False)
if __name__ == "__main__":
bot_setup.setup_bot(NodeConnection=False)
Run Discord Bot with a Node Connection (Cloud Hosted):
from nextcord.ext import commands
from nextcord import Intents
from JoDBS_Tools import BotSetup
bot = commands.Bot(intents=Intents.all())
bot_setup = BotSetup(bot)
if __name__ == "__main__":
bot_setup.setup_bot()
Required Environment Variables
- APPLICATION_ID: Your application ID.
- BNC_API_KEY: Your BNC API key.
- BNC_BASE_URL: The base URL for the BNC API.
- TOKEN: Your authentication token.
Metadata
Release files for JoDBS-Tools 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jodbs_tools-0.2.4.tar.gz | 8.9 kB | Without provenance | Details for jodbs_tools-0.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| JoDBS_Tools-0.2.4-py3-none-any.whl | Python 3 | none | any | Details for JoDBS_Tools-0.2.4-py3-none-any.whl |
Total release size: 18.2 kB
Release files / jodbs_tools-0.2.4.tar.gz
| Download URL | jodbs_tools-0.2.4.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
75019158fc9a68bc5ad1870414b2f417ba8ed8854a6609ef9859fda88c2aac92
|
|
BLAKE2b-256 checksum How to use checksums |
aad914d8732087466a2b48f9a73fdbccac93d8cfd802b1569e19c4f5f8c6dd23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / JoDBS_Tools-0.2.4-py3-none-any.whl
| Download URL | JoDBS_Tools-0.2.4-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
24d70d681aa7c43ab7a5e0f5b04b0180e6308994b7a0fcd552a58ede66cc466d
|
|
BLAKE2b-256 checksum How to use checksums |
550861081d1d43771177310026c3d72551ffe90e41b50b3b9374db4f01a145ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for JoDBS-Tools 0.2.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.