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.
✨ Features
- 🚀 Lightning Fast: Seamlessly populate massive protobuf structures.
- 🧠 Smart Generation: Powered by
fakerto 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
protobufcompiler 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file protodummy-0.1.1.tar.gz.
File metadata
- Download URL: protodummy-0.1.1.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d5ebdf9182b56aa42942a06396518d919e7b7904f0fcce4e940b4ee13aacb86
|
|
| MD5 |
34d5a895ee8f3d74bbc0d05c0ef44582
|
|
| BLAKE2b-256 |
f8abbf811b7316c4c137c6caf202709584fbd0b670688fe2325b5362022fa514
|
Provenance
The following attestation bundles were made for protodummy-0.1.1.tar.gz:
Publisher:
python-publish.yml on nth-bailey/protodummy-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
protodummy-0.1.1.tar.gz -
Subject digest:
0d5ebdf9182b56aa42942a06396518d919e7b7904f0fcce4e940b4ee13aacb86 - Sigstore transparency entry: 1204941577
- Sigstore integration time:
-
Permalink:
nth-bailey/protodummy-py@fbc3b78cee64688c28e8db76ec1cb6fb44d57c50 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/nth-bailey
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@fbc3b78cee64688c28e8db76ec1cb6fb44d57c50 -
Trigger Event:
release
-
Statement type:
File details
Details for the file protodummy-0.1.1-py3-none-any.whl.
File metadata
- Download URL: protodummy-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d7cf346712b3b8a3df4e6461e6e7652fb988c90f5c3e980e47cdc0f3f3cf854
|
|
| MD5 |
8fabc819f3134623ba50426f12c424c7
|
|
| BLAKE2b-256 |
2e16d8c1226f4d324e3cbc5a3e432ebf323a52bada4bea01c128ec116edea9dd
|
Provenance
The following attestation bundles were made for protodummy-0.1.1-py3-none-any.whl:
Publisher:
python-publish.yml on nth-bailey/protodummy-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
protodummy-0.1.1-py3-none-any.whl -
Subject digest:
4d7cf346712b3b8a3df4e6461e6e7652fb988c90f5c3e980e47cdc0f3f3cf854 - Sigstore transparency entry: 1204941653
- Sigstore integration time:
-
Permalink:
nth-bailey/protodummy-py@fbc3b78cee64688c28e8db76ec1cb6fb44d57c50 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/nth-bailey
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@fbc3b78cee64688c28e8db76ec1cb6fb44d57c50 -
Trigger Event:
release
-
Statement type: