Skip to main content

ppt-common

Shared utilities for slide-deck generation packages — published so downstream packages (e.g. ppt-quality-review) and external projects can depend on one copy.

Zero core dependencies; optional extras for the LLM client and agents.

Install

pip install ppt-common            # text utilities only
pip install "ppt-common[llm]"     # + OpenAI-compatible LLM client
pip install "ppt-common[agents]"  # + pydantic-ai agent helpers

Modules

Module Contents
ppt_common.text CJK detection (is_cjk, is_cjk_char, ...), sentence splitting, PDF line merging, page cleaning, section-header detection
ppt_common.text_metrics CJK-aware rendered-width estimation, fit_font_size, greedy line wrapping
ppt_common.pdf_structure / ppt_common.content_splitter PDF structure helpers
ppt_common.llm ([llm] extra) LLMClient for any OpenAI-compatible endpoint, parse_llm_json
ppt_common.agents ([agents] extra) pydantic-ai agent utilities

LLM client configuration

LLMClient works with any OpenAI-compatible endpoint. Configuration falls back through environment variables:

Parameter Explicit arg Env vars (first match wins)
API key api_key= DASHSCOPE_API_KEY, LLM_API_KEY
Base URL base_url= DASHSCOPE_BASE_URL, LLM_BASE_URL
Model model= DASHSCOPE_MODEL, LLM_MODEL
from ppt_common.llm import LLMClient

client = LLMClient()                      # reads env vars
reply = client.chat("Summarize: ...")     # or pass api_key=/base_url=/model=

Development

Tests live in tests/ — run with pytest tests/. text.py and text_metrics.py carry a mutmut mutation-audit pilot (100% kill rate).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ppt_common-1.0.1.tar.gz (48.2 kB view details)

Uploaded Source

Built Distribution

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

ppt_common-1.0.1-py3-none-any.whl (31.3 kB view details)

Uploaded Python 3

File details

Details for the file ppt_common-1.0.1.tar.gz.

File metadata

  • Download URL: ppt_common-1.0.1.tar.gz
  • Upload date:
  • Size: 48.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for ppt_common-1.0.1.tar.gz
Algorithm Hash digest
SHA256 dac5da860d1f631e008db230032806ecc1eca8f05214dce1b05d983a3711c62e
MD5 4931db126f3907b7fdb04763bd923c62
BLAKE2b-256 9415215bd1a3c9012f9efb0fce53707519e55ad9236ae4e45dbff2ffcf322ce4

See more details on using hashes here.

Provenance

The following attestation bundles were made for ppt_common-1.0.1.tar.gz:

Publisher: publish.yml on back1992/ppt-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ppt_common-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: ppt_common-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 31.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for ppt_common-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 068e956aa24d756583268ef3a59d761439a705d68747f0bbec56879329b56538
MD5 101bc57a5eb50518efcc16823b67af73
BLAKE2b-256 00e0d6fecaa06d23ad8bedc9d8aa379d4f65294c466eb9af243d3baa2b48bb21

See more details on using hashes here.

Provenance

The following attestation bundles were made for ppt_common-1.0.1-py3-none-any.whl:

Publisher: publish.yml on back1992/ppt-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page