Skip to main content

pytextgen

Generate text using code.

Setup & Quickstart ✅

Follow these steps to create a reproducible development environment (Windows example):

  1. Create and activate a virtual environment:

    python -m venv .venv
    .\.venv\Scripts\Activate.ps1
    
  2. Install dependencies deterministically using uv (recommended):

    uv sync --all-extras --dev  # use `--locked --all-extras --dev` only in CI
    
  3. Run tests and format/lint via uv:

    uv run pytest
    uv run ruff check --fix .
    

Note: Commit uv.lock to ensure reproducible installs and use uv rather than pip for deterministic dependency management. 🔧


Commit message linting ✅

This repository enforces conventional commit messages using commitlint via a pre-commit hook configured in prek.toml.

  • We use alessandrojcm/commitlint-pre-commit-hook which runs commitlint as a commit-msg hook (so it inspects the commit message).
  • The lint rules live in commitlint.config.mjs (converted from the provided mjs config) and extend the conventional config while ignoring Dependabot "Signed-off-by" lines.

Developer setup:

  1. Ensure Node.js is installed (needed by commitlint). ⚠️
  2. Install hooks using the project's dev tooling:
uv run prek install

CI also runs commitlint on pushes/PRs via .github/workflows/commitlint.yml.

If you prefer a pure-Python alternative, consider gitlint (can run as commit-msg), but we keep commitlint here for parity with the existing CI workflow.

Metadata

Release files for pytextgen 9.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytextgen 9.0.1
File Size Uploaded
pytextgen-9.0.1.tar.gz 67.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytextgen 9.0.1
File Interpreter ABI Platform
pytextgen-9.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 138.2 kB

Release files / pytextgen-9.0.1.tar.gz

Download URL pytextgen-9.0.1.tar.gz
Size 67.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f57d6455b78f7fa75d12fb3ebb0d3070cbb1fc78c02ccedf5cc523960f67e26c
BLAKE2b-256 checksum
How to use checksums
7041fd5dcb25a911baa53c6c8b671ff4d007230426227f3dee65a40473ae9dd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / pytextgen-9.0.1-py3-none-any.whl

Download URL pytextgen-9.0.1-py3-none-any.whl
Size 71.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a477bcdff562aa9e730afb1e48b79df0c6463db13b5ab39ea1839df33a73b8f
BLAKE2b-256 checksum
How to use checksums
1699f306b940af2aa7276f19a33b88b3950eccf671654b013d2430f443e2a242
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

9.0.1 This release

2 release files

9.0.0

2 release files

8.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page