Skip to main content

Mimesis: mock data for developers.

Project description

Mimesis

Mimesis is a fast and easy to use the library for Python programming language, which helps generate mock data for a variety of purposes in a variety of languages. This data can be particularly useful during software development and testing. For example, it could be used to populate a testing database for a web application with user information such as email addresses, usernames, first names, last names, etc.

Documentation

Mimesis is very simple to use, and the below examples should help you get started. Complete documentation for Mimesis is available on Read the Docs.

Installation

To install mimesis, simply use pip (or pipenv):

  ~ pip install mimesis

Also, you can install it manually:

(env)  python3 setup.py install
# or
(env)  make install

Getting started

As we said above, this library is really easy to use. A simple usage example is given below:

>>> from mimesis import Personal
>>> from mimesis.enums import Gender
>>> person = Personal('en')

>>> person.full_name(gender=Gender.FEMALE)
'Antonetta Garrison'

>>> person.occupation()
'Backend Developer'

>>> for template in ('U_d', 'U-d', 'l_d', 'l-d'):
...     person.username(template=template)

'Adders_1893'
'Abdel-1888'
'constructor_1884'
'chegre-2051'

Locales

You can specify a locale when creating providers and they will return data that is appropriate for the language or country associated with that locale. Mimesis currently includes support for 33 different locales.

Data Providers

List of supported data providers available here

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mimesis-1.0.3.tar.gz (2.4 MB view details)

Uploaded Source

File details

Details for the file mimesis-1.0.3.tar.gz.

File metadata

  • Download URL: mimesis-1.0.3.tar.gz
  • Upload date:
  • Size: 2.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mimesis-1.0.3.tar.gz
Algorithm Hash digest
SHA256 5fd3b9892dc573d1da08dfcd38dba64c4b9868ffac1bff76db7a11caee77b182
MD5 64cfbb3068e1600dde05bc7ee6373e05
BLAKE2b-256 399323f5a3570727d767e1031754a7cc2afb8ba3f08824fd7965d4eb8798306d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page