Skip to main content

Generate text using code.

Project description

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.

Project details


Download files

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

Source Distribution

pytextgen-9.0.1.tar.gz (67.2 kB view details)

Uploaded Source

Built Distribution

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

pytextgen-9.0.1-py3-none-any.whl (71.0 kB view details)

Uploaded Python 3

File details

Details for the file pytextgen-9.0.1.tar.gz.

File metadata

  • Download URL: pytextgen-9.0.1.tar.gz
  • Upload date:
  • Size: 67.2 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for pytextgen-9.0.1.tar.gz
Algorithm Hash digest
SHA256 f57d6455b78f7fa75d12fb3ebb0d3070cbb1fc78c02ccedf5cc523960f67e26c
MD5 ce7cbdb7fe245725a62ad3cda6dee287
BLAKE2b-256 7041fd5dcb25a911baa53c6c8b671ff4d007230426227f3dee65a40473ae9dd5

See more details on using hashes here.

File details

Details for the file pytextgen-9.0.1-py3-none-any.whl.

File metadata

  • Download URL: pytextgen-9.0.1-py3-none-any.whl
  • Upload date:
  • Size: 71.0 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for pytextgen-9.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4a477bcdff562aa9e730afb1e48b79df0c6463db13b5ab39ea1839df33a73b8f
MD5 c0a87b557cdc173f78e419a01699471f
BLAKE2b-256 1699f306b940af2aa7276f19a33b88b3950eccf671654b013d2430f443e2a242

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