Skip to main content

Faker-Security

Pypi CircleCI

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 vector
  • cvss3: generates a CVSS v3 vector
  • cvss2: generates a CVSS v2 vector
  • ccss: generates a CCSS vector
  • version: generates a semver version number
  • npm_semver_range: generates a npm compatible semver version range
  • cwe: generates a CWE identifier
  • cve: generates a CVE identifier

Developing

  • Install poetry and run poetry install
  • Install pre-commit and run pre-commit install --install-hooks

Testing

poetry run pytest to run tests.

Release files for faker-security 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for faker-security 0.5.0
File Size Uploaded
faker_security-0.5.0.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for faker-security 0.5.0
File Interpreter ABI Platform
faker_security-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.7 kB

Release files / faker_security-0.5.0.tar.gz

Download URL faker_security-0.5.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7fe8496203a7543356c195bd40dcd6ece89b82e5aae44ba7a3e70049260c1f88
BLAKE2b-256 checksum
How to use checksums
8324c944c8ee93a04c1be7d6626937d9c32ed191a86866e2a17fe8ea857cc84e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.10.13 Linux/5.15.0-1053-aws

Release files / faker_security-0.5.0-py3-none-any.whl

Download URL faker_security-0.5.0-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50811e7648beb1da4460bf9d146f027a4f1717a145ec857ab5cc4ed342d47098
BLAKE2b-256 checksum
How to use checksums
c86c2ecfae582da8c9f0c70daa912e58dc4658414251a9bcd8f954bacde5899a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.10.13 Linux/5.15.0-1053-aws

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page