generatecv is a Python package for generating professional CVs (resumes) from structured data.
Project description
generatecv
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a74db171bf44439206796336b0c2d4241ca2f8774b6d46f8531d0d6e428e9806
|
|
| MD5 |
fb18eea41ecf22f8063820aa93fb3896
|
|
| BLAKE2b-256 |
4de8305cadfa39567cea5487a86343b802b3077562acfd7556fc7814180d239b
|
Provenance
The following attestation bundles were made for generatecv-0.0.10.tar.gz:
Publisher:
publish.yml on yantology/generatecv
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
generatecv-0.0.10.tar.gz -
Subject digest:
a74db171bf44439206796336b0c2d4241ca2f8774b6d46f8531d0d6e428e9806 - Sigstore transparency entry: 219881290
- Sigstore integration time:
-
Permalink:
yantology/generatecv@ba2e7a252df1874e1c2c27fa70ac491f29febafc -
Branch / Tag:
refs/heads/main - Owner: https://github.com/yantology
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ba2e7a252df1874e1c2c27fa70ac491f29febafc -
Trigger Event:
workflow_run
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7df8a32f13b0ee425d6e424579ebed36a22681b9a4e460c282b217e79a53f564
|
|
| MD5 |
ed2da839824006b7d1229d02b93ccde8
|
|
| BLAKE2b-256 |
6389f006404f88cb1f9652e3eaf9a1c524dc2f466195babf1aa0f12510c252b5
|
Provenance
The following attestation bundles were made for generatecv-0.0.10-py3-none-any.whl:
Publisher:
publish.yml on yantology/generatecv
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
generatecv-0.0.10-py3-none-any.whl -
Subject digest:
7df8a32f13b0ee425d6e424579ebed36a22681b9a4e460c282b217e79a53f564 - Sigstore transparency entry: 219881291
- Sigstore integration time:
-
Permalink:
yantology/generatecv@ba2e7a252df1874e1c2c27fa70ac491f29febafc -
Branch / Tag:
refs/heads/main - Owner: https://github.com/yantology
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ba2e7a252df1874e1c2c27fa70ac491f29febafc -
Trigger Event:
workflow_run
-
Statement type: