Skip to main content

Generador de datos ficticios chilenos para pruebas y desarrollo.

Project description

Chilean Fake Info

GPLv3 License Python Library

Logo

"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

credit card Verification credit card Verification credit card Verification

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'}}

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

chileanfakeinfo-0.1.0.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

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

chileanfakeinfo-0.1.0-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file chileanfakeinfo-0.1.0.tar.gz.

File metadata

  • Download URL: chileanfakeinfo-0.1.0.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for chileanfakeinfo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 40055bb1431e53f107a500b5e66eecdc0222972fdeff4218655e0464e90e980d
MD5 4a313dbfe6d1dea138431b111c8c327b
BLAKE2b-256 76ae93408df3c4e11961f33495fedefefe651d380e4253381c9f1ee0e0be1538

See more details on using hashes here.

File details

Details for the file chileanfakeinfo-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for chileanfakeinfo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1efab7eec38ff187e67d55f26d2364b08c83b362dc81eac6101e60c0ea032f12
MD5 7777e81ab3a6165a50a22e62c3f7aa5f
BLAKE2b-256 3806ff40864360880173c331d12ce079d714d58ef38f8e3014b2804905c72bc1

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