3 ms·
I sometimes use DDG for getting a UUID too :) https://duckduckgo.com/?q=uuid&t=hj&ia=answer https://duckduckgo.com/?q=uuid&t=hj&ia=answer If you like that kin
by BiteCode_dev 6y ago
I sometimes use DDG for getting a UUID too :)
https://duckduckgo.com/?q=uuid&t=hj&ia=answer https://duckduckgo.com/?q=uuid&t=hj&ia=answer
If you like that kind of things and you dig Python, the lib "faker" (https://faker.readthedocs.io/en/master/ https://faker.readthedocs.io/en/master/) is a real threat:
from faker import Faker
fake = Faker()
fake.name()
# 'Lucy Cechtelar'
fake.address()
# '426 Jordy Lodge
# Cartwrightshire, SC 88120-6700'
fake.text()
# 'Sint velit eveniet. Rerum atque repellat voluptatem quia rerum. Numquam excepturi
...
There are many different generators, and you can even use l10n to generate names, phone numebers, plates, IP or ssn from different parts of the world.
It's amazing to create test data, either for dev or teaching, and I just have it autoimported in my PYTHONSTARTUP because of it.
It also plays well with "factoryboy" (https://factoryboy.readthedocs.io/en/latest/ https://factoryboy.readthedocs.io/en/latest/) to mass generate complex data set, and even add them automatically to the database.
- hapidjus 6y agoThis is the equivalent library for PHP https://github.com/fzaninotto/Faker https://github.com/fzaninotto/Faker
- BiteCode_dev 6y agoNice to see we all copied that from perl.
- thelibrarian 6y agoAnd this is the equivalent for Ruby: https://github.com/faker-ruby/faker https://github.com/faker-ruby/faker