Skip to main content

portal to Network of Imaging Excellence (NIX) utilities

Project description

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.

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

nixwrapper-1.1.6.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

nixwrapper-1.1.6-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file nixwrapper-1.1.6.tar.gz.

File metadata

  • Download URL: nixwrapper-1.1.6.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for nixwrapper-1.1.6.tar.gz
Algorithm Hash digest
SHA256 915ad62de2da14458a424ebba0db3c82950d7d55f357f310bca05ec5f1197870
MD5 b1b00eeef6eddfba94d7a142976110b0
BLAKE2b-256 abeebc2ca12c814ec31faee596c7127e3d3826039223832ddf3595576d8965c1

See more details on using hashes here.

File details

Details for the file nixwrapper-1.1.6-py3-none-any.whl.

File metadata

  • Download URL: nixwrapper-1.1.6-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for nixwrapper-1.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 51875fa28dfcf66a940ca04b57adfec32b36cd55b1fd4ffdefcb32363f7d444d
MD5 8d70c10ff64d7cbe100a6360f6e45abf
BLAKE2b-256 bbaf53c80ed0849b647b53c5a417281feee8c0e4d6eb5e65a5e434370637e16c

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