Skip to main content

WaveDrom compatible python command line

Project description

WaveDromPy

WaveDrom compatible python module and command line.

This tool is intended for people who don't want to install the Node.js environment just to use WaveDrom as simple command line.

This tool is a direct translation of original Javascript file WaveDrom.js to Python. No extra feature added.

WaveDromPy directly converts WaveDrom compatible JSON files into SVG format.

Build Status PyPI version

Usage

WaveDromPy can be called directly:

  wavedrompy source < input.json > svg < output.svg >

or via the wrapper script WaveDromEditor(.exe) for compatibility with the original WaveDrom command line:

  WaveDromEditor source < input.json > svg < output.svg >

WaveDromEditor is a script wrapper to be used with Linux. WaveDromEditor.exe is a script wrapper to be used with Cygwin.

Important notice

The command line uses Python's JSON interpreter that is more restrictive than that of original WaveDrom application.

  • All strings have to be written between quotes (""),
  • Extra comma (,) not supported at end of lists or dictionaries,
  • Only SVG output format supported so far,
  • WaveDromPy doesn't support the schematic drawing feature yet,
  • WaveDromPy was tested with Python V2.7.12 and Python V3.4.5 under both Cygwin and Ubuntu.

Installation

pip install wavedrom

AsciiDoctor example

An AsciiDoctor example is provided to directly generate timing diagrams from AsciiDoctor formatted documents.

Project details


Download files

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

Source Distribution

wavedrom-0.0.7.tar.gz (115.2 kB view details)

Uploaded Source

File details

Details for the file wavedrom-0.0.7.tar.gz.

File metadata

  • Download URL: wavedrom-0.0.7.tar.gz
  • Upload date:
  • Size: 115.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for wavedrom-0.0.7.tar.gz
Algorithm Hash digest
SHA256 f3dad5056d602beac46dcd200c69e500413f857c7b07d0ef40bf45d7b1e7a1fe
MD5 4032ea916880d3a4b5ce91c435cb11a9
BLAKE2b-256 90879b490229d17b14ce9acad7916b7d4fd86d8a6bcd181904cf860311037448

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page