Saravanan666/pypi-org huggingface dataset:
Package: circuit-dawg
Circuit DAWGThis pure-python package provides read-only access for files
created by thedawgdicC++ library and theDAWGpython package. It has been forked fromDAWG-Pythonin order to provide support for Circuit Python.This package is not capable of creating DAWGs. It works with DAWGs built by thedawgdicC++ library or theDAWGPython extension module. The main purpose of Circuit DAWG is to provide access to DAWGs on a microcontroller without requiring compiled extensions.InstallationClone this repository, or install with pip:pipinstallcircuit-dawgUsageThe aim ofcircuit-dawgis to be API compatible withDAWGwhen it is possible.First, you have to create a dawg usingDAWGmodule:import dawg
d = dawg.DAWG(data)
d.save('words.dawg')And then this dawg can be loaded without requiring C extensions:import circuit_dawg
d = circuit_dawg.DAWG().load('words.dawg')Please consultDAWGdocs for detailed usage. Some features
(like constructor parameters orsave()method) are intentionally
unsupported.Changes from DAWG PythonCircuit Python has a subset of the functionality of a full Python distribution. There were some built-in array methods from Python used for loading in the DAWG files that aren't present in Circuit Python, so they needed to be re-written.Future GoalsInteract with DAWGs from file without loading into memorySince Circuit Python is run on microcontrollers, memory is a commodity in very short supply. Loading a large DAWG into memory in order to interact with it is entirely unfeasible. Thus, I plan to make modifications to allow the DAWG to be read directly from the binary file without needing to load it all in.Contributions are welcome!ContributingCheck out thesource codeSubmit anissue or suggestionFeel free to submit ideas, bugs or pull requests.Authors & Contributorskbravh-karey.higuera@gmail.comForked fromDAWG-Pythonby Mikhail Korobov -kmike84@gmail.comThe algorithms are fromdawgdicC++ library by Susumu Yata & contributors.LicenseThis package is licensed under MIT License.
Package: circuitgraph
CircuitGraphCircuitGraphis a library for working with hardware designs as graphs. CircuitGraph provides an interface to do this built onNetworkX, along with integrations with other useful tools such as sat solvers and theYosyssynthesis tool, and input/output to verilog.OverviewTheCircuitclass is at the core of the library and it is essentially a wrapper around aNetworkXgraph object. This graph is accessable through thegraphmember variable ofCircuitand can be used as an entrypoint to the robust NetworkX API.Here's a simple example of reading in a verilog file, adding a node to the graph, and writing back to a new file.importcircuitgraphascgc=cg.from_file('/path/to/circuit.v')# Add an AND gate to the circuit that takes as input nets o0, o1, o2, o3c.add('g','and',fanin=[f'o{i}'foriinrange(4)])cg.to_file(c,'/path/to/output/circuit.v')The documentation can be foundhere.InstallationCircuitGraph requires Python3.7 or greater
The easiest way to install is via PyPi:pipinstallcircuitgraphTo install from the release, download and:pipinstallcircuitgraph-<release>.tar.gzFinally, to install in-place with the source, use:cd<installlocation>
gitclonehttps://github.com/circuitgraph/circuitgraph.gitcdcircuitgraph
pipinstall-rrequirements.txt
pipinstall-e.Optional PackagesIn addition to the packages enumerated inrequirements.txt, there are a few tools you can install to enable additional functionality.If you would like to use the satisfiability functionality, installPySAT.Open source synthesis can be perofmred by installingYosysand adding it to your path.
Alternatively, Genus or DesignCompiler can be used by providing the path to a generic library to use by setting theCIRCUITGRAPH_GENUS_LIBRARY_PATHandCIRCUITGRAPH_DC_LIBRARY_PATHenvironment variables.ContributingIf you have ideas on how to improve this library we'd love to hear your suggestions. Please open an issue.
If you want to develop the improvement yourself, please consider the information below.Coverage is computed usingCodecov.
If you would like to generate coverage information locally, install coverage and codecov.pipinstallcoveragecodecov
makecoverageDocumentation is built using pdoc3.pipinstallpdoc3
makedocTests are run using the builtin unittest framework. Some basic linting is performed using flake8.pipinstsallflake8
maketestCode should be formatted usingblack.Pre-commitis used to automatically run black on commit.pipinstallblackpre-commit
pre-commitinstallPre-commit also runs a few other hooks, including a docstring formatter and linter. Docs follow thenumpydocumentation convention.CitationIf you use this software for your research, we ask you cite this publication:https://joss.theoj.org/papers/10.21105/joss.02646@article{sweeney2020circuitgraph,
  title={CircuitGraph: A Python package for Boolean circuits},
  author={Sweeney, Joseph and Purdy, Ruben and Blanton, Ronald D and Pileggi, Lawrence},
  journal={Journal of Open Source Software},
  volume={5},
  number={56},
  pages={2646},
  year={2020}
}AcknowledgementsCircuitgraph icon designed byncasti.
Package: circuit-knitting-toolbox
Circuit Knitting ToolboxTable of ContentsAboutDocumentationInstallationDeprecation PolicyReferencesLicenseAboutCircuit Knitting is the process of decomposing a quantum circuit into smaller circuits, executing those smaller circuits on a quantum processor(s), and then knitting their results into a reconstruction of the original circuit's outcome.Each tool in the CKT partitions a user's problem into quantum and classical components to enable efficient use of resources constrained by scaling limits, i.e. size of quantum processors and classical compute capability. It can assign the execution of "quantum code" to QPUs or QPU simulators and "classical code" to various heterogeneous classical resources such as CPUs, GPUs, and TPUs made available via hybrid cloud, on-prem, data centers, etc.The toolbox enables users to run parallelized and hybrid (quantum + classical) workloads without worrying about allocating and managing underlying infrastructure.The toolbox currently contains the following tools:Circuit Cutting[1-6]DocumentationAll CKT documentation is available athttps://qiskit-extensions.github.io/circuit-knitting-toolbox/.InstallationWe encourage installing CKT viapip, when possible. Users intending to use the automatic cut finding functionality in theCutQCpackage should install thecplexoptional dependency.pipinstall'circuit-knitting-toolbox[cplex]'For information on installing from source, running CKT in a container, and platform support, refer to theinstallation instructionsin the CKT documentation.Deprecation PolicyThis project is meant to evolve rapidly and, as such, does not followQiskit's deprecation policy.  We may occasionally make breaking changes in order to improve the user experience.  When possible, we will keep old interfaces and mark them as deprecated, as long as they can co-exist with the new ones.  Each substantial improvement, breaking change, or deprecation will be documented in therelease notes.References[1] Kosuke Mitarai, Keisuke Fujii,Constructing a virtual two-qubit gate by sampling single-qubit operations, New J. Phys. 23 023021.[2] Kosuke Mitarai, Keisuke Fujii,Overhead for simulating a non-local channel with local channels by quasiprobability sampling, Quantum 5, 388 (2021).[3] Christophe Piveteau, David Sutter,Circuit knitting with classical communication, arXiv:2205.00016 [quant-ph].[4] Lukas Brenner, Christophe Piveteau, David Sutter,Optimal wire cutting with classical communication, arXiv:2302.03366 [quant-ph].[5] Wei Tang, Teague Tomesh, Martin Suchara, Jeffrey Larson, Margaret Martonosi,CutQC: Using small quantum computers for large quantum circuit evaluations, Proceedings of the 26th ACM International Conference on Architectural Support for Programming Languages and Operating Systems. pp. 473 (2021).[6] K. Temme, S. Bravyi, and J. M. Gambetta,Error mitigation for short-depth quantum circuits, Physical Review Letters, 119(18), (2017).LicenseApache License 2.0
Package: circuitpython-adt7410
IntroductionCircuitPython Driver for the Analog Devices ADT7410 Temperature SensorDependenciesThis driver depends on:Adafruit CircuitPythonBus DeviceRegisterPlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Community Bundle library and driver bundleor individual libraries can be installed usingcircup.Installing from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installcircuitpython-adt7410To install system-wide (this may be required in some cases):sudopip3installcircuitpython-adt7410To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installcircuitpython-adt7410Installing to a Connected CircuitPython Device with CircupMake sure that you havecircupinstalled in your Python environment.
Install it with the following command if necessary:pip3installcircupWithcircupinstalled and your CircuitPython device connected use the
following command to install:circupinstalladt7410Or the following command to update an existing version:circupupdateUsage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.
Package: circuitpython-ansi-escape-code
Introductionsimple helper library for common ANSI escape codesDependenciesThis driver depends on:Adafruit CircuitPythonPlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundleor individual libraries can be installed usingcircup.Installing from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installcircuitpython-ansi-escape-codeTo install system-wide (this may be required in some cases):sudopip3installcircuitpython-ansi-escape-codeTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.envsource.env/bin/activatepip3installcircuitpython-ansi-escape-codeInstalling to a Connected CircuitPython Device with CircupMake sure that you havecircupinstalled in your Python environment.
Install it with the following command if necessary:pipxinstallcircupWithcircupinstalled and your CircuitPython device connected use the
following command to install:circupinstallansi_escape_codeOr the following command to update an existing version:circupupdateUsage ExampleSee scripts in the examples directory of this repository.importansi_escape_codeasterminalprint(terminal.ANSIColors.fg.lightblue+"Hello "+terminal.ANSIColors.fg.green+"World "+terminal.ANSIColors.fg.orange+":-)"+terminal.ANSIColors.reset)ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.DocumentationFor information on building library documentation, please check outthis guide.
Package: circuitpython-ArrowLine
IntroductionUtility function to draw arrow lines using vectorioDependenciesThis driver depends on:Adafruit CircuitPythonPlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundleor individual libraries can be installed usingcircup.Usage ExampleSee scripts in the examples directory of this repository.ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.DocumentationFor information on building library documentation, please check outthis guide.
Package: circuitpython-async-button
IntroductionThis library provides an asynchronous way to wait for buttons to be pressed. It also provides
detection of single, double and triple clicks, and also long presses.DependenciesThis driver depends on:Adafruit CircuitPythonCircuitPython asyncio modulePlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundleor individual libraries can be installed usingcircup.Installing from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installcircuitpython-async-buttonTo install system-wide (this may be required in some cases):sudopip3installcircuitpython-async-buttonTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installcircuitpython-async-buttonInstalling to a Connected CircuitPython Device with CircupMake sure that you havecircupinstalled in your Python environment.
Install it with the following command if necessary:pip3installcircupWithcircupinstalled and your CircuitPython device connected use the
following command to install:circupinstallasync_buttonOr the following command to update an existing version:circupupdateUsageThere are two classes:SimpleButton: This allows toawaitfor presses and releasesbutton=async_button.SimpleButton(board.D5,True)awaitbutton.pressedButton: This has much more features. It creates a background process to monitor the button
and allows the user toawaitfor single clicks, double clicks, long clicks etc. It must be instantiated
in an asynchronous environmentbutton=async_button.Button(board.D5,True)click=awaitbutton.wait_for_click()ifclick==button.DOUBLE:print("Double click!")See the examples folder for full demonstrationsDocumentationAPI documentation for this library can be found onRead the Docs.For information on building library documentation, please check outthis guide.ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.
Package: circuitpython-async-buzzer
IntroductionPlay simple tunes on a piezo buzzer asynchronouslyDependenciesThis driver depends on:Adafruit CircuitPythonCircuitPython asyncio moduleInstalling from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installcircuitpython-async-buzzerTo install system-wide (this may be required in some cases):sudopip3installcircuitpython-async-buzzerTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installcircuitpython-async-buzzerInstalling to a Connected CircuitPython Device with CircupMake sure that you havecircupinstalled in your Python environment.
Install it with the following command if necessary:pip3installcircupWithcircupinstalled and your CircuitPython device connected use the
following command to install:circupinstallasync_buzzerOr the following command to update an existing version:circupupdateUsage Exampleimportasyncioimportpwmiofromasync_buzzerimportBuzzerimportboardtune=[("E5",500),("G5",500),("A5",1000),("E5",500),("G5",500),("B5",250),("A5",750),("E5",500),("G5",500),("A5",1000),("G5",500),("E5",1500)]pwm=pwmio.PWMOut(board.D10,variable_frequency=True)buzzer=Buzzer(pwm)asyncdefmain():buzzer.play(tune,wait=False)foriinrange(5):print(i)awaitasyncio.sleep(1)awaitbuzzer.wait()asyncio.run(main())DocumentationAPI documentation for this library can be found onRead the Docs.For information on building library documentation, please check outthis guide.ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.
Package: circuitpython-azurecustomvision-prediction
IntroductionCircuitPython prediction library for the Azure custom vision service.To use this library, you will need to create a custom vision project atCustomVision.ai.
Once you have your project, you will need to train either an image classification model, or an object detection model. You can then use this library to make predictions against this model.You can read more on how to do this in the Microsoft docs:Train an image classifierTrain an object detection modelDependenciesThis driver depends on:Adafruit CircuitPythonAdafruit CircuitPython RequestsPlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundle.Installing from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI. To install for current user:pip3installcircuitpython-azurecustomvision-predictionTo install system-wide (this may be required in some cases):sudopip3installcircuitpython-azurecustomvision-predictionTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.envsource.env/bin/activatepip3installcircuitpython-azurecustomvision-predictionUsage Exampleclient=CustomVisionPredictionClient("api_key","endpoint")predictions=client.classify_image_url("project_id","published_name","https://www.adafruit.com/includes/templates/shop2019/images/adafruit-logo.png")ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.DocumentationFor information on building library documentation, please check outthis guide.
Package: circuitpython-base64
IntroductionRFC 3548: Base16, Base32, Base64 Data EncodingsDependenciesThis driver depends on:Adafruit CircuitPythonAdafruit CircuitPython BinAsciiPlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundle.Installing from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI. To install for current user:pip3installcircuitpython-base64To install system-wide (this may be required in some cases):sudopip3installcircuitpython-base64To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.envsource.env/bin/activatepip3installcircuitpython-base64Usage ExampleBase64 encode a byte string.encoded=base64.encodebytes(bytes_to_encode)Decode a base64 encoded string to bytes.decoded=base64.decodebytes(string_to_decode)ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.DocumentationFor information on building library documentation, please check outthis guide.
Package: circuitpython-bma220
IntroductionBMA220 Bosch Circuitpython Driver libraryDependenciesThis driver depends on:Adafruit CircuitPythonBus DeviceRegisterPlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Community Bundle library and driver bundleor individual libraries can be installed usingcircup.Installing from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installcircuitpython-bma220To install system-wide (this may be required in some cases):sudopip3installcircuitpython-bma220To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installcircuitpython-bma220Installing to a Connected CircuitPython Device with CircupMake sure that you havecircupinstalled in your Python environment.
Install it with the following command if necessary:pip3installcircupWithcircupinstalled and your CircuitPython device connected use the
following command to install:circupinstallbma220Or the following command to update an existing version:circupupdateUsage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.
Package: circuitpython-bma400
IntroductionBMA400 Bosch Accelerometer CircuitPython DriverDependenciesThis driver depends on:Adafruit CircuitPythonBus DeviceRegisterPlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Community Bundle library and driver bundleor individual libraries can be installed usingcircup.Installing from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installcircuitpython-bma400To install system-wide (this may be required in some cases):sudopip3installcircuitpython-bma400To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installcircuitpython-bma400Installing to a Connected CircuitPython Device with CircupMake sure that you havecircupinstalled in your Python environment.
Install it with the following command if necessary:pip3installcircupWithcircupinstalled and your CircuitPython device connected use the
following command to install:circupinstallbma400Or the following command to update an existing version:circupupdateUsage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.
Package: circuitpython-bma423
IntroductionCircuitPython Driver for the Bosch BMA423 accelerometer included in the lilygo watchDependenciesThis driver depends on:Adafruit CircuitPythonBus DeviceRegisterPlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Community Bundle library and driver bundleor individual libraries can be installed usingcircup.Installing from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installcircuitpython-bma423To install system-wide (this may be required in some cases):sudopip3installcircuitpython-bma423To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installcircuitpython-bma423Installing to a Connected CircuitPython Device with CircupMake sure that you havecircupinstalled in your Python environment.
Install it with the following command if necessary:pip3installcircupWithcircupinstalled and your CircuitPython device connected use the
following command to install:circupinstallbma423Or the following command to update an existing version:circupupdateUsage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.
Package: circuitpython-bmi160
IntroductionDriver for the BMI160 sensorDependenciesThis driver depends on:Adafruit CircuitPythonBus DeviceRegisterPlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundleor individual libraries can be installed usingcircup.Installing from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installcircuitpython-bmi160To install system-wide (this may be required in some cases):sudopip3installcircuitpython-bmi160To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installcircuitpython-bmi160Installing to a Connected CircuitPython Device with CircupMake sure that you havecircupinstalled in your Python environment.
Install it with the following command if necessary:pip3installcircupWithcircupinstalled and your CircuitPython device connected use the
following command to install:circupinstallbmi160Or the following command to update an existing version:circupupdateUsage ExampleTake a look at the examples folderContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.