No project description provided
Project description
CLI utility for using Singularity container as virtual environment (requires singularity to already be installed).
$ basis --help
Usage: basis [OPTIONS] [CMD]...
Options:
-i, --image TEXT
-a, --app TEXT {bash, fish, jupyter, code}
-b, --basis PATH
-w, --work PATH
-c, --cwd PATH
--help Show this message and exit.
The first time it is run it will download a pre-build Singularity image. You must also tell it where to create the basis directory on the first run, which will become a virtual home inside the container.
$ basis -b ./.basis
image: library://kcdodd/basis/ubuntu-22.04-basis:0.0.1
app: fish
basis: /path/to/cwd/.basis
work: /
cwd: /path/to/cwd
cmd:
Entering container...
INFO: Using cached image
Loading python/3.11.0/gcc-system
Loading requirement: gcc/system/default
Creating environment: /basis/envs/default
Creating modulefile /basis/mods/environment/default
Loading environment: /basis/envs/default
Saved modules to /basis/envs/default/modules
gcc/system/default python/3.11.0/gcc-system environment/default
Loading environment: /basis/envs/default
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
>? ok | 10:43:13 | 0ms
>[S] user@hostname | (default) | /work/path/to/cwd
>$ echo $HOME
/basis
>? ok | 10:55:36 | 0ms
>[S] user@hostname | (default) | /work/path/to/cwd
>$ which python
/basis/envs/default/bin/python
>? ok | 10:59:06 | 6ms
>[S] user@hostname | (default) | /work/path/to/cwd
>$ exit
... Exited container
Safely delete basis directory to start over.
rm -r ./.basis
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file partis_basis-0.0.6.tar.gz.
File metadata
- Download URL: partis_basis-0.0.6.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
add4b5ffc7f4e19082c022bc102eebf926a56c423af2a6886aecd582fb4ab6e6
|
|
| MD5 |
074499205f1adc776d33dbc96827a41a
|
|
| BLAKE2b-256 |
65dfaf6de4d728c157febc626b97cc994092b794bdb4fda869b530212f8c37c6
|
File details
Details for the file partis_basis-0.0.6-py3-none-any.whl.
File metadata
- Download URL: partis_basis-0.0.6-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f98c7f72d30d2e8b90bcc2e3a80bc0e6822dfe267d90c9c25fb60db4d6cc1ca
|
|
| MD5 |
316b889653f902f9831f37db4324f68c
|
|
| BLAKE2b-256 |
74fd0e05f020c034fc7f4991ab79988c70c67735d35155c64178e4fed9be2217
|