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

Uploaded Python 3

File details

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

File metadata

  • Download URL: generatecv-0.0.10.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.10.tar.gz
Algorithm Hash digest
SHA256 a74db171bf44439206796336b0c2d4241ca2f8774b6d46f8531d0d6e428e9806
MD5 fb18eea41ecf22f8063820aa93fb3896
BLAKE2b-256 4de8305cadfa39567cea5487a86343b802b3077562acfd7556fc7814180d239b

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: generatecv-0.0.10-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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 7df8a32f13b0ee425d6e424579ebed36a22681b9a4e460c282b217e79a53f564
MD5 ed2da839824006b7d1229d02b93ccde8
BLAKE2b-256 6389f006404f88cb1f9652e3eaf9a1c524dc2f466195babf1aa0f12510c252b5

See more details on using hashes here.

Provenance

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