Rezume, validate and create text-based resumes easily.
Project description
Rezume is a Python library to validate and easily create a YAML based resume file that is JSON Resume compatible according to the defined schema.
Installation
Install from Pypi by running this command:
pip install rezume
Dependencies
Rezume requires Python 3.6+ and depends mainly on pydantic for data validation and pyyaml for processing YAML data.
Usage
You can use rezume as a Python package as shown below:
from rezume import RezumeError, Rezume
# sample (invalid) rezume data to validate
rezume_data = { name: 'John Doe' }
# check the validity of sample data
if Rezume.is_valid(rezume_data):
print('Validated successfully!')
else:
print('Invalid rezume')
# alternatively, if we prefer catching exceptions
try:
Rezume.validate(rezume_data)
print('Validated successfully!')
except RezumeError as ex:
print(f'Invalid rezume: {ex}')
To validate a rezume file instead:
from pathlib import Path
from rezume import RezumeError, Rezume
# path to sample file to validate
rezume_file = Path('/path/to/sample/rezume-file.yml')
# use
Rezume.is_valid(rezume_file) # returns boolean
# or
Rezume.validate(rezume_file) # throws exception if invalid
Furthermore, you can programmatically process a Rezume:
import json
from pathlib import Path
from rezume import RezumeError, Rezume
# load and modify a standard JSON resume
rezume = Rezume()
json_file = Path('/path/to/json/resume-file.json')
with json_file.open('r') as fp:
data = json.load(fp)
rezume.load_data(data) # throws exception if invalid
rezume.basics.name = 'John Doe (Verified)'
print(rezume.dump_data())
# or programmatically modify a YAML rezume file
yaml_file = Path('/path/to/yaml/rezume-file.yml')
try:
rezume = Rezume()
rezume.load(yaml_file) # throws exception if invalid
except RezumeError:
print('Unable to process rezume file')
else:
rezume.basics.label = 'Pythonista'
print(rezume.dump_data())
In addition, rezume can be used as a command line tool to create or validate a YAML-based rezume file. Here is the output of rezume --help
Usage: rezume [OPTIONS] COMMAND [ARGS]...
Options:
--install-completion Install completion for the current shell.
--show-completion Show completion for the current shell, to copy it or
customize the installation.
--help Show this message and exit.
Commands:
init Initializes a new rezume.yml file
serve Serves a rezume for local viewing applying available themes
test Validates correctness of a rezume.yml file
License
This project is licensed under the BSD license
Project details
Release history Release notifications | RSS feed
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 rezume-0.4.2.tar.gz.
File metadata
- Download URL: rezume-0.4.2.tar.gz
- Upload date:
- Size: 23.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.7 Linux/5.4.0-1039-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d484a17966e94cca94f88096d327f9917e4bd5d1c4bbc37d345e9560f310bade
|
|
| MD5 |
3ce72471a8bf94c455d946d0e9caa016
|
|
| BLAKE2b-256 |
a75291320dfb7199ec6a1b0aa837b578b4c479af17f7e06cd0573198e8f66482
|
File details
Details for the file rezume-0.4.2-py3-none-any.whl.
File metadata
- Download URL: rezume-0.4.2-py3-none-any.whl
- Upload date:
- Size: 24.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.7 Linux/5.4.0-1039-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
962fd885f5700389e4a8fc3690b044a595cdebf7c1efba890196b8dd2fdd30ed
|
|
| MD5 |
ad270488a174a51e7f477cf84a100d95
|
|
| BLAKE2b-256 |
495b5951bdb8eddbccf7d37b907eca2b9e1d7006c4a5f7a8910d55a7f99c7edd
|