dummy-link

Faker

generator of fake data for julia

Readme

Faker

Generator of fake data for julia .

Build Status Faker Faker Faker GitHub license

This package is a library that generates fake data.

Roadmap

Below are some of the features that are planned to be added in future versions of Faker.jl once version 1.0 of the language is released.

All contributions and suggestions are welcome !!!!

Version 0.1.0

  • Julia version 1.0 syntax update #### Version 0.1.1
  • Unicode symbol generator

Version 0.1.2

  • Language support, generation in the formats of each language > Possible syntax : Faker.language("en_US") - English (United States)

Version 0.1.3

  • Possibility of creating a generator
  • Implementation of the seed () method, seed for the random number generator. Calling the same script twice with the same seed will produce the same results. > Possible syntax : Fake.seed(4321) #### Version 0.1.4
  • Modularization of the method Faker.simple_profile() > Possible syntax : Faker.simple_profile("name,birthdate") # => ("name"=>"Benito","birthdate"=>"1997-3-16")
  • Modularization of the method Faker.profile() > Possible syntax : Faker.profile("blood_group,job") # => ("blood_group"=>"AB-","job"=>"Radiographer)

Installing

1) Stable version
  Pkg.add("Faker")
2) Development version 
  Pkg.clone("git://github.com/codeneomatrix/Faker.jl.git")

Usage


using Faker

Faker.email() #  => "kirsten.greenholt@corkeryfisher.info"

NOTE: While Faker generates data at random, returned values are not guaranteed to be unique.

Base


Faker.random_digit()                             # => 9
Faker.random_digit_not_null()                    # => 1
Faker.random_digit_or_empty()                    # => 5
Faker.random_number()                            # => 31730
Faker.random_int()                               # => 7545
Faker.randomize_nb_elements()                    # => 10
Faker.random_letter()                            # => N
Faker.random_element(("a", "b", "b"))            # => b
Faker.lexify("????")                             # => cIxw
Faker.numerify("###")                            # => 643
Faker.bothify("## ??")                           # => 92 Hu

Address



Faker.state_abbr()                              # => AP
Faker.latitude()                                # => -74.518224
Faker.street_name()                             # => Green Knoll
Faker.address()                                 # => 741 Drucilla Lights Marlenport, VT 54198-4463
Faker.street_address()                          # => 4630 Kling Throughway
Faker.postcode()                                # => 18604-5538
Faker.longitude()                               # => 41.536069
Faker.country()                                 # => Montserrat
Faker.geo_coordinate("None", 0.001)             # => 48.396071
Faker.secondary_address()                       # => Apt. 621
Faker.city_prefix()                             # => Lake
Faker.city_suffix()                             # => ville
Faker.building_number()                         # => 7065
Faker.city()                                    # => West Donato
Faker.state()                                   # => WestVirginia

Company



Faker.company()                                 # => Kohler-Ward
Faker.company_suffix()                          # => Inc
Faker.catch_phrase()                            # => Multi-layered user-facing functionalities
Faker.bs()                                      # => WestVirginia

Date


Faker.date_time_ad()                            # => 1446-03-17 04:03:47
Faker.months()                                  # => 10
Faker.am_pm()                                   # => PM
Faker.iso8601()                                 # => 1986-05-02T21:01:04
Faker.date_time_this_century()                  # => 1941-12-05 15:52:02
Faker.date_time()                               # => 1981-10-29 21:56:29
Faker.month_name()                              # => November
Faker.date_time_this_month()                    # => 2014-04-02 08:38:48
Faker.date_time_this_decade()                   # => 2013-02-24 18:47:46
Faker.day_of_week()                             # => Thursday
Faker.day_of_month()                            # => 14
Faker.time("%H:%M:%S")                          # => 21:44:43
Faker.date_time_between("-30y", "now")          # => 1990-01-30 11:47:01
Faker.unix_time()                               # => 711770812
Faker.date_time_this_year()                     # => 2013-04-22 14:51:26
Faker.timezone()                                # => Atlantic/Reykjavik
Faker.century()                                 # => XV
Faker.date("%Y-%m-%d")                          # => 1998-09-11
Faker.year()                                    # => 1998

Internet



Faker.email()                                   # => "eliza@mann.net"
Faker.free_email()                              # => "freddy@gmail.com"
Faker.safe_email()                              # => "christelle@example.org"
Faker.user_name()                               # => "melissa.price"
Faker.domain_name()                             # => "effertz.info"
Faker.domain_word()                             # => "haleyziemann"
Faker.domain_suffix()                           # => "info"
Faker.ipv4()                                    # => "24.29.18.175"
Faker.ipv6()                                    # => "ac5f:d696:3807:1d72:2eb5:4e81:7d2b:e1df"
Faker.uri()                                     # => "http://osinski.com/register/"
Faker.url()                                     # => "http://schmeler.com/"

Lorem



