Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ben-albrecht/environmentmodules
- Owner: ben-albrecht
- License: apache-2.0
- Created: 2015-10-28T04:40:31.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-07T21:17:12.000Z (about 7 years ago)
- Last Synced: 2024-11-02T14:42:21.583Z (18 days ago)
- Topics: environment, environment-modules, hpc, module, modulefiles, python
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 17
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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!')
```