Giter VIP home page Giter VIP logo

vcard_generator's Issues

Make contacts detectable as fakes

Add an invisible but valid text to every contact: In case of a mix up - you just imported 1000 fake contacts into your 598 real contacts - you are able to filter them more easily out.
Use some sort of comment function?
Misuse an obscure field that is not usually shown to a user?

Generalize phone number patterns

let user define multiple phone number patterns.

phone_pattern = ["0041 7Z XXX XX XX", "07Z XXX XX XX", "+49 XX XXX XX XX"]

All Xs gets replaced by integer 0-9
All Zs gets replaced by user def list of integers z_pattern = [6, 7, 8, 9]

random.choice(phone_pattern).replace("Z", str(random.choice(z_pattern))) ok with one occurrence
random.choice(phone_pattern).replace("X", str(random.randint(0, 9))) replaces every X with the same integer

random.choice(phone_pattern).replace("X","%s") % random.randint(0, 9) its missing values to replace the X's

WORKS but requieres import re:
re.sub('X', lambda m, i=iter(str(random.randint(100000000,900000000))): next(i), random.choice(phone_pattern)).replace("Z", str(random.choice(z_pattern)))

Add randomizer to gender of contact

The gender of the first names and the images do not necessarily match.
Use two lists of male and female names and assign matching images.
Images 1-200 are females, 201-400 are male.
Also, add a frequencyofgender int to determine the likeliness of all genders.

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.