rokeeru
多言語ロケールリソース自動検出・パース・キャッシュ管理エンジン (Python) / Multi-language Locale Resource Discovery, Parsing, and Caching Engine for Python
日本語
概要
rokeeru は、Python アプリケーション(FastAPI, Flask, Django 等)において、ディレクトリ内の多言語ロケールファイル(JSON, YAML, TOML)を自動検出・ロード・キャッシュし、未翻訳キーのフォールバック補填を提供するライブラリです。
Rust コアエンジンを PyO3 ネイティブバインディングを介して呼び出すことで、高速かつ安全なデータリソース管理を実現します。
インストール
pip install rokeeru
使い方
from rokeeru import RokeeruLoader
# ディレクトリパスとデフォルト言語(フォールバック用)を指定して初期化
loader = RokeeruLoader("./locales", "en")
# ロケールファイルを読み込み
loader.load()
# 利用可能なロケールコード一覧を取得
print(loader.languages()) # ['en', 'ja', 'fr']
# 指定ロケールの翻訳データ(Python 辞書型)を取得
ja_data = loader.get("ja")
print(ja_data)
LICENSE
このプロジェクトのライセンスは MIT ライセンスです。詳しくは LICENSE.MIT をお読みください。また、サードパーティライセンスは NOTICE.md に表記してあります。
English
Overview
rokeeru is a library for Python applications (FastAPI, Flask, Django, etc.) that automatically discovers, loads, caches, and provides key-level fallback for multi-language locale files (JSON, YAML, TOML) in a directory.
Powered by a Rust core engine via PyO3 native bindings, it delivers high-performance, thread-safe resource management.
Installation
pip install rokeeru
Usage
from rokeeru import RokeeruLoader
# Initialize with locales directory path and default fallback language
loader = RokeeruLoader("./locales", "en")
# Load locale files
loader.load()
# Get list of available locale codes
print(loader.languages()) # ['en', 'ja', 'fr']
# Retrieve parsed locale data for a specific language
ja_data = loader.get("ja")
print(ja_data)
LICENSE
This project is licensed under the MIT License. See LICENSE.MIT for details. Third-party licenses are documented in NOTICE.md.
Metadata
Release files for rokeeru 0.1.1
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 | |
|---|---|---|---|---|
| rokeeru-0.1.1.tar.gz | 22.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rokeeru-0.1.1-cp37-abi3-win_amd64.whl | CPython 3.7 | abi3 | Windows x86-64 | Details |
Total release size: 500.4 kB
Release files / rokeeru-0.1.1.tar.gz
| Download URL | rokeeru-0.1.1.tar.gz |
|---|---|
| Size | 22.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
06ffb1211962630f3dae96f8feababcbe17ecfcb8dd8042f7247147bb55f2c05
|
|
BLAKE2b-256 checksum How to use checksums |
764771b1ee9f24cd636c8e16946b3fb3e558d68001500da374ce028e1d84a7c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.14.1
|
Release files / rokeeru-0.1.1-cp37-abi3-win_amd64.whl
| Download URL | rokeeru-0.1.1-cp37-abi3-win_amd64.whl |
|---|---|
| Size | 477.6 kB |
| Tags | CPython 3.7 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
d6ed21161661b30b966e24800bd9db4ece7198a6ec0f69c5098b1d2360c3eec8
|
|
BLAKE2b-256 checksum How to use checksums |
d5c603ee2d3e9942758aa2a1cadca486afbd7f8e50e1ad5317dfe5f8d80f6861
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.14.1
|
Security for rokeeru 0.1.1
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.