address_streetContactLocale Aware

Mock Jutsu HOW-TO | EN

The address_street function is a core component of the mock-jutsu library, specifically designed to generate highly realistic street and avenue names tailored to diverse locales. When developers need high-quality test data for applications involving shipping, logistics, or user profile management, this function provides the necessary authenticity to simulate real-world environments. Unlike generic string generators that produce random characters, mock-jutsu utilizes locale-aware algorithms that respect regional naming conventions, ensuring that a street name generated for a specific region feels native and accurate to that geography.

Behind the scenes, the address_street utility relies on extensive localized dictionaries and standardized formatting rules. This ensures that the mock data produced is indistinguishable from real-world entries in a production database. For software engineers and QA professionals, this level of detail is crucial for testing UI layouts where text length, suffix variations, and special characters differ significantly by country. By incorporating these realistic strings into their test suites, teams can identify potential edge cases in address parsing, database indexing, or front-end display logic long before the code reaches a live environment.

Integrating this function into a modern development workflow is seamless, whether you are working with the command-line interface, a Python script, or a performance testing tool. For quick data generation or shell scripting, the CLI command "mockjutsu generate address_street" provides instant results, while Python developers can easily call jutsu.generate('address_street') within their unit tests or data seeding scripts. Furthermore, mock-jutsu offers dedicated support for JMeter users through the specific function syntax, enabling the creation of dynamic, non-repetitive test data for large-scale load testing scenarios where unique address inputs are required for every thread.

The primary benefit of using mock-jutsu for address generation is the significant reduction in manual data entry and the elimination of "lorem ipsum" placeholders that often mask underlying bugs. By utilizing the address_street function, developers can automate the seeding of development databases with thousands of unique, valid-looking entries. This approach not only accelerates the development lifecycle but also improves the overall quality of the software by providing a robust foundation for automated testing and user experience validation across different global markets, ensuring that your application is ready for a worldwide audience.

CLI Usage
mockjutsu generate address_street --locale TRmockjutsu generate address_street --locale DEmockjutsu bulk address_street --count 10 --locale TRmockjutsu export address_street --count 10 --format json --locale TRmockjutsu export address_street --count 10 --format csv --locale TRmockjutsu export address_street --count 10 --format sql --locale TR# --mask: regulation-compliant output (PCI DSS / GDPR / KVKK)mockjutsu generate address_street --locale TR --maskmockjutsu bulk address_street --count 5 --locale TR --mask
Python API
from mockjutsu import jutsujutsu.generate('address_street', locale='TR')jutsu.bulk('address_street', count=10, locale='TR')jutsu.template(['address_street'], count=5, locale='TR')# mask=True: regulation-compliant outputjutsu.generate('address_street', locale='TR', mask=True)jutsu.bulk('address_street', count=5, locale='TR', mask=True)
JMeter
${__mockjutsu_comm(address_street,TR)}# JMeter Function: __mockjutsu_comm# Parameter 1: address_street# Parameter 2: locale (TR/UK/US/DE/FR/RU)${__mockjutsu_comm(address_street,DE)}# Add 'mask' keyword to get a regulation-compliant masked value${__mockjutsu_comm(address_street,TR,mask)}
REST API
GET /generate/address_street?locale=TR# → {"type":"address_street","result":"...","status":"ok"}GET /bulk/address_street?count=10&locale=TRPOST /template {"types":["address_street"],"count":1,"locale":"TR"}# mask=true: regulation-compliant outputGET /generate/address_street?locale=TR&mask=trueGET /bulk/address_street?count=5&locale=TR&mask=true

Parameters

Parameter Values Description
--locale TR|UK|US|DE|FR|RU Region / locale for locale-aware output
--mask true | false Return a regulation-compliant masked value (PCI DSS, GDPR, KVKK…)

Other Languages