The sgk function within the mock-jutsu library provides developers and quality assurance engineers with a streamlined method for generating realistic Turkish Social Security numbers. This specific identity generator is essential for teams building software tailored for the Turkish market, particularly in the human resources, payroll, and healthcare sectors. By producing strings that adhere to the standard regional format—such as 34-0012345-1.01-02—the library ensures that your mock data reflects the structural complexity of real-world administrative identifiers without compromising sensitive personal information or violating privacy regulations.
Each sgk value generated by mock-jutsu follows the established conventions used by the Social Security Institution of Turkey. The output typically includes the provincial city code, a unique registration number, and specific sub-codes that denote the insurance type and branch. This rigorous attention to detail is crucial when validating input masks, database schema constraints, or front-end validation logic. Using accurate test data during the development phase prevents integration errors that often arise when using arbitrary or improperly formatted strings that do not match the expected patterns of Turkish governmental systems.
For software testers, the sgk generator is a versatile tool for a wide range of testing scenarios. Whether you are performing load testing on a massive payroll processing engine or sanity checking a simple employee registration form, having access to high-fidelity mock data is a significant advantage. It allows for the creation of thousands of unique, valid-looking records in seconds, facilitating robust stress tests and edge-case analysis. Furthermore, using mock-jutsu helps organisations maintain strict compliance with data protection laws like the KVKK by replacing actual citizen data with synthetic alternatives during the staging and testing phases of the software development lifecycle.
Integration is seamless across different technical environments, making mock-jutsu a highly developer-friendly choice. You can trigger the generation via the CLI for quick prototyping, call the function directly within your Python scripts using the native API, or even utilise the JMeter plugin for performance testing. This flexibility ensures that consistent, high-quality test data is available wherever it is needed, from local development environments to automated CI/CD pipelines, ultimately accelerating the time-to-market for complex enterprise applications requiring Turkish localisation.
mockjutsu generate sgkmockjutsu bulk sgk --count 10mockjutsu export sgk --count 10 --format jsonmockjutsu export sgk --count 10 --format csvmockjutsu export sgk --count 10 --format sql# --mask: regulation-compliant output (PCI DSS / GDPR / KVKK)mockjutsu generate sgk --maskmockjutsu bulk sgk --count 5 --maskfrom mockjutsu import jutsujutsu.generate('sgk')jutsu.bulk('sgk', count=10)jutsu.template(['sgk'], count=5)# mask=True: regulation-compliant outputjutsu.generate('sgk', mask=True)jutsu.bulk('sgk', count=5, mask=True)${__mockjutsu_identity(sgk)}# JMeter Function: __mockjutsu_identity# Parameter 1: sgk# Parameter 2: (not required for this function)# Add 'mask' keyword to get a regulation-compliant masked value${__mockjutsu_identity(sgk,mask)}GET /generate/sgk# → {"type":"sgk","result":"...","status":"ok"}GET /bulk/sgk?count=10POST /template {"types":["sgk"],"count":1}# mask=true: regulation-compliant outputGET /generate/sgk?mask=trueGET /bulk/sgk?count=5&mask=true| Parameter | Values | Description |
|---|---|---|
| --mask | true | false | Return a regulation-compliant masked value (PCI DSS, GDPR, KVKK…) |