lk-geimfari / mimesis

Mimesis is a robust data generator for Python that can produce a wide range of fake data in multiple languages.
https://mimesis.name
MIT License
4.39k stars 330 forks source link

Something weird is happening #230

Closed vchernetsov closed 6 years ago

vchernetsov commented 6 years ago

This module is installed as a "pip install git+https://github.com/lk-geimfari/mimesis@e885cbb71bb4a9a40ef4ca72f6a7f7035cfd77ee" in docker

Looping over Personal objects gives only 2 persons I just keep it here:

root@50978a2def4f:/usr/src/app# python
Python 3.5.4 (default, Sep 13 2017, 14:38:38) 
[GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from mimesis import Personal, settings
>>> for x in range(10):
...     p = Personal()
...     password = p.password()
...     data = {
...         'name': p.name(),
...         'last_name': p.surname(),
...         'password': password,
...         'confirm_password': password,
...         'email': p.email()
...     }
...     print (data)
... 
{'password': 'J!5Adi\\h', 'confirm_password': 'J!5Adi\\h', 'last_name': 'Navarro', 'email': 'arpita1984@yandex.com', 'name': 'Laci'}
{'password': 'y.{Q!QH0', 'confirm_password': 'y.{Q!QH0', 'last_name': 'Barnes', 'email': 'birdseed1999@outlook.com', 'name': 'Leontine'}
{'password': 'J!5Adi\\h', 'confirm_password': 'J!5Adi\\h', 'last_name': 'Navarro', 'email': 'arpita1984@yandex.com', 'name': 'Laci'}
{'password': 'y.{Q!QH0', 'confirm_password': 'y.{Q!QH0', 'last_name': 'Barnes', 'email': 'birdseed1999@outlook.com', 'name': 'Leontine'}
{'password': 'J!5Adi\\h', 'confirm_password': 'J!5Adi\\h', 'last_name': 'Navarro', 'email': 'arpita1984@yandex.com', 'name': 'Laci'}
{'password': 'y.{Q!QH0', 'confirm_password': 'y.{Q!QH0', 'last_name': 'Barnes', 'email': 'birdseed1999@outlook.com', 'name': 'Leontine'}
{'password': 'J!5Adi\\h', 'confirm_password': 'J!5Adi\\h', 'last_name': 'Navarro', 'email': 'arpita1984@yandex.com', 'name': 'Laci'}
{'password': 'y.{Q!QH0', 'confirm_password': 'y.{Q!QH0', 'last_name': 'Barnes', 'email': 'birdseed1999@outlook.com', 'name': 'Leontine'}
{'password': 'J!5Adi\\h', 'confirm_password': 'J!5Adi\\h', 'last_name': 'Navarro', 'email': 'arpita1984@yandex.com', 'name': 'Laci'}
{'password': 'y.{Q!QH0', 'confirm_password': 'y.{Q!QH0', 'last_name': 'Barnes', 'email': 'birdseed1999@outlook.com', 'name': 'Leontine'}
lk-geimfari commented 6 years ago

There no issue. Use it like that:

from mimesis import Personal

p = Personal()

for x in range(10):
    password = p.password()
    data = {
        'name': p.name(),
        'last_name': p.surname(),
        'password': password,
        'confirm_password': password,
        'email': p.email()
    }
    print(data)

Output:

{'last_name': 'Brewer', 'password': 'GENK/sV/', 'confirm_password': 'GENK/sV/', 'email': 'carita2070@gmail.com', 'name': 'Adah'}
{'last_name': 'Riddle', 'password': 'Qc0ZDVBJ', 'confirm_password': 'Qc0ZDVBJ', 'email': 'dirtbird2003@yahoo.com', 'name': 'Kayleigh'}
{'last_name': 'Moreno', 'password': "}k8'pPmy", 'confirm_password': "}k8'pPmy", 'email': 'archfiend1862@gmail.com', 'name': 'Christinia'}
{'last_name': 'Cleveland', 'password': '}(!@atT\\', 'confirm_password': '}(!@atT\\', 'email': 'brightly1994@yandex.com', 'name': 'Chassidy'}
{'last_name': 'Padilla', 'password': 'ua8E#)E%', 'confirm_password': 'ua8E#)E%', 'email': 'navies1968@outlook.com', 'name': 'Lizeth'}
{'last_name': 'Hodges', 'password': '>aP\\oY^i', 'confirm_password': '>aP\\oY^i', 'email': 'videotape1932@gmail.com', 'name': 'Sheilah'}
{'last_name': 'Soto', 'password': 'x}X&sNr+', 'confirm_password': 'x}X&sNr+', 'email': 'alterant2055@yandex.com', 'name': 'Tova'}
{'last_name': 'Hyde', 'password': 'Y^9z*1B)', 'confirm_password': 'Y^9z*1B)', 'email': 'mechanic1884@yahoo.com', 'name': 'Ozella'}
{'last_name': 'Robles', 'password': '<B]BDYrP', 'confirm_password': '<B]BDYrP', 'email': 'sheriff1933@yandex.com', 'name': 'Luis'}
{'last_name': 'Caldwell', 'password': ',,x526n*', 'confirm_password': ',,x526n*', 'email': 'blais1821@yandex.com', 'name': 'Toshiko'}