Adds fake credit score data generation to Faker Python package.
Project description
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
VantageScore 3.0
FICO Score 10
FICO Score 10 T
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 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:
$ coverage run -m unittest tests/*
..............
----------------------------------------------------------------------
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
File details
Details for the file faker_credit_score-0.3.0.tar.gz
.
File metadata
- Download URL: faker_credit_score-0.3.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09359084028bcbfc019e1beed58c1dde90b4cb8267591b99fe6d26b17bd75bf2 |
|
MD5 | bea070b23d3048034815d3795886fea4 |
|
BLAKE2b-256 | fee1aa99cf5c573569f386ab2dba720c929cbb8eb0a33eaa413c45c1c3e5b1fe |