Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ben-albrecht/environmentmodules

Python module for Environment Modules
https://github.com/ben-albrecht/environmentmodules

environment environment-modules hpc module modulefiles python

Last synced: 11 days ago
JSON representation

Python module for Environment Modules

Awesome Lists containing this project

README

        

# environmentmodules
Python interface for [Environment Modules](https://github.com/cea-hpc/modules)

## Why?

I needed to test some modulefiles, and found the builtin `python` module insufficient, so I created this as a cleaner interface with a more reasonable build process.

## Example

```python
import environmentmodules as mod

# module load gcc/3.1.1
mod.load('gcc/3.1.1')

mod.switch('gcc', 'gcc/3.2.0')

mod.unload('gcc')

if mod.isloaded('gcc-5'):
print('gcc-5 loaded successfully!')
```