No description
- Python 79.5%
- Makefile 20.5%
Python ReGIS
Overview
Python Remote Graphics (ReGIS) library based on the code from this C implementation
Quick Start
Installation
- Create virtual environment
python3 -mvenv .matrix
. .matrix/bin/activate
- Installing dependencies
make install
Running Tests
make test
Checking Coverage
make coverage
Running Linter
make lint
Running Formatter
make format
Demo Application
You can run the demo from the the source repo using the following command
( PYTHONPATH=. ./scripts/pyregis-demo.py )
If you install the pyregis module in a Python virtual environment you can simply run pyregis-demo directly
Installing from Codeberg
You can install the module directly into a Python virtual environment using the following
First create the environment
python -mvenv .matrix
. .matrix/bin/activate
Install using pip
pip install pyregis@git+https://codeberg.org/fionahiklas/pyregis
References
ReGIS
Python
- Patching with mocks
- Where to patch
- Using patch.dict
- Why mock patch sometimes doesn't work
- Assert a function throws an exception
- Python context managers
- Check type of a object
- Python wrapper around memfd_create
- Python OS module
- Fileno function
- Converting string to bytes
- OS read function
- Adding scripts to a python package
- How to include an executable file in setup.py
- Using open as a context a context manager
Python Pip
- Installing a package from Git repo
- How to install a Python package from a GitHub repo
- Creating a private Python package