Skip to main content

習作を兼ねた使い回し用のツール群。

Project description

mrhzr-tools

習作を兼ねた使い回し用のツール群。

Reusable utility tools developed for learning purposes.

インストール方法 / Installation

pip install mrhzr-tools

構成 / Structure

以下の構成図に示す通り、各モジュールは mrhzr.tools ディレクトリ配下に整理されています。

Modules are organized under the mrhzr.tools directory, as shown in the structure below:

└── 📁mrhzr
    └── 📁tools
        ├── __init__.py
        ├── config_manager.py
        └── log.py

使用方法 / Usage

config_manager

YAML 形式のコンフィグファイルを読み込み、セクションごとの設定を返す。 コンフィグファイルの読み込みは一度だけ。

Reads YAML config files and retrieves settings for each section. Load the configuration file only once.

from mrhzr.tools import config_manager

config_manager.init_config("config.yaml")

config = config_manager.get_config("section", default=None)

log

システム全体のログの管理。

Centralized system logging.

from mrhzr.tools import log

# if config=None, use config_manager.get_config("logging", None)
log.init_log(config=None)

logger = log.get_logger(__name__)

依存関係 / Requirements

このパッケージは以下の環境での動作確認をしています:

Confirmed to work in the following environments:

  • Python 3.8+
  • PyYAML 6.0.3+

ライセンス / License

このライブラリは MIT ライセンスのもとで公開されています。

This library is released under the MIT License.

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

mrhzr_tools-1.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

mrhzr_tools-1.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file mrhzr_tools-1.1.0.tar.gz.

File metadata

  • Download URL: mrhzr_tools-1.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mrhzr_tools-1.1.0.tar.gz
Algorithm Hash digest
SHA256 8095341146cbad595eecb0a27e2202923b2693102227ba1966bc92a531b90411
MD5 7472e9fcaf19d72beec78467d26622fe
BLAKE2b-256 3aeafd5c43adead3d2586a5afed40c62ce92e60b469038d21390d4eeeeb04ac0

See more details on using hashes here.

Provenance

The following attestation bundles were made for mrhzr_tools-1.1.0.tar.gz:

Publisher: publish.yml on murahazure/tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mrhzr_tools-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: mrhzr_tools-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mrhzr_tools-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5a81df100a0744d870ffd2290823a87e41d4b72b9b719473e52ba142b949753
MD5 d6a19b91a1a2a612ec3fd1da03996078
BLAKE2b-256 2762a3a547810076fb5fe5e0f68788007e8243b2d79e3edb607a02728e929cd2

See more details on using hashes here.

Provenance

The following attestation bundles were made for mrhzr_tools-1.1.0-py3-none-any.whl:

Publisher: publish.yml on murahazure/tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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