Skip to main content

CLI utility for using an Apptainer container as virtual environment (requires apptainer to already be installed; singularity is used as a deprecated fallback).

$ 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-built container 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) | /path/to/cwd
>$ echo $HOME
/basis
>? ok | 10:55:36 | 0ms
>[S] user@hostname | (default) | /path/to/cwd
>$ which python
/basis/envs/default/bin/python
>? ok | 10:59:06 | 6ms
>[S] user@hostname | (default) | /path/to/cwd
>$ exit
... Exited container

Safely delete basis directory to start over.

rm -r ./.basis

Metadata

Release files for partis-basis 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for partis-basis 0.3.3
File Size Uploaded Provenance Actions
partis_basis-0.3.3.tar.gz 11.9 kB Without provenance Details for partis_basis-0.3.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for partis-basis 0.3.3
File Interpreter ABI Platform Actions
partis_basis-0.3.3-py3-none-any.whl Python 3 none any Details for partis_basis-0.3.3-py3-none-any.whl

Total release size: 24.8 kB

Release files / partis_basis-0.3.3.tar.gz

Download URL partis_basis-0.3.3.tar.gz
Size 11.9 kB
Tags Source
SHA-256 checksum
How to use checksums
19cb560ee319a3225e7fe288570cf3cc58a846224547ca3fa7c9575dc7a5c147
BLAKE2b-256 checksum
How to use checksums
a5b2223824b424414ab507bfc485cc21c4e8c1276cb3426f14f51e2e4bd9b458
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release files / partis_basis-0.3.3-py3-none-any.whl

Download URL partis_basis-0.3.3-py3-none-any.whl
Size 12.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b9ddeb9ae90b3efcc49f345ac724aaa096db369ec0abfc6f58f156beaa692e23
BLAKE2b-256 checksum
How to use checksums
8238208a902079b7787478e4a3797b6a00f0601f79ca232a1b737b903906a155
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Security for partis-basis 0.3.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page