Skip to main content

Python Utility Pack

Project description

pytilpack

CI PyPI version

Pythonのユーティリティ集。

インストール

ベースパッケージ(stdlib系ユーティリティ + httpx/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 --from 'pytilpack[mcp]' pytilpack mcp
uvx --from 'pytilpack[sqlalchemy]' pytilpack wait-for-db-connection "$SQLALCHEMY_DATABASE_URI"

extras 一覧

Extra 対象モジュール 依存パッケージ
all 全モジュール (全依存)
anthropic .anthropic anthropic
babel .babel .i18n babel
environ .environ python-dotenv
fastapi .fastapi fastapi等
flask .flask .flask_login flask等
htmlrag .htmlrag beautifulsoup4
markdown .markdown bleach等
mcp CLI: pytilpack mcp mcp等
msal .msal msal等
openai .openai openai
pycryptodome .pycrypto pycryptodome
pydantic .pydantic pydantic
pytest .pytest pytest等
pyyaml .yaml pyyaml
quart .quart .quart_auth quart等
sqlalchemy .sqlalchemy sqlalchemy等
tiktoken .tiktoken tiktoken等
tqdm .tqdm tqdm
web .web (check_html) html5lib

extras不要のモジュール(ベースパッケージに含まれる): .cache .crypto .data_url .functools .healthcheck .http .httpx .io .json .jsonc .paginator .random .ratelimit .secrets .sse .validator

主な使い方

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

import pytilpack.xxx

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

モジュール一覧や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.44.1.tar.gz (339.4 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.44.1-py3-none-any.whl (128.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytilpack-1.44.1.tar.gz
  • Upload date:
  • Size: 339.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.4 {"installer":{"name":"uv","version":"0.11.4","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.44.1.tar.gz
Algorithm Hash digest
SHA256 3803adee0e9babfc269116ecd2ffbba9d3648023ae1e9c55393cd7a02fabeb91
MD5 a5956cf61a8be5544597a8d744c89ff4
BLAKE2b-256 78bcf5515a2e2f0d08c7648d5c144c21bccc01a9f8f07dd4487c85ec572b861e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytilpack-1.44.1-py3-none-any.whl
  • Upload date:
  • Size: 128.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.4 {"installer":{"name":"uv","version":"0.11.4","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.44.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a24c8169669a22c4b6a2094502012c7915ce1ce2a13f0b6880ec3c1e9ef0fbfe
MD5 bbe50a5f4319ae8d369cc8f2ad93c569
BLAKE2b-256 5cecd1ddecbcdee405767210fda2ef50a86e03c357ec3542eaaa18edf68f3a5e

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