Py4Hw User Guide> 0.2 Cloning¶

Next: 1.1 Hardware Design Style¶

The development version of Py4HW is also available from the repository in Github. The version in pypi is more stable, so it should be the preferred method, you can skip this step. Still, if you want to work with the development version you can clone it with

git clone https://github.com/davidcastells/py4hw

in your python console. In jupyter notebooks just run the following cell:

In [2]:
!git clone https://github.com/davidcastells/py4hw
Cloning into 'py4hw'...

After cloning the library, do a pip install in *editable mode

pip install -e py4hw

After installing you will need to import the library, with a regular import

In [1]:
import py4hw

You can check the version of the library by running...

In [2]:
import pkg_resources
print('Current py4hw version =', pkg_resources.get_distribution('py4hw').version)
Current py4hw version = 2025.5

Summary¶

  • py4hw can be cloned from github and installed in editable mode
In [ ]: