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-1.0.0.tar.gz (25.9 kB view details)

Uploaded Source

Built Distribution

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

chileanfakeinfo-1.0.0-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for chileanfakeinfo-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2dcc20d72670a95fbacd1d80c20efa14b499baa54887bf8b2faaf064976d9522
MD5 6f9df09cb026793dd5c2482a32ef9114
BLAKE2b-256 2a17c3c4baeaee8a90daf3d612a03e5a997b83c0550fea1440e66275e97d1017

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chileanfakeinfo-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90e8b691b962c29fbc2325b61545692dde02ff5a8d0ee1bc7cc7c22962c69b1c
MD5 2a6efe39079c91c7700835b45dcb1d48
BLAKE2b-256 b58f5b3d7b473b18993ad668bdbf98e6914641cf2cdaba077410fc551a518897

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