Generador de datos ficticios chilenos para pruebas y desarrollo.
Project description
Chilean Fake Info
"Chilean fake info" is a python library used to generate test information of Chilean origin
- Generation of Credit Card numbers supposedly issued in Chile from Multiple Banks
- Generation of rut numbers for both people and companies
- Random address generation
Credit card
there are difentes ways to interact with Credits Cards, we can Generate CC's, Verify them based on the Luhn Algorithm, we can generate CVVs, expiration dates and a list a banks name
Banks name
if we need a list of bank present in Chile, we have the function getBankList(), this function will return a list with all the names in it
from chileanfakeinfo import getBankList
print(getBankList())
>> ['Banco de Chile', 'Banco Internacional', 'Banco Scotiabank', 'Banco de Credito e Inversiones', 'Banco BICE', 'HSBC Bank', 'Banco Santander', 'Banco Itau', 'Banco Security', 'Banco Fallabella', 'Banco Ripley', 'Banco Consorcio', 'Banco Estado']
getCreditCard() parameters
You can get a credit card from chile just using getCreditCard(), it will generate a CC from any bank found in the getBankList() function. If you requiere a Card from a specifict bank you can use the bankName parameter, also you can choose if you want a card be mastercard or visa using the network parameter
| Bank | visa | mastercard |
|---|---|---|
| Banco de Chile | [x] | [x] |
| Banco Internacional | [x] | [x] |
| Banco Scotiabank | [x] | [x] |
| Banco de Credito e Inversiones | [x] | |
| Banco BICE | [x] | |
| HSBC Bank | [x] | |
| Banco Santander | [x] | [x] |
| Banco Itau | [x] | |
| Banco Security | [x] | [x] |
| Banco Fallabella | [x] | |
| Banco Ripley | [x] | |
| Banco Consorcio | [x] | |
| Banco Estado | [x] | [x] |
from chileanfakeinfo import getCreditCard
print(getCreditCard()) # generate a CC from any bank with any network
>> 4105306670415592
print(getCreditCard(bankName="Banco de Chile", network="visa")) # generate a cc from Banco de Chile and visa Network
>> 4966702917417243
print(getCreditCard(bankName="Banco Santander", network="mastercard")) # generate a cc from Banco Santander and mastercard Network
>> 5400209517621779
Credit Card Verification
Using Online resources you can verify the CC generated, as you can see the all af the cards generated are in fact from chile and match the criteria required.
https://dnschecker.org/credit-card-validator.php
If the only thing that you need to check is if that the CC is Valid or not you can use the verifyCreditCard() function. This function resive one parameter and return a bool depending if the card is valid or not
from chileanfakeinfo import verifyCreditCard
print(verifyCreditCard(1234567890987654))
>> False
print(verifyCreditCard(4105306670415592))
>> True
CVV and Expiration Dates
Is also posible to generate CVV numbers and expiration dates, in order to do that we have two functions generateCVV() and generateExpirationDate()
from chileanfakeinfo import generateCVV
from chileanfakeinfo import generateExpirationDate
print(generateCVV())
>> 906
print(generateExpirationDate())
>> 12/31
Chilean RUT
Is posible to generate ruts for Persons or Enterprises
RUTs for Persons
In order to generate a RUT for a person you must execute the personRutGenerator(), it will return a str with the Rut generated
from chileanfakeinfo import personRutGenerator as rut
print(rut())
>> 28475932k
RUTs for Enterprises
In order to generate a RUT for a Enterprise you must execute the enterpriseRutGenerator(), it will retuen a str with the Rut generated
from chileanfakeinfo import enterpriseRutGenerator as entRut
print(entRut())
>> 770293294
Doted format
The functions personRutGenerator and enterpriseRutGenerator retuen a string with no format, but if you need you can convert this plain format into a doted format using the dotRutFormat()
from chileanfakeinfo import dotRutFormat,personRutGenerator
rut = personRutGenerator()
print(rut)
>> 273626220
dotRut = dotRutFormat(rut)
print(dotRut)
>> 27.362.622-0
Address
You can generate a random address just using addressName()
from chileanfakeinfo import addressName
print(addressName())
>> Calle Lautaro 185, Region Arica y Parinacota, Chile
Regions
If you need just the list of Regions of Chile you must use regions()
from chileanfakeinfo import regions
print(regions())
>> {'1': {'name': 'Tarapacá'}, '2': {'name': 'Antofagasta'}, '3': {'name': 'Atacama'}, '4': {'name': 'Coquimbo'}, '5': {'name': 'Valparaíso'}, '6': {'name': "O'Higgins"}, '7': {'name': 'Maule'}, '8': {'name': 'Biobío'}, '9': {'name': 'Araucanía'}, '10': {'name': 'Los Lagos'}, '11': {'name': 'Aysén'}, '12': {'name': 'Magallanes'}, 'RM': {'name': 'Santiago'}, '14': {'name': 'Los Rios'}, '15': {'name': 'Arica y Parinacota'}}
Name Generator
If you need to generate a name, you can use the getName function, this function require just the gender parameter, and the posible values are men or women, and it will return a full name with two names and two lastnames
from chileanfakeinfo inport getName
print(getName(gender="men"))
>> Alfonso Clemente Suárez Santibáñez
print(getName(gender="women"))
>>Celia Iliana Godoy Coloma
Authors
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chileanfakeinfo-1.0.0.1.tar.gz.
File metadata
- Download URL: chileanfakeinfo-1.0.0.1.tar.gz
- Upload date:
- Size: 26.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7764b364a0b7be8b15f373458e1de2e06d063085c46cee3c7c8d9e1e5c21aabf
|
|
| MD5 |
1408a0be9bb9fa4d6e4cdc14137393a1
|
|
| BLAKE2b-256 |
50e2ff53d6faf460fe2c144c8d41a146b65b230565c3f924ef99b1b8f5bedf05
|
File details
Details for the file chileanfakeinfo-1.0.0.1-py3-none-any.whl.
File metadata
- Download URL: chileanfakeinfo-1.0.0.1-py3-none-any.whl
- Upload date:
- Size: 25.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
caa68f3f78644f19d888c2b99003b89a3f0c1de1f4170058b418be1262eb5716
|
|
| MD5 |
ca18a7592f5179335bcdcd1a5cacf00d
|
|
| BLAKE2b-256 |
1484a908972c29f0e5a66d1ae981859a31bd064bde26a6f8db55f84bc087d773
|