Skip to main content

Adds fake credit score data generation to Faker Python package.

Project description

Latest version released on PyPi Build status of the develop branch on Mac/Linux 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 four most common non-industry specific credit scoring models are supported:

  • FICO Score 8

  • Equifax Beacon 5.0

  • Experian/Fair Isaac Risk Model V2SM

  • TransUnion FICO Risk Score, Classic 04

Installation

Install with pip:

$ pip install faker-credit-score

Alternatively, install with setup.py:

$ git clone https://github.com/crd/faker_credit_score.git
$ cd faker_credit_score && python setup.py install

Usage

From the Command Line

$ faker credit_score -i faker_credit_score
756

From within Python

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

Please, by all means, contribute!

Testing

Execute unit tests and calculate code coverage like so:

$ coverage run -m unittest tests/*
........
----------------------------------------------------------------------
Ran 8 tests in 0.224s

OK

$ coverage report
Name                             Stmts   Miss  Cover
----------------------------------------------------
faker_credit_score/__init__.py      49      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.2.1.tar.gz (4.7 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: faker_credit_score-0.2.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.6

File hashes

Hashes for faker_credit_score-0.2.1.tar.gz
Algorithm Hash digest
SHA256 5402f2aade6c6ab722020d4e763dc9e1e48b3ffd7c10d395cdce5457abc0e134
MD5 f9772ed55cb3b2e3f2d23b47b1990c6d
BLAKE2b-256 279018bc0a29a1c22621c4f056a42ad4677fb38dac2f07e1f4304a8ff2e192fe

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