Skip to main content

Adds fake credit score data generation to Faker Python package.

Project description

Latest version released on PyPI Release workflow status Test coverage BSD 3-Clause License Black code formatter

faker_credit_score is a community-created provider for the Faker test data generator Python package.

This package provides fake credit score data for testing purposes. The most common non-industry specific credit scoring models are supported:

  • FICO Score 8

  • FICO Score 9

  • FICO Score 10

  • FICO Score 10 T

  • VantageScore 3.0

  • VantageScore 4.0

  • UltraFICO

  • Equifax Beacon 5.0

  • Experian/Fair Isaac Risk Model V2SM

  • TransUnion FICO Risk Score, Classic 04

Installation

Install with pip (this will also install Faker if you don’t already have it):

$ pip install faker-credit-score

Usage

From the Command Line

$ faker credit_score -i faker_credit_score
756

From within your Python Project

Add the CreditScore Provider to your Faker instance:

from faker import Faker
from faker_credit_score import CreditScore

fake = Faker()
fake.add_provider(CreditScore)

fake.credit_score_name()
# 'TransUnion FICO Risk Score, Classic 04'
fake.credit_score_provider()
# 'TransUnion'
fake.credit_score()
# 791

Contributing

By all means, contribute! I’d be happy to work with any first-time open source contributors so please, don’t be shy.

Testing

Execute unit tests and calculate code coverage like so:

$ pytest --cov=faker_credit_score
..............
----------------------------------------------------------------------
Ran 14 tests in 0.406s

OK

$ coverage report
Name                             Stmts   Miss  Cover
----------------------------------------------------
faker_credit_score/__init__.py      58      0   100%

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_credit_score-0.5.2.tar.gz (40.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

faker_credit_score-0.5.2-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file faker_credit_score-0.5.2.tar.gz.

File metadata

  • Download URL: faker_credit_score-0.5.2.tar.gz
  • Upload date:
  • Size: 40.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.0

File hashes

Hashes for faker_credit_score-0.5.2.tar.gz
Algorithm Hash digest
SHA256 fb5ae4ac04fbd5bd221fa1bf267152ccfb406ecaf5e260f512a5e57959bb71c3
MD5 9ef379f72a5e4b556283df373ce7b4e9
BLAKE2b-256 22c3078b81abd4603794305759319d382244ba2c11050919e319c82acead9414

See more details on using hashes here.

File details

Details for the file faker_credit_score-0.5.2-py3-none-any.whl.

File metadata

File hashes

Hashes for faker_credit_score-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f0ca0f0734743d52f74f47f5fdd1c4f36fd18f30c65d33eaccdbe3e4b2044c6a
MD5 964b75684daa4dd573a250207003eb8b
BLAKE2b-256 36a416b43734df7cf79953294bbb1ca530f59ba6b9ff06bbddb31c6bda207607

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page