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
cvss3
: 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
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
Built Distribution
File details
Details for the file faker_security-0.4.0.tar.gz
.
File metadata
- Download URL: faker_security-0.4.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.12 Linux/5.15.0-1039-aws
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d465dad3a7deda4dbb800040366d794496b63bb2b2a606f63971bdff88bd3df |
|
MD5 | 792b351ed47f3b554bd687812a4c5c76 |
|
BLAKE2b-256 | d7b7974636e16923610305be4d0a4c9a29735a799c709baaf0cf2466ddf2c17b |
File details
Details for the file faker_security-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: faker_security-0.4.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.12 Linux/5.15.0-1039-aws
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0919bbdaca5c1f6d42e80d82f2cba54324a5a5b2c0329c71949a39b11ed6673c |
|
MD5 | 80518ff2649ba61d81e72538f1686785 |
|
BLAKE2b-256 | 15ee59509e46a79819ae927ab526eb03ba4923a237900f4803262d9b4b14d932 |