Faker provider for security related data
Project description
Faker-Security
Provider for Faker to generate random/fake data related to security.
Requirements
- Faker
- Python 3.9+
Installation and Usage
- Add
faker-security
to your requirements - Install
faker-security
usingpip
or whatever package manager you use - Add the
SecurityProvider
during tests or wherever you use Faker
from faker import Faker
from faker_security.providers import SecurityProvider
fake = Faker()
fake.add_provider(SecurityProvider)
# generate a CVSSv3 vector
fake.cvss3()
Provider Features
cvss3
: generates a CVSS v3 vectorcvss2
: generates a CVSS v2 vectorversion
: generates a semver version numbernpm_semver_range
: generates a npm compatible semver version rangecwe
: generates a CWE identifiercve
: generates a CVE identifier
Developing
- Install
poetry
and runpoetry install
- Install
pre-commit
and runpre-commit install --install-hooks
Testing
poetry run pytest
to run tests.
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
faker-security-0.2.0.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file faker-security-0.2.0.tar.gz
.
File metadata
- Download URL: faker-security-0.2.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.2 Linux/5.13.0-1017-aws
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1cab57fba2980a54e3005eb8348167178397bd41d3a7f534ca051948f6971c3 |
|
MD5 | ce051093b363a7002f1cea33d7ee3dde |
|
BLAKE2b-256 | 7b491f4b28eea388c50ddd753471f154833d0754f27e279bc03e3ad158d022ed |
File details
Details for the file faker_security-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: faker_security-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.2 Linux/5.13.0-1017-aws
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24c55909596b5804be0b3695c78dbfd9685a010cce9e0975b5063eba259bc30c |
|
MD5 | 24d8083b113671320f41c6fe7a60f9dc |
|
BLAKE2b-256 | 66e1109898e5d5bade9b537390333285c51eaabe1275ddc9a4c754ded80d0afa |