Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

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

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page