Skip to main content

A brief description of your bex package

Project description

bex-py

This is a python binding for the bex crate, a library for boolean expression manipulation. It is inspired by and intends to be mostly compatible with the dd package.

Installation

pip install tangentstorm-bex

Usage

Here's a simple example of how to use the bex module:

import bex

# Create a BDD base
base = bex.BddBase()

# Create some variables
a = bex.nvar(0)
b = bex.nvar(1)

# Perform some operations
c = base.op_and(a, b)
d = base.op_or(a, b)

# Print the results
print(f"a & b = {c}")
print(f"a | b = {d}")

Here's a simple example of how to use the dd_bex module:

from bex.dd import BDD

bdd = BDD()

bdd.declare('x0', 'x1', 'x2')

n = bdd.add_expr('(x0 & x1) | x2')

bdd.dump('and-or.svg', [n])

import webbrowser
webbrowser.open('and-or.svg')

(x0 & x1)|x2

License

This project is licensed under the MIT License. See the LICENSE file for details.

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

tangentstorm_bex-0.3.0.tar.gz (339.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tangentstorm_bex-0.3.0-cp311-cp311-win_amd64.whl (396.1 kB view details)

Uploaded CPython 3.11Windows x86-64

File details

Details for the file tangentstorm_bex-0.3.0.tar.gz.

File metadata

  • Download URL: tangentstorm_bex-0.3.0.tar.gz
  • Upload date:
  • Size: 339.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.8.2

File hashes

Hashes for tangentstorm_bex-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6c918e257493fbb7cdbf2471daf9e29c8489bd9fe6f9ac779f212327bf272eea
MD5 88920bef3539617d7c59867c52d8161a
BLAKE2b-256 4b6c92e290999caaa33a6a99c169e2554a723157e51a510bc1074c7f73e48565

See more details on using hashes here.

File details

Details for the file tangentstorm_bex-0.3.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for tangentstorm_bex-0.3.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0e3b7b26491c3541edeff1392b44ffad8de239730a838ec3b8606b000c2877c2
MD5 8f9007f713913b7e283b5404483a4366
BLAKE2b-256 585ebd26b0adcdc3545e4b847f48c2fcaf3d2f2302205738bd73403f26297265

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