CustomModules
A collection of custom Python modules for Discord bots and various utilities.
Install the base package:
pip install CustomModules
Install with specific module dependencies:
# Install with a specific module's dependencies
pip install CustomModules[statdock]
pip install CustomModules[databasehandler]
pip install CustomModules[loghandler]
# Install multiple modules
pip install CustomModules[statdock,databasehandler,loghandler]
# Install all modules with all dependencies
pip install CustomModules[all]
Available Modules
- AppTranslation - Discord Application translation utilities
- BitmapHandler - Bitmap manipulation and handling
- BotDirectory - Bot directory management
- DatabaseHandler - Multi-database async handler (SQLite, MySQL, PostgreSQL, MongoDB)
- Googletrans - Google Translate integration
- InviteTracker - Discord invite tracking
- Killswitch - Dead by Daylight killswitch monitoring
- Libretrans - LibreTranslate integration
- LogHandler - Advanced logging with colored console output
- Patchnotes - Patch notes management for DeadByDaylight
- PrivateVoice - Private voice channel management
- RandomUsernames - Random username generation
- StatDock - Statistics tracking for Discord
- Steam - Steam API integration
- SteamCharts - Steam Charts data retrieval
- Twitch - Twitch API integration
Usage
Import modules using dot notation:
from CustomModules.bitmap_handler import BitmapHandler
from CustomModules.database_handler import DatabaseHandler
from CustomModules.log_handler import LogManager
from CustomModules.stat_dock import setup as stat_dock_setup
Logger Support (v2.0.2+)
All modules now support optional logger parameter for better debugging and monitoring:
import logging
from CustomModules.bitmap_handler import BitmapHandler
from CustomModules.steam import API as SteamAPI
# Create a parent logger
logger = logging.getLogger('MyApp')
# All modules create child loggers under CustomModules.ModuleName
bitmap = BitmapHandler(['read', 'write'], logger=logger)
# Creates logger: MyApp.CustomModules.BitmapHandler
steam_api = SteamAPI(api_key='your_key', logger=logger)
# Creates logger: MyApp.CustomModules.Steam
# Function-based modules use set_logger()
from CustomModules import killswitch
killswitch.set_logger(logger)
# Creates logger: MyApp.CustomModules.Killswitch
Requirements
- Python 3.10 or higher
- Additional dependencies are installed based on which modules you use (see extras_require)
License
This project is licensed under the GNU Affero General Public License v3 (AGPL-3.0).
Documentation
- INSTALLATION.md - Detailed installation guide for end users
- DEVELOPMENT.md - Guide for developers and contributors
- TROUBLESHOOTING.md - Common issues and solutions
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Support
For issues and questions, please use the GitLab Issues page.
Metadata
Release files for CustomModules 3.2.0
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 |
|---|---|---|---|---|
| custommodules-3.2.0.tar.gz | 68.8 kB | Without provenance | Details for custommodules-3.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| custommodules-3.2.0-py3-none-any.whl | Python 3 | none | any | Details for custommodules-3.2.0-py3-none-any.whl |
Total release size: 145.2 kB
Release files / custommodules-3.2.0.tar.gz
| Download URL | custommodules-3.2.0.tar.gz |
|---|---|
| Size | 68.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
07c0bba3cb32239f5098b3880aa9e660ee6c020f63298a6491a43e20465a535a
|
|
BLAKE2b-256 checksum How to use checksums |
e9d75289ec28fa178f18ec92a7f18ca5040dd391bce47d964ae1503fe37a11b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.2.0 CPython/3.10.20
|
Release files / custommodules-3.2.0-py3-none-any.whl
| Download URL | custommodules-3.2.0-py3-none-any.whl |
|---|---|
| Size | 76.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
27e0a65a2485d97475bc16ec219be8193451bbf98508fbb5944b45f94fa61b83
|
|
BLAKE2b-256 checksum How to use checksums |
a9ab78276c38aa374bc5e9d77751845e0b2b7382cc0f25195e8a2d13de46b2b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.2.0 CPython/3.10.20
|
Security for CustomModules 3.2.0
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.