Algorithmic mock data engine โ 390+ types, 6 locales, real checksums. TCKN, IBAN, Luhn, VIN, NHS, SWIFT, crypto, MRZ, JMeter plugin and more.
Project description
๐ฅท Mock Jutsu
Stop mocking with random strings. Start generating cryptographically valid test data.
DISCLAIMER โ FOR TESTING PURPOSES ONLY All data generated by this library is algorithmically synthesized and entirely fictitious. Designed exclusively for software testing, QA automation, and load testing. Generated values (identity numbers, IBANs, card numbers, passport numbers, etc.) must never be used for fraud, identity theft, financial crime, or any other illegal activity. The authors accept no liability for misuse. By using this software you agree to these terms.
Traditional Mockers give you a random 16-digit string and call it a credit card number.
Mock Jutsu runs Luhn. Every. Single. Time.
Installation โข Why Mock Jutsu? โข Usage Guide โข 390 Types
๐ The Ultimate Algorithmic Mock Data Engine
QA engineers, Data Scientists, and Fintech developers are tired of test data failing at the validation layer. Mock Jutsu is built differently. It treats every identifier as a strict technical specification. If an algorithm defines a checksum, Mock Jutsu computes it. No shortcuts.
๐ฅ Features That Will Blow Your Mind
- Zero External Dependencies: The core data engine uses pure Python standard library for maximum speed, security, and zero bloat.
- 5955 Automated Tests: We don't guess. We verify. Every single format and locale is rigorously tested against real-world algorithmic specifications.
- Multi-Interface: Use it as a rich Python SDK, a blazing-fast CLI, or a FastAPI REST endpoint.
- Export Anywhere: Directly export structured records as JSON, CSV, or SQL
INSERTstatements with thousands of rows in milliseconds. - Context-Aware Profiles: Generate a person, and their email, phone, national ID, and IBAN will inherently match their locale and name.
๐ค Why Mock Jutsu?
| Capability | Mock Jutsu ๐ฅท |
Traditional Mockers ๐คก |
|---|---|---|
| Card Numbers (Luhn Valid) | โ 9 Networks Validated | โ Random digits |
| IBANs (MOD-97 Valid) | โ Country-specific | โ Format-only |
| National IDs | โ Real algorithms (6 countries) | โ ๏ธ Partial / Random |
| Telecom (IMEI, ICCID, IMSI) | โ 3GPP / ITU-T Valid | โ None |
| Securities (ISIN, LEI, SEDOL) | โ Checksum Validated | โ None |
| Crypto (BTC, ETH addresses) | โ Base58Check / Keccak-256 | โ None |
| Payment QRs (EMVCo/SEPA) | โ CRC-16 Checksum / BCD Format | โ None |
| Barcodes (EAN, ISBN, GS1) | โ GS1 v24.0 Valid | โ None |
| Tracking (USPS/UPS/FedEx) | โ Pub.97 Luhn / Mod-11 | โ None |
| Banking Routing Codes | โ Valid ABA/Sort/BIC | โ ๏ธ Format-only |
| RFID & NFC Data | โ EPC SGTIN-96, NDEF URI/Text | โ None |
| Context-Aware Profiles | โ Linked Name โ Email โ Phone | โ ๏ธ Disconnected randoms |
| SQL/CSV Direct Export | โ Native Support | โ Manual generation |
| Schema/Template Generation | โ
jutsu.template() for complex dictionaries |
โ Manual object mapping |
| Built-in CLI Tool | โ
Out-of-the-box (mockjutsu generate) |
โ Requires custom scripts |
| Built-in REST API | โ
1 command (mockjutsu start-api) |
โ Requires custom wrapper |
| Reverse Regex Generation | โ Pattern โ valid string (stdlib only) | โ None |
| External Dependencies | โ Zero (Pure Python) | โ Relies on external files |
| Regulation-Aware Masking | โ PCI DSS ยท GDPR ยท KVKK ยท HIPAA ยท GLBA ยท UK GDPR ยท LGPD ยท PDPA ยท PIPL ยท PSD2 ยท BSA ยท FATF | โ None |
โ๏ธ Installation
Python Package
Requires Python 3.9+.
# Standard Installation
pip install mockjutsu
# For Developers (Editable Mode)
git clone https://github.com/altansayan/mock-jutsu-api.git
cd mock-jutsu-api
pip install -e .
REST API โ Docker (Recommended)
Run the full REST API locally with a single command. No Python required.
# Pull and run (port 8000)
docker run -p 8000:8000 altansezerayan/mock-jutsu:latest
# With custom worker count
docker run -p 8000:8000 -e GRANIAN_WORKERS=8 altansezerayan/mock-jutsu:latest
# Run in background
docker run -d -p 8000:8000 --name mock-jutsu altansezerayan/mock-jutsu:latest
Once running:
- Swagger UI: http://localhost:8000/docs
- API: http://localhost:8000/generate/{type}
๐ REST API โ Built-in CLI (Local, Optional)
If you have the Python package installed, you can also spin up the API directly via CLI โ no Docker needed.
$ mockjutsu start-api --port 8000
GET http://localhost:8000/generate/cardnum?network=visa
GET http://localhost:8000/profile?locale=DE&count=3
# Interactive Swagger UI automatically available at http://localhost:8000/docs
๐ง JMeter Plugin
Use Mock Jutsu types directly inside JMeter test plans as native custom functions โ no scripting, no CSV, no subprocess required.
${__mockjutsu_identity(tckn|TR)} โ 46396909916
${__mockjutsu_financial(iban|DE)} โ DE89370400440532013000
${__mockjutsu_financial(cardnum:visa|TR|mask)} โ 4155 56** **** 3399
${__mockjutsu_contact(email|US)} โ john.doe@example.com
โ mock-jutsu-jmeter on GitHub ยท Download JAR v1.0.0
๐ฌ Postman Collection
390 ready-to-run requests organized by category. Import and hit Send.
# Collection is bundled in this repo โ import directly in Postman:
# .postman/collections/mock-jutsu.postman_collection.json
โ View Collection
๐ป Usage
Whether you are writing automated tests, working in the terminal, or spinning up a mock API, Mock Jutsu is ready.
๐ 1. Python SDK
from mockjutsu.core import jutsu
# 1. Complete, internally-consistent profiles
person = jutsu.profile(locale='DE')
print(person['nationalid']) # -> "86094599602" (Steuer-ID: ISO 7064 MOD 11,10 โ
)
print(person['iban']) # -> "DE89370400440532013000" (ISO 13616 MOD-97 โ
)
# 2. Individual precise data types
card = jutsu.generate('cardnum', network='amex') # -> "376956063521007" (Luhn โ
)
btc = jutsu.generate('btc_address') # -> "1BvBMSEYstWet..." (Base58Check SHA256d โ
)
# 3. ๐ฏ Fully Customizable Templates
# Define your own schema and generate a list of dictionaries instantly
users = jutsu.template(
{'user_id': 'uuid', 'name': 'fullname', 'wallet': 'crypto_address'},
count=100, locale='UK'
)
# 4. Generate thousands of records & export directly to SQL
sql = jutsu.export(
{'id': 'uuid', 'name': 'fullname', 'card': 'cardnum', 'bank_account': 'iban'},
count=5000, format='sql', table='users', locale='TR'
)
โก 2. Beautiful CLI
Generate valid test data straight from your terminal.
# Get single values instantly
$ mockjutsu generate tckn
$ mockjutsu generate iban --locale FR
$ mockjutsu generate cardnum --network troy
# Need an array of valid US phone numbers?
$ mockjutsu bulk phone --count 500 --locale US
# Generate CSV datasets and save to a file
$ mockjutsu template uuid fullname crypto_address --count 100 --format csv > users.csv
# Generate SQL seed files and save to a text file
$ mockjutsu template uuid fullname crypto_address --count 500 --format sql --table USERS > data.txt
๐งฑ 4. Template Generation via CLI
Combine multiple data types into a structured JSON record directly from your terminal.
$ mockjutsu template uuid fullname crypto_address --count 2 --locale US
[
{
"uuid": "5ae780dd-1e26-4317-bc87-495eb53563aa",
"fullname": "Holly Brandt",
"crypto_address": "13gSozPBVaQMfFvVrRB7AQ3Fe6ZLDXErUh"
},
{
"uuid": "76706c3e-3eaa-4afd-a749-e4002764d275",
"fullname": "Brooke Lyons",
"crypto_address": "1GPuQvEVjYfy7C4fdxtY2Y1q76Awngsk9n"
}
]
๐ 6 Locales. 100% Real Algorithms.
We don't just localize names; we localize mathematics.
| Locale | Country | National ID | Internal Algorithm Executed |
|---|---|---|---|
| ๐น๐ท | TR | TCKN | Dual MOD-10 checksum, 11 digits |
| ๐บ๐ธ | US | SSN / EIN | ABA Routing MOD-10 |
| ๐ฌ๐ง | UK | NIN / UTR | HMRC prefix restrictions |
| ๐ฉ๐ช | DE | Steuer-ID | ISO 7064 MOD 11,10 |
| ๐ซ๐ท | FR | SIREN / TVA | Luhn + MOD-97 |
| ๐ท๐บ | RU | INN / SNILS | Weighted checksum arrays, MOD-101 |
๐ฆ 390 Supported Data Types
We cover everything from standard identities to complex financial market identifiers.
๐ค Identity & Demographic (42 types)
tckn ssn ein nin siren siret tva inn snils ogrn passport license +20 more
๐ณ Financial & Banking (53 types)
cardnum cardnetwork iban sepa_qr emv_qr_p2p emv_qr_atm emv_qr_pos bic sort_code +18 more
๐ก Telecom & IoT (19 types)
imei iccid imsi msisdn rfid_uid epc nfc_uid ndef_uri apdu ir_nec +10 more
๐น Securities & Crypto (38 types)
isin cusip sedol lei btc_address eth_address tx_hash block_hash
๐ฆ E-Commerce & Barcodes (20 types)
ean13 upca isbn13 gs1_128 tracking_number sku order_id +5 more
(See our interactive guides for the full list of 390 types: ๐น๐ท TR | ๐บ๐ธ EN | ๐ฌ๐ง UK | ๐ฉ๐ช DE | ๐ซ๐ท FR | ๐ท๐บ RU)
๐ค Contributing
Mock Jutsu thrives on community contributions. Found a checksum we're not validating? A locale we're missing? We'd love your help!
๐จ Strict TDD & Performance Mandate To maintain our enterprise-grade quality, this repository mechanically enforces Test-Driven Development (TDD).
- Every new generator must be fully tested mathematically.
- Every new generator must pass the
< 1.5msperformance baseline. - GitHub Actions will automatically block any Pull Request that lacks passing tests.
Please read our full CONTRIBUTING.md guide before starting your work.
Quick Start for Contributors
- Fork the Project & clone it locally.
- Install the pre-push safety hook:
python scripts/setup-hooks.py - Write your test first, then implement your algorithm.
- Commit your changes and open a Pull Request!
โ๏ธ Legal Disclaimer
Generated data is entirely synthetic and for development/testing environments only.
- Do not submit to real financial, government, or telecom production systems.
- Generated IBANs, card numbers, and national IDs are mathematically valid but do not belong to real entities.
๐ Support Mock Jutsu
Mock Jutsu is free and open-source. If it saved you hours of debugging, consider buying me a coffee โ
"Every cup of coffee = one more data type." ๐ฅท
| Network | Address |
|---|---|
| ฮ Ethereum (ETH) | 0x8D2fF0a795E3a19D41758Cb9b4451C39D528BbAF |
This section will be updated with our sponsors.
If mock-jutsu saved you from debugging a "valid-looking but broken" test ID, please leave a โญ!
Released under the MIT License โข Copyright ยฉ 2026 Altan Sezer Ayan โ A.S.A
Project details
Release history Release notifications | RSS feed
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 mockjutsu-1.0.0.tar.gz.
File metadata
- Download URL: mockjutsu-1.0.0.tar.gz
- Upload date:
- Size: 393.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07bd59ec7bf813ce54792d7a4580f84267576a5a6bb4a4d934674790de060ffd
|
|
| MD5 |
feb9669ce4a6542a6f554beb88c0f045
|
|
| BLAKE2b-256 |
d6e85f591103f6901bc638220456a7436174c979e381e2bc54014721d9b182d0
|
File details
Details for the file mockjutsu-1.0.0-py3-none-any.whl.
File metadata
- Download URL: mockjutsu-1.0.0-py3-none-any.whl
- Upload date:
- Size: 255.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da92e3c158260c02097d7545bc498c87d41303955d924dd7b34c4a32f80f9d2e
|
|
| MD5 |
f482d8a01023e6e4bd629539be6d7009
|
|
| BLAKE2b-256 |
4d2288732974559a441460d6b973086bfdc277e5e815491c54289945f5a3ba76
|