Coder Social home page Coder Social logo

gustavewpm / phony Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 167 KB

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

License: MIT License

Python 100.00%
algorithm chunking configurable experimental list-comprehension meta-programming mongodb phone-number-generator phone-number-validation pymongo python stateless oop oop-in-python

phony's Introduction

☎️ 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)
  • Stateful
  • 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

phony's People

Contributors

gustavewpm avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

phony's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.