Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Random protobuf object generator

Project description

randomproto: Random protobuf object generator

Refer to the documentation for API reference.

Installation

pip install randomproto

Usage

An example of pre-compiled Python file can be found in example2_pb2.py.

>>> import randomproto
>>> proto = example2_pb2.TypeMessage
>>> msg = randomproto.randproto(proto)
>>> msg
utm_source: "qv"
utm_medium: "dr"
utm_campaign: "sj"
bwp_lp: ""
usergroup: ""
step: -15511
cartTime: -61655
buyTime: 64308
searchTime: 59939
landingTime {
  value: 1533581008
  scale: MINMAX
}
stepsAfterBuy: 13140
lastSessionTime {
  value: 118924455
  scale: SECONDS
}
landingReferrerDomain: "n"
adGroupID: -30428
initiateCheckoutTime: 11859

Project details


Download files

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

Files for randomproto, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size randomproto-0.0.1-py2.py3-none-any.whl (3.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size randomproto-0.0.1.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page