Python Utility Pack
Project description
pytilpack
Pythonのユーティリティ集。
特徴
- モジュール単位の個別import: 必要なモジュールだけ取り込む
- extrasによる依存の最小化: 対象ライブラリごとに追加インストール
- CLI同梱:
pytilpackコマンドで各種サブコマンドを提供 - 主要Pythonライブラリ向けユーティリティ(FastAPI / Flask / Quart / SQLAlchemy / Pydanticなど)
インストール
ベースパッケージ(stdlib系ユーティリティ + beautifulsoup4/httpx/mcp/werkzeug):
pip install pytilpack
各モジュールが必要とするライブラリはextrasで追加インストールする:
pip install pytilpack[all] # 全モジュール
pip install pytilpack[fastapi] # pytilpack.fastapi 用
pip install pytilpack[flask] # pytilpack.flask 用
# ...
uvx でCLIを使う場合、サブコマンドが要求するextrasを --from で明示する:
uvx pytilpack mcp
uvx --from 'pytilpack[sqlalchemy]' pytilpack wait-for-db-connection "$SQLALCHEMY_DATABASE_URI"
extras 一覧
| Extra | 対象モジュール | 主な依存パッケージ |
|---|---|---|
all |
全モジュール | (全依存) |
babel |
.babel, .i18n |
babel |
bleach |
(markdown extraに含まれる) | bleach |
environ |
.environ |
python-dotenv |
fastapi |
.fastapi |
fastapi, html5lib |
flask |
.flask, .flask_login |
flask, flask-login, html5lib |
markdown |
.markdown |
bleach, markdown, tinycss2 |
msal |
.msal |
azure-identity, cryptography, msal |
pycryptodome |
.pycrypto |
pycryptodome |
pydantic |
.pydantic |
pydantic |
pytest |
.pytest |
pytest, pytest-asyncio |
pyyaml |
.yaml |
pyyaml |
quart |
.quart, .quart_auth |
quart, quart-auth, hypercorn, uvicorn |
sqlalchemy |
.sqlalchemy |
sqlalchemy, tabulate |
tiktoken |
.tiktoken |
tiktoken, openai, pillow |
tqdm |
.tqdm |
tqdm |
web |
.web (check_html) |
html5lib |
extras不要のモジュール(ベースパッケージに含まれる)の代表例は以下のとおり。 全モジュール一覧はドキュメントを参照。
.cache/.crypto/.data_url/.functools.healthcheck/.htmlrag/.http/.httpx/.io.json/.jsonc/.paginator/.random.ratelimit/.secrets/.sse/.validator/.zipfile
主な使い方
各モジュールを個別にimportして利用する。
import pytilpack.xxx
xxx には対象ライブラリ名(httpx や pathlib など)が入る。
モジュール一覧やAPIリファレンスはドキュメントを参照。 一部はCLIもある。詳細はCLIコマンドを参照。
ドキュメント
- https://ak110.github.io/pytilpack/ — 概要・モジュール一覧・APIリファレンス
- https://ak110.github.io/pytilpack/llms.txt — LLM向け構造化インデックス
- docs/development/development.md — 開発者向け情報
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
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
File details
Details for the file pytilpack-1.46.0.tar.gz.
File metadata
- Download URL: pytilpack-1.46.0.tar.gz
- Upload date:
- Size: 347.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bce28b54ea040fedb618fb9295c66dd7dda13a36fe51ee9ce6301e1cc3fe34a
|
|
| MD5 |
41ac40b226b0a40a00d58f5887c299b2
|
|
| BLAKE2b-256 |
42337086cd3a19f2111cb29ebd9004304f68cd6abac936890b89a4de8a9baca0
|
File details
Details for the file pytilpack-1.46.0-py3-none-any.whl.
File metadata
- Download URL: pytilpack-1.46.0-py3-none-any.whl
- Upload date:
- Size: 129.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cd92bbcd822c0b303f3f7a3ebdc6a88b6db9822634e774c63ec71a7a8350b7d
|
|
| MD5 |
2872de476e6892994faee61d3883e42f
|
|
| BLAKE2b-256 |
5fdb74f88fb3b7044600210d7e45269926407ef73258af7003daf14628664925
|