Skip to main content

generatecv is a Python package for generating professional CVs (resumes) from structured data.

Project description

generatecv

CI Security Documentation codecov PyPI version Python 3.13+ License: MIT

A Python package for generating professional CVs from structured data.

Installation

This project uses Python 3.13+ and can be installed using uv:

# Clone the repository
git clone https://github.com/yourusername/generatecv.git
cd generatecv

# Create and activate a virtual environment
uv venv

# Install the package and development dependencies
uv pip install -e ".[dev]"

Usage

To generate a CV:

from generatecv.cv_generator import CVGenerator, create_sample_cv

# Create a CV generator (default is PDF format)
generator = CVGenerator()

# Generate from sample data
cv_data = create_sample_cv()
generator.generate(cv_data, "my_cv.pdf")

# Or load data from YAML
cv_data = generator.load_data_from_yaml("path/to/your_cv.yaml")
generator.generate(cv_data, "my_cv.pdf")

Development

Type Checking

This project uses pyrefly for static type checking:

# Run type checking
pyrefly check

# Suppress errors temporarily during migration
pyrefly check --suppress-errors

Testing

Tests are written using pytest:

# Run all tests
pytest

# Run with coverage
pytest --cov=generatecv

# Generate coverage report
pytest --cov=generatecv --cov-report=html

Linting

This project uses ruff for linting:

# Run linter
ruff check .

# Automatically fix issues
ruff check --fix .

Code Formatting

Code formatting is done with black:

# Format code
black .

# Format code with line length of 80 characters
black --line-length 80 .

Project Structure

generatecv/
├── src/
│   ├── generatecv/        # Main package
│   │   ├── __init__.py
│   │   └── cv_generator.py
│   ├── tool/              # CLI tools
│   │   ├── __init__.py
│   │   └── main.py
│   └── py.typed           # PEP 561 marker
├── tests/                 # Test directory
│   ├── test_cv_generator.py
│   └── test_example.py
├── pyproject.toml         # Project configuration
└── README.md              # This file

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

generatecv-0.0.11.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

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

generatecv-0.0.11-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file generatecv-0.0.11.tar.gz.

File metadata

  • Download URL: generatecv-0.0.11.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for generatecv-0.0.11.tar.gz
Algorithm Hash digest
SHA256 d2fd581a98cffc81f100b7feb8a2202ff3fa95a6c92fe15309fdb2e218087141
MD5 adc2b6d72b2a9334541187f0e0b6efcd
BLAKE2b-256 58a3fe26dd0eb3a27f0473b2d263a7a664c59c74fd419d7827c2a1b83cde129f

See more details on using hashes here.

Provenance

The following attestation bundles were made for generatecv-0.0.11.tar.gz:

Publisher: publish.yml on yantology/generatecv

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

File details

Details for the file generatecv-0.0.11-py3-none-any.whl.

File metadata

  • Download URL: generatecv-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for generatecv-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 5551d1242ab59bb2e35117a1e8e8a72987f859c4b31a2aebae15ac7b84dc5861
MD5 5997e680644a354545ab02c819dd01f9
BLAKE2b-256 027d2d97ad302321186463f40f5db6dc1a01e2fdafa6bac1db6f62c0bbbbe541

See more details on using hashes here.

Provenance

The following attestation bundles were made for generatecv-0.0.11-py3-none-any.whl:

Publisher: publish.yml on yantology/generatecv

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 Pingdom Monitoring Sentry Error logging StatusPage Status page