Skip to main content

Generate data randomly

Project description

randog 0.15.0 — Randomly object generator

randog is a package which helps to generate data randomly.

Install

You can install from PyPI.

pip install -U randog

Usage

For example:

import uuid
import randog.factory

factory = randog.factory.from_example({"uuid": uuid.uuid4, "name": "", "age": 20})
generated = factory.next()

assert isinstance(generated, dict)
assert isinstance(generated["uuid"], uuid.UUID)
assert isinstance(generated["name"], str)
assert isinstance(generated["age"], int)

See the documentation for more details.

Types that can be generated

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

randog-0.15.0.tar.gz (44.1 kB view details)

Uploaded Source

Built Distribution

randog-0.15.0-py3-none-any.whl (68.2 kB view details)

Uploaded Python 3

File details

Details for the file randog-0.15.0.tar.gz.

File metadata

  • Download URL: randog-0.15.0.tar.gz
  • Upload date:
  • Size: 44.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.18

File hashes

Hashes for randog-0.15.0.tar.gz
Algorithm Hash digest
SHA256 0ab3f05f23e54c00c53e0bd2587d29fc68b529fddaebdf74fae471f8d8288c00
MD5 f3e83d43d4be1bf4c4ab782464a207e2
BLAKE2b-256 edc2e0c9fc74178cd2d3e0535e1972882db11e252bb67399c45ada1bdeaa7a6d

See more details on using hashes here.

File details

Details for the file randog-0.15.0-py3-none-any.whl.

File metadata

  • Download URL: randog-0.15.0-py3-none-any.whl
  • Upload date:
  • Size: 68.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.18

File hashes

Hashes for randog-0.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 04c7718317def38564fc66d51a6c5e8b80aea50eea6b7a6380dff7a2cbe266fc
MD5 fe0a516a961985671ed5dce8833a466b
BLAKE2b-256 56915e78915867c629be713cb4d52bef1c090e15a2cce476329a49f649bd74cb

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