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 全モジュール (全依存)
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等
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.45.0.tar.gz (332.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.0-py3-none-any.whl (121.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytilpack-1.45.0.tar.gz
  • Upload date:
  • Size: 332.9 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.45.0.tar.gz
Algorithm Hash digest
SHA256 545d8ff9eb44faf219ea22384bf542600b3ca71f4dd40047fb3e007055730384
MD5 0dae45c57355f5994e7d69091b3877b9
BLAKE2b-256 6b962cf5ca8cf5310b1895c414d47aa52616d8413adf2cc682dc0ec04748a65e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytilpack-1.45.0-py3-none-any.whl
  • Upload date:
  • Size: 121.5 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.45.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0301fd4d227afaefbc84b68ce035b706f59dc5a1d70849c1458c58469a14a9d0
MD5 76bccbece5d4353b2e2f69e2a1eed6b2
BLAKE2b-256 fda4d14a070914f5a4c022e5135597c28b60ea4ff532ff33d3232b74f2db332a

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