Skip to main content

Cutting-edge Python library for generating random data for Protobuf messages

Project description

🎲 protodummy

A cutting-edge Python library for effortlessly generating random, realistic data for your Protocol Buffer (protobuf) messages.

PyPI version Python Version License: MIT

✨ Features

  • 🚀 Lightning Fast: Seamlessly populate massive protobuf structures.
  • 🧠 Smart Generation: Powered by faker to generate realistic names, emails, addresses, and more, automatically inferred from your field names.
  • 🛠️ Deeply Customizable: Easily override rules for specific fields when you need exact constraints.
  • 📦 Zero-Friction: Works flawlessly with standard protobuf compiler outputs.

📥 Installation

Simply install via pip (or your favorite package manager):

pip install protodummy

⚡ Quickstart

Assume you have a user.proto file:

syntax = "proto3";

message UserProfile {
    string id = 1;
    string full_name = 2;
    string email_address = 3;
    int32 age = 4;
}

Now, generate a random user profile in Python in two lines:

from my_protos import user_pb2
from protodummy import generate_dummy

# 🪄 Magic!
random_user = generate_dummy(user_pb2.UserProfile)

print(random_user.full_name)     # e.g. "Jane Doe"
print(random_user.email_address) # e.g. "jane.doe@example.com"
print(random_user.age)           # e.g. 42

🤝 Contributing

Contributions are completely welcome! Please feel free to open a Pull Request or an Issue to help us make protodummy even better.

📄 License

This project is licensed under the MIT License.

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

protodummy-0.1.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

protodummy-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file protodummy-0.1.0.tar.gz.

File metadata

  • Download URL: protodummy-0.1.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for protodummy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2510d249898947d3138924b9bee39ba3bd379de8dc083b0bcaae5f9e80021589
MD5 2b77b882de1553260c9abe509f3b8591
BLAKE2b-256 30b7c56a174809e0062dbc25c8bb40a971ba046d27df0938dac0a4238db7dc40

See more details on using hashes here.

Provenance

The following attestation bundles were made for protodummy-0.1.0.tar.gz:

Publisher: python-publish.yml on nth-bailey/protodummy-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file protodummy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: protodummy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for protodummy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e9c74e01af82d30716f75495a438fefb62c8f2b41dafe7a6465b658623fe9cc
MD5 f1f2b964c83df6fafaab4c58ee417c21
BLAKE2b-256 fe2911cd85994172db737c6db28ae8744ee8b236037022549a194a3c21681cfc

See more details on using hashes here.

Provenance

The following attestation bundles were made for protodummy-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on nth-bailey/protodummy-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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