Skip to main content

A utility package for working with the EMP framework

Project description

pipeline status

emputils

A utility package for working with the EMP framework

Installation

pip install emputils

PatternGenerator

A class for generating pattern files.

Example

First, define a function to generate data:

def generate():
    frames = []
    for i in range(200):
        frames.append("1v{:016x}.format(i)")
    return frames

Then generate pattern file

from emputils import PatternGenerator

pg = PatternGenerator(range(40,58))
for i, link in enumerate(pg.links.columns):
    pg.buildLink(link, generate())
pg.writeToFile("pattern.txt")

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 emputils, version 0.1.15
Filename, size File type Python version Upload date Hashes
Filename, size emputils-0.1.15-py3-none-any.whl (19.3 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

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