Skip to main content

Generate data randomly

Project description

randog 0.18.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.18.0.tar.gz (50.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

randog-0.18.0-py3-none-any.whl (79.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for randog-0.18.0.tar.gz
Algorithm Hash digest
SHA256 394a8a8fa9bbdb5da0b263a43b12c19de654a3693490d8948ecccca45040f6ff
MD5 7f98e75fcbe21fd1362805ffe32f467a
BLAKE2b-256 c7637f73fef2a5ae034a516c8ce37426113faf343ae1073c5eb53820fe943db2

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for randog-0.18.0-py3-none-any.whl
Algorithm Hash digest
SHA256 84ff8457a7a50f1580259907489cc6c252204fc7f7851f13c486973dae629c7a
MD5 33a4cc1c5530a46a12725a7267288f8d
BLAKE2b-256 1358a0fc1777abcc5385b336707b85543471ea6f69d3dd52c25d4dcf34f6ff25

See more details on using hashes here.

Supported by

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