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

Uploaded Python 3

File details

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

File metadata

  • Download URL: generatecv-0.0.8.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.8.tar.gz
Algorithm Hash digest
SHA256 65c7d7fc2d777baf100e5ef287378e7904218a0487b471ed7fe5e94a335427a9
MD5 65ab0e05209848332d0ff0bfe3d2e04f
BLAKE2b-256 fb8cb578f10b41d5d093deb8d823e52276b2ab417e85c5397c34ee3a62011a5b

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: generatecv-0.0.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 389152111e6754daa86bdf817a5cc88a6befd9eea2e7627468552cb39f80cf4f
MD5 536215690abe286d834b2bce180864b0
BLAKE2b-256 2b76ac95b1e0c9a9bd265c0f1182993fde4120d6465b04e901868077d3756cc1

See more details on using hashes here.

Provenance

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