Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

A utility package for working with the EMP framework

Project description

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

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page