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.12.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.12-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: generatecv-0.0.12.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.12.tar.gz
Algorithm Hash digest
SHA256 cbb6e75b200552a174f037e043ab4950a77c56901cf624e526d02d30f5955dbb
MD5 10a3a0ea95d42c0605512e7b2cf302ea
BLAKE2b-256 fc9991b406508a2dffcdb2032984fb338cfd8ab292c4dd63da4d2f6165c08123

See more details on using hashes here.

Provenance

The following attestation bundles were made for generatecv-0.0.12.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.12-py3-none-any.whl.

File metadata

  • Download URL: generatecv-0.0.12-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.12-py3-none-any.whl
Algorithm Hash digest
SHA256 67c9fcb6a0c6983dfcc2c660ef1fd0ee42ac4a3657fc4064c4c88b8c5600deb9
MD5 58b8a0b071c82f0e1d6c914cd889caab
BLAKE2b-256 9d4e36a01b5f4f80313219e42c7dec64a6d8b5abd5dc97f50461794ab83ddbd5

See more details on using hashes here.

Provenance

The following attestation bundles were made for generatecv-0.0.12-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