Faker.text()                                    # => Et dolor voluptates quaerat. Natus qui consequatur dolor facere. Tenetur repudiandae totam id vitae aut.
Faker.sentence()                                # => Alias officiis dignissimos maxime nam ad distinctio.
Faker.word()                                    # => qui
Faker.paragraphs()                              # => [u'Numquam cupiditate omnis impedit nesciunt laboriosam. Vitae hic iste qui deleniti quo incidunt ratione.
                       Natus ullam libero dolore sunt.', u'Veritatis nostrum quod dolorem soluta cupiditate qui incidunt.
                       Rerum minus commodi repreh enderit. Sed in dolor quia ut est. Impedit eos nihil aut m olestiae
                       reiciendis.', u'Ullam dolor molestias sit officii s expedita fuga repellat. Et fuga sequi sit. Aperiam
                      quaer at sint quasi vel nam.']
Faker.words()                                   # => [u'corrupti', u'ipsum', u'inventore']
Faker.paragraph()                               # => Voluptatibus quae nihil aut amet quos. Vitae fugiat adipisci inventore eaque adipisci quia. Nostrum non et numquam illum. Sed id dolore quia.
Faker.sentences()                               # => [u'Ipsam rerum molestias quod magni totam pariatur enim.',u'Dolores perspiciatis consequatur porro
                      recusandae sit voluptatem sint accusamus.', u'Repellendus explicabo delectus ad #Name

PhoneNumber


Phone numbers may be in any of the following formats:

  • +33(3)3333333333
  • +33(3)3333333333
  • 03333333333
  • 03333333333
  • 333-333-3333
  • (333)333-3333
  • 1-333-333-3333
  • 333.333.3333
  • 333-333-3333
  • (333)333-3333
  • 1-333-333-3333
  • 333-333-3333x333

(Don't let the example output below fool you - any format can be returned at random.)


Faker.phone_number()                            # => 456-089-3337x803

Misc


Faker.password()                                # => cQYVB)X%0$
Faker.locale()                                  # => en_SE
Faker.md5()                                     # => 74c3bf36bfc61f2bda75492b422bfaa7
Faker.sha1()                                    # => b221ee6090aa125f9acca8ea851d0dc7d9fb0886
Faker.null_boolean()                            # => True
Faker.sha256()                                  # => 87a636998cfd1b73b371079d51df2b6b419c94053d73b0da29a7f2e2da7f070a
Faker.country_code()                            # => DO
Faker.language_code()                           # => ru
Faker.boolean()                                 # => True

Color


Faker.color_name()                              # => DarkMagenta
Faker.safe_color_name()                         # => purple
Faker.hex_color()                               # => #77cc00
Faker.safe_hex_color()                          # => #16a100
Faker.rgb_color_list()                          # => (230, 94, 69)
Faker.rgb_color()                               # => 213,100,110
Faker.rgb_css_color()                           # => rgb(88,244,35)

Credit_card


Faker.credit_card_security_code()               # => 768
Faker.credit_card_full()                        # => VISA 16 digit Keon Marvin 4493818436107305 CVC 976
Faker.credit_card_number()                      # => 4916619442820082
Faker.credit_card_provider()                    # => American Express
Faker.generate_number("52",16)                  # => 5268029839131090

File


Faker.mime_type()                               # => video/quicktime
Faker.file_extension()                          # => css
Faker.file_name()                               # => sUwb.flac

Person


Faker.first_name()                              # => Cayden
Faker.last_name()                               # => Hickle
Faker.prefixe()                                 # => Mrs

Profile


Faker.simple_profile()                          # => ("name"=>"Benito","mail"=>"Sandra66@hotmail.com","username"=>"nGamez",
                                                      "birthdate"=>"1997-3-16","sex"=>"F",
                                                      "address"=>"Pasaje Morelos 373 572 San Carlota de la Montaña,BC 47785")
Faker.profile()                                 # => ("blood_group"=>"AB-","job"=>"Radiographer, therapeutic",
                                                      "residence"=>"Ampliación Escobar 515 Interior 017 San Carlota de la Montaña,
                                                      Q. ROO 75906","company"=>"Bañuelos-Delgadillo y Asociados",
                                                      "website"=>Any["http://bdya.com/","http://www.mgyc.com/"],
                                                      "current_location"=>(4.50390625,17.015625))

Job


Faker.job()                                     # => Geneticist, molecular

User_agent


Faker.mac_processor()                           # => U; PPC
Faker.linux_processor()                         # => x86_64
Faker.user_agent()                              # => safari
Faker.windows_platform_token()                  # => Windows NT 6.0
Faker.linux_platform_token()                    # => X11; Linux x86_64
Faker.mac_platform_token()                      # => Macintosh; U; PPC Mac OS X 10_6_5
Faker.chrome()                                  # => Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/5311 (KHTML, like Gecko)                                          # => Chrome/14.0.867.0 Safari/5311
Faker.firefox()                                 # => Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_8_7; rv:1.9.3.20)                                    # => Gecko/2002-10-25 15:36:53 Firefox/7.0
Faker.safari()                                  # => Mozilla/5.0 (Macintosh; PPC Mac OS X 10_5_9 rv:3.0; it-IT)                                             # => AppleWebKit/532.42.3 (KHTML, like Gecko) Version/5.0.1 Safari/532.42.3
Faker.opera()                                   # => Opera/9.97.(Windows CE; sl-SI) Presto/2.9.182 Version/12.00)
Faker.internet_explorer()                       # => Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 5.01; Trident/5.0)

License

This code is free to use under the terms of the MIT license.

First Commit

07/15/2015

Last Touched

4 days ago

Commits

65 commits

Used By: