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.3.tar.gz
(14.1 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.3-py3-none-any.whl
(16.6 kB
view details)
File details
Details for the file mjkit-0.0.3.tar.gz.
File metadata
- Download URL: mjkit-0.0.3.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13f116d3eba1b228362563318dfbe2ea450ce8c39218cfee3a8000b4541b8684
|
|
| MD5 |
42bbb010c0725a313573f8b4e1bf1af9
|
|
| BLAKE2b-256 |
6d5368de78abd98eb4c2fff217d471248c5a57ca4cdda3df45efb40f2448cade
|
File details
Details for the file mjkit-0.0.3-py3-none-any.whl.
File metadata
- Download URL: mjkit-0.0.3-py3-none-any.whl
- Upload date:
- Size: 16.6 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 |
dea1050112d5e3d326500ba9677e01fa645692e457eb28ac9596a4336675f099
|
|
| MD5 |
feb30f4b80db5d99676fb30983cb1cbf
|
|
| BLAKE2b-256 |
c0613bf6856c7d70bfc9812cbfda6e3668cbb6aa0a5c0fd75d490f5b4ee277bb
|