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.8+
Installation and Usage
If you want to use faker-security within your project, add it to your dependency file of choice.
This is typically your project's requirements.txt file. If you are using a higher-level package manager like poetry or pipenv, follow their instructions for adding new packages.
Once installed, you need to setup Faker to make use of the SecurityProvider. An example of how that could be done is shown below:
from faker import Faker
from faker_security.providers import SecurityProvider
fake = Faker()
fake.add_provider(SecurityProvider)
# generate a CVSSv3 vector
fake.cvss3()
Provider Features
cvss4: generates a CVSS v4 vectorcvss3: generates a CVSS v3 vectorcvss2: generates a CVSS v2 vectorccss: generates a CCSS 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
poetryand runpoetry install - Install
pre-commitand 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
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 faker_security-0.5.0.tar.gz.
File metadata
- Download URL: faker_security-0.5.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.13 Linux/5.15.0-1053-aws
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fe8496203a7543356c195bd40dcd6ece89b82e5aae44ba7a3e70049260c1f88
|
|
| MD5 |
dbd1402b0cf039ee82ec8c4163e27463
|
|
| BLAKE2b-256 |
8324c944c8ee93a04c1be7d6626937d9c32ed191a86866e2a17fe8ea857cc84e
|
File details
Details for the file faker_security-0.5.0-py3-none-any.whl.
File metadata
- Download URL: faker_security-0.5.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.13 Linux/5.15.0-1053-aws
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50811e7648beb1da4460bf9d146f027a4f1717a145ec857ab5cc4ed342d47098
|
|
| MD5 |
6620213c293eefefd8a1f3c4753ac581
|
|
| BLAKE2b-256 |
c86c2ecfae582da8c9f0c70daa912e58dc4658414251a9bcd8f954bacde5899a
|