No project description provided
Project description
mjkit
Usage
pip install mjkit
Project Structure
└── /
├── LICENSE
├── README.md
├── assets
├── build.sh
├── dist
│ ├── mjkit-0.0.2-py3-none-any.whl
│ └── mjkit-0.0.2.tar.gz
├── mjkit
│ ├── __init__.py
│ ├── errors
│ ├── huggingface
│ ├── support
│ └── utiles
├── poetry.lock
├── poetry.toml
├── pyproject.toml
├── ruff.toml
└── test.py
Project Index
/
__root__
⦿ __root__
File Name Summary LICENSE License the project under the MIT License to allow for open-source distribution and modification. pyproject.toml - Define the purpose and usage of the mjkit project within the codebase architecture
- Highlight its role in managing Python versions and dependencies, emphasizing its compatibility with specific Python versions
- Additionally, stress its integration with the holidays package and the twine tool for development tasks.test.py Enhances project architecture by integrating functionality from readmeai. build.sh - Automates the build process for the project by handling dependencies, updating locks, building packages, and uploading to PyPI
- Ensures Poetry availability, Python version compatibility, and valid PyPI API token for successful package deployment
- Streamlines the packaging workflow for seamless distribution.ruff.toml Define exclusion rules for commonly ignored directories in the project structure to maintain code cleanliness and focus on relevant files. poetry.toml Enable project-specific virtual environments for local development.
mjkit
⦿ mjkitutiles
⦿ mjkit.utiles
File Name Summary get_folder_path.py - Define functions to locate and manage project directories based on specific indicators like .venv,.git, etc
- These functions help determine the project root, handle assets folder paths, and create subfolders within the assets directory
- The code facilitates easy access and organization of project resources.financial_dates.py - Generate financial business days excluding weekends and holidays within a specified date range
- The code determines if a given date falls on a weekend or a holiday, filtering out non-business days
- This functionality is crucial for financial and securities markets to calculate valid trading days effectively.format_elapsed_time.py - Format elapsed time in seconds to a human-readable string
- Handles conversions from seconds to minutes, hours, and days
- Provides a clear representation of time intervals for better readability
- The function is versatile and can be easily integrated into various projects for time-related functionalities.get_logger.py - Create a custom logger with emoji tags for improved readability
- Theget_loggerfunction generates independent loggers for modules, enhancing logging with emoji-tagged messages
- TheEmojiFormatterclass adds emojis to log messages based on their severity levels
- Test examples demonstrate the loggers functionality.suppress_stdout.py - Enable temporary suppression of standard output during code execution by utilizing the suppress_stdoutcontext manager
- This functionality ensures that any print statements or stdout logs generated within the enclosed code block are discarded
- The context manager redirects output to the operating systems null device, effectively silencing any output intended for stdout.timeit.py - Generate a decorator to measure and log execution time for functions and methods
- The decorator captures start time, executes the function, calculates elapsed time, and logs the result
- It supports both standalone functions and class methods, providing insightful timing information for various processes within the codebase architecture.support
⦿ mjkit.support
File Name Summary get_exp_save_path.py - Generate experiment save paths based on date and trial ID, ensuring organized storage for optimization experiments using Optuna
- The function creates directories, assigns unique IDs, and returns the path for saving the best model
- It offers flexibility for custom trial IDs or generates them automatically if not provided.huggingface
⦿ mjkit.huggingface
File Name Summary create_readme.py - Generate README markdown for creating Hugging Face Dataset/Card README.md files
- The code in create_readme.py constructs README content based on provided metadata like tags, datasets, and descriptions
- It ensures a structured YAML header and body sections, including dataset information, usage examples, and last update timestamp
- The script simplifies README generation for Hugging Face projects, enhancing project documentation and visibility.errors
⦿ mjkit.errors
File Name Summary error.py - Define a custom error class, NoDataReceivedError, to handle cases where no data is returned during a query
- This class is crucial for managing scenarios where expected data is missing, ensuring robust error handling within the projects architecture.
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
mjkit-0.0.6.tar.gz
(19.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
mjkit-0.0.6-py3-none-any.whl
(27.0 kB
view details)
File details
Details for the file mjkit-0.0.6.tar.gz.
File metadata
- Download URL: mjkit-0.0.6.tar.gz
- Upload date:
- Size: 19.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c371f0150395d5856e54019389571d616e648bc5747d1d5ab57c8c9aa6a3df9
|
|
| MD5 |
ff6d2cdc5864f7a2d24c4e7c52a5ef5f
|
|
| BLAKE2b-256 |
ffdeed649e7c362ae0aef29bce7c8404ba542cc27b5228e09a907b5eb7f7bde6
|
File details
Details for the file mjkit-0.0.6-py3-none-any.whl.
File metadata
- Download URL: mjkit-0.0.6-py3-none-any.whl
- Upload date:
- Size: 27.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5df79e56cdd16c70bda1f1e179f85a26d16635939d23ac4469c6507281e2db2
|
|
| MD5 |
b05bdbe59a317de4cc3eb94854b553ad
|
|
| BLAKE2b-256 |
e23d5b80afe694db12218e92ed3d0735c530198db7d015666d0fccdd622a4210
|