Skip to content
This repository has been archived by the owner on Jul 13, 2024. It is now read-only.
/ phony Public archive

☎️ Python side project (generation, data-persistence).

License

Notifications You must be signed in to change notification settings

gustaveWPM/phony

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

☎️ Phony

CAUTION: I am neither a telephony nor a Python pro (this is my first Python script, lmao).
This is probably not the most rigorous way to achieve the sake of this project.
Remember that it is just a side project made for the fun.

Features

  • Deterministic generation (Finite generator)
  • Data Persistence (MongoDB)
  • Stateless
  • Configuration:
    • i18n configuration template
    • Country code
    • Operator codes
    • Fine-tuning rules:
      • Phone number length
      • Same digit threshold
      • Consecutive same digit threshold
      • Max consecutive zeros
      • Max heading zeros (maximum of zeros at the beginning of the pseudo-randomly generated block)
      • Banned operator codes
    • Pseudo randomization:
      • Shuffle operator codes
      • Pick a new random operator code all the x database chunk creation.
      • Randomize database entries chunks' size

How to run

$ python3 run.py

Dependencies