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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
partis_basis-0.0.2.tar.gz
(5.1 kB
view details)
File details
Details for the file partis_basis-0.0.2.tar.gz
.
File metadata
- Download URL: partis_basis-0.0.2.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6853119e81db9778d7bc8288bab491ca9526874276f4f4255e211970d16c9948 |
|
MD5 | aeebbb90769d3f4de993d47df3c05431 |
|
BLAKE2b-256 | 7ab670f07e9da93361d37d93b25b4c60958f7cd16decb35fdfdb3ff76478a591 |