Skip to main content

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

partis_basis-0.0.5.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

partis_basis-0.0.5-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file partis_basis-0.0.5.tar.gz.

File metadata

  • Download URL: partis_basis-0.0.5.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

Hashes for partis_basis-0.0.5.tar.gz
Algorithm Hash digest
SHA256 e2ecba691ea85e2bb64f583a962be4c8e0a880585820a0ad9ec4d9c4d7fef5c7
MD5 c342597acc188bd94b811133a67ee0ca
BLAKE2b-256 7645e084100d5f6838a9ddba72518cbeba14371b97961cf24fdc6464746c2c2f

See more details on using hashes here.

File details

Details for the file partis_basis-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: partis_basis-0.0.5-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

Hashes for partis_basis-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 bd9efbd871d89bc08cd158b47c7fa9ef3a10db4a2eeb08468c39c911b8d27038
MD5 762ec90511de135cfc0df09041f4623b
BLAKE2b-256 a602ce260dc44031e170c43c206383eda5e22af4970184dddfc0d8088d9becce

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