This Python script generates valid Iranian national codes (code meli) based on user input. You can modify the prefix codes to generate codes for different cities by changing the prefixes
list in the first line of the Python script.
-
Clone the repository:
git clone https://github.com/your_username/iranian_code_generator.git
-
Navigate to the project directory:
cd iranian_code_generator
-
Open the Python script (
code_generator.py
) in a text editor. -
Modify the
prefixes
list in the first line of the script to include the desired prefix codes for cities. -
Save the changes and close the editor.
-
Run the script:
python code_generator.py
-
Follow the instructions provided by the script.
The script allows the user to specify the number of codes to generate or generate all possible valid codes. Valid codes are generated for the specified prefixes.
Generated codes are written to a text file named all_valid_codes.txt
.
- Python 3.x
This project is licensed under the MIT License - see the LICENSE file for details.
For detailed code documentation, please refer to the codes.md file.