Skip to main content

Chilean Fake Info

GPLv3 License Python Library

Logo

Chilean Fake Info is a Python library designed to generate test data of Chilean origin. This library is useful for developers and testers who need to generate fake but structured information.

Features

  • Credit Card Generation: Generates valid credit card numbers from multiple Chilean banks.
  • RUT Generation: Creates valid RUTs for both individuals and companies.
  • Random Address Generation: Generates addresses with valid region names.
  • Random Name Generation: Creates full names with realistic first names and last names.
  • Date Utility Functions: Provides helper functions for generating month and year values.

Installation

To install the library, simply use pip:

pip install chileanfakeinfo

Command Line Interface (CLI)

After installing the library, two terminal commands become available: chilean-fake-info and its short alias cfi. They let you generate data directly from your terminal without writing any Python.

# RUT
cfi rut                       # Person RUT          -> 285313732
cfi rut -e                    # Enterprise RUT      -> 717534115
cfi rut -d                    # Dotted format       -> 23.678.860-1
cfi rut -e -d -n 3            # 3 dotted enterprise RUTs

# Credit cards
cfi banks                     # List available banks
cfi creditcard                # Random credit card number
cfi cc -b "Banco de Chile" -w visa     # Specific bank and network (cc = alias)
cfi creditcard -f             # Full card: number | CVV | expiration date
cfi verify 5222102881454263   # Validate a card (exit code 0 = valid, 1 = invalid)
cfi cvv                       # Generate a CVV
cfi exp                       # Generate an expiration date

# Addresses and regions
cfi address                   # Random Chilean address
cfi regions                   # List Chilean regions

# Names
cfi name -g men               # Male full name
cfi name -g women -n 5        # 5 female full names

Most subcommands accept -n / --number to generate several items at once. Run cfi --help or cfi <command> --help for the full list of options.


Usage

Generating a Chilean RUT

You can generate RUTs for individuals and enterprises:

from chileanfakeinfo import personRutGenerator, enterpriseRutGenerator, dotRutFormat

# Generate a RUT for a person
person_rut = personRutGenerator()
print(person_rut)  # Example: 28475932k

# Generate a RUT for an enterprise
enterprise_rut = enterpriseRutGenerator()
print(enterprise_rut)  # Example: 770293294

# Format a RUT to the dot notation
formatted_rut = dotRutFormat(person_rut)
print(formatted_rut)  # Example: 28.475.932-K

Generating Credit Card Numbers

You can generate random credit card numbers and validate them using the Luhn Algorithm.

from chileanfakeinfo import getCreditCard, verifyCreditCard, generateCVV, generateExpirationDate, getBankList

# Get a list of banks available in Chile
print(getBankList())

# Generate a credit card number from any bank
credit_card = getCreditCard()
print(credit_card)

# Generate a credit card from a specific bank and network
specific_cc = getCreditCard(bankName="Banco de Chile", network="visa")
print(specific_cc)

# Validate a generated credit card number
print(verifyCreditCard(credit_card))  # Returns True if valid

# Generate CVV and Expiration Date
cvv = generateCVV()
exp_date = generateExpirationDate()
print(f"CVV: {cvv}, Expiration Date: {exp_date}")

Available Banks and Networks

Bank Name Visa Mastercard
Banco de Chile ✅ ✅
Banco Internacional ✅ ✅
Banco Scotiabank ✅ ✅
Banco de Credito e Inversiones ❌ ✅
Banco BICE ✅ ❌
HSBC Bank ❌ ✅
Banco Santander ✅ ✅
Banco Itau ❌ ✅
Banco Security ✅ ✅
Banco Falabella ✅ ❌
Banco Ripley ❌ ✅
Banco Consorcio ✅ ❌
Banco Estado ✅ ✅

Generating Random Addresses

from chileanfakeinfo import addressName, regions

# Generate a random Chilean address
print(addressName())  # Example: Calle Lautaro 185, Región de Coquimbo, Chile

# Get a list of Chilean regions
print(regions())

Generating Random Names

You can generate a random full name by specifying the gender ("men" or "women").

from chileanfakeinfo import getName

# Generate a male name
print(getName("men"))  # Example: Mateo Alonso González Silva

# Generate a female name
print(getName("women"))  # Example: Isidora Fernanda Rojas Martínez

Contribution

Contributions are welcome! If you'd like to improve this library, feel free to fork the repository, submit issues, or create pull requests.


License

This project is licensed under the GPL v3 License - see the LICENSE file for details.


Author

Metadata

Release files for chileanfakeinfo 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chileanfakeinfo 1.1.0
File Size Uploaded
chileanfakeinfo-1.1.0.tar.gz 27.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chileanfakeinfo 1.1.0
File Interpreter ABI Platform
chileanfakeinfo-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 55.1 kB

Release files / chileanfakeinfo-1.1.0.tar.gz

Download URL chileanfakeinfo-1.1.0.tar.gz
Size 27.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6164b0b3967fe615276be5e8c169224051ec92792733f176e5c649c9b6f98d40
BLAKE2b-256 checksum
How to use checksums
7ce40961e97ab04df5c674b8f1a1ba8ff0c2a3f55e5e4dabfc49d96cdeb9b4bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / chileanfakeinfo-1.1.0-py3-none-any.whl

Download URL chileanfakeinfo-1.1.0-py3-none-any.whl
Size 27.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
32eb0076d935104f5c792f284485034dbf925b571c8a3cc9c88613b50f21aa08
BLAKE2b-256 checksum
How to use checksums
2314d8aa1f43fe8874ad0075df7b1ffe86dc50dcda363a1e2209c97327350d28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page