Skip to main content

A library for decoding Virtual Circuit Board blueprint strings

Project description

Visual Circuit Board (VCB) Python Library

Description

This Python library provides a way to read Visual Circuit Board (VCB) blueprint strings and convert them into a convenient data structure.

Installation

pip install vcbblueprint

Usage

Here is a simple usage example:

import vcbblueprint

blueprint_string = "VCB+..." # a VCB blueprint string

# read the blueprint string and get the version and layers
version, layers = vcbblueprint.read_blueprint(blueprint_string)

# use the filter function to get a boolean matrix of pixels of a
# specific component type
and_pixels = vcbblueprint.filter(layers[0], vcbblueprint.ComponentType.AND)

Contributions

Contributions are welcome. Feel free to open an issue or submit a pull request.

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

vcbblueprint-0.1.1.tar.gz (7.4 kB view hashes)

Uploaded Source

Built Distribution

vcbblueprint-0.1.1-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

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