Açıklama Yok

Andrej 3728835855 Most recent pyproject.toml 1 hafta önce
src 4082acf8a9 Removing part of wrapper that provides configuration for labkeyInterface and moving it to labkeyInterface/config.py 1 hafta önce
LICENSE 154fd57f38 Initial import of packaged nixWrapper 1 hafta önce
README.md c93341e269 Further details on integrating nixWrapper with common tools, particularly virtualenv and jupyter 1 hafta önce
pyproject.toml 3728835855 Most recent pyproject.toml 1 hafta önce

README.md

NIX Suite

A set of tools used to format NIX compatible databases.

Installation

pip install nixWrapper 

Usage

import nixWrapper
nixWrapper.loadLibrary('labkeyInterface')
import labkeyInterface
...

Use with virtualenv

Create virtualenv called nix where we will use nixWrapper:

#: cd $HOME
#:~$ mkdir venv
#:~$ cd venv
#:~/venv$ virtualenv -p python3 nix
#:~/venv$ . ./nix/bin/activate
(nix) $:~/venv$ cd
(nix) $:~$ pip install nixWrapper

Whenever you need nixWrapper in your code, simply run:

#: ~/venv/nix/python3 yourScript.py

where in your script yourScript.py you use nixWrapper directly like in Usage section.

Use virtualenv in jupyter

To integrate nixWrapper installed in virtualenv with your jupyter code, jupyter needs to be aware of virtualenv. To do that:

#~$: . ~/venv/nix/bin/activate
(nix) #:~$ pip install ipykernel
(nix) #:~$ python -m ipykernel install --user --name=nix
Installed kernelspec nix in /home/<your name>/.local/share/jupyter/kernels/nix

More info here.

Developer notes

Packaging howto.