Skip to main content

Python Utility Pack

Project description

pytilpack

CI

PyPI version

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

主な使い方

各モジュールを個別にimportして利用する。

import pytilpack.xxx

xxx には対象ライブラリ名(httpxpathlib など)が入る。

モジュール一覧やAPIリファレンスはドキュメントを参照。 一部はCLIもある。詳細はCLIコマンドを参照。

ドキュメント

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

pytilpack-1.45.1.tar.gz (343.9 kB view details)

Uploaded Source

Built Distribution

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

pytilpack-1.45.1-py3-none-any.whl (127.7 kB view details)

Uploaded Python 3

File details

Details for the file pytilpack-1.45.1.tar.gz.

File metadata

  • Download URL: pytilpack-1.45.1.tar.gz
  • Upload date:
  • Size: 343.9 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

Hashes for pytilpack-1.45.1.tar.gz
Algorithm Hash digest
SHA256 7e10d0ce3d05cda544b1c007c17de189545202489319bee25585887a1317db02
MD5 8f86346b84c43840be8c0c3a77f64e76
BLAKE2b-256 4b821e254619b9189224e1a28eb9d076184faf7db7f554b7dbe3b08b0bd9da04

See more details on using hashes here.

File details

Details for the file pytilpack-1.45.1-py3-none-any.whl.

File metadata

  • Download URL: pytilpack-1.45.1-py3-none-any.whl
  • Upload date:
  • Size: 127.7 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

Hashes for pytilpack-1.45.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7887b7178e47519a870a0ae5166930b7454673f99adc61befb344faffb1899e6
MD5 4d4990cf2a3decba5bd4701ef7e9735b
BLAKE2b-256 6f3052c889f3766d264517129565ecfccef8112e07b78e335cce4c2f6e5d3504

See more details on using hashes here.

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