resumeschema is a json-schema validator for the resume-schema spec.
resumeschema is mostly just a wrapper around jsonschema.
Installation
$ [sudo] pip install resumeschema
API
validate(instance)
Check if the provided instance is valid under the resume-schema spec.
Returns nothing.
Raises a jsonschema.ValidationError on error.
import resumeschema
instance = {
'basics': {
'name': 'Resume Schema',
},
}
resumeschema.validate(instance)
is_valid(instance)
Check if the provided instance is valid under the resume-schema spec.
Returns True if valid False if not.
import resumeschema
instance = {
'basics': {
'name': 'Resume Schema',
},
}
if resumeschema.is_valid(instance):
print 'It is valid!'
iter_errors(instance)
Get an iterator to iterate any jsonschema.ValidationErrors from the provided instance.
Returns an iterator of jsonschema.ValidationErrors.
import resumeschema
invalid_instance = {
'basics': {
# `first_name` is not a supported field
'first_name': 'Resume Schema',
},
}
for error in resumeschema.iter_errors(invalid_instance):
print error.message
validator
An instance of jsonschema.Draft4Validator to use as you so choose.
import resumeschema
instance = {
'basics': {
'name': 'Resume Schema',
},
}
resumeschema.validator.validate(instance)
Metadata
Release files for resumeschema 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| resumeschema-1.0.0.tar.gz | 7.0 kB | Without provenance | Details |
Release files / resumeschema-1.0.0.tar.gz
| Download URL | resumeschema-1.0.0.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0cab4f6eb671c48dac6a851d91661ee474ab54f54e06a499dd290f58728c2e0b
|
|
BLAKE2b-256 checksum How to use checksums |
0be9e86287caf4c778f45514b698da302290a7538f38790b4a4591522defb3a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for resumeschema 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.