CAPO (CASA, Archive, and Pipeline Options) for Python
Project description
PyCAPO is an implementation of SSA CAPO (CASA, Archive, and Pipeline Options) in Python. It is shipped as a library with a simple API and a command line utility that calls the library and produces results suitable for use in a shell script, enabling us to make quick CAPO enabled scripts.
CAPO is a configuration system that reads values from multiple property files, these files are delimited by the combination of two options to it, CAPO_PATH and CAPO_PROFILE:
CAPO_PATH is a colon delimited list of directories to search for property files, like ‘/home/casa/capo:/home/ssa/capo:/etc/capo’. The same property can be read from multiple files, and in this case the later property replaces the earlier property. CAPO_PATH can be given as an argument to the library or CLI app, or PyCAPO will look for a CAPO_PATH environment variable. If those two are missing PyCAPO defaults to ‘/home/casa/capo:/home/ssa/capo:$HOME/.capo’. PyCAPO skips over missing or unreadable property files (this is intentional).
CAPO_PROFILE describes the profile PyCAPO looks for, e.g. ‘test’, ‘staging’, ‘production’, and PyCAPO expects the property files on the CAPO_PATH it looks for to be named $profile.properties, e.g., /home/casa/capo/test.properties. CAPO_PROFILE can be an argument to the library or CLI app, or PyCAPO will look for a CAPO_PROFILE environment variable. If both of those are missing PyCAPO will complain and die (this is also intentional).
CAPO isn’t yet robust against things like profiles with spaces in their name, and it has only been tested under Linux and MacOS.
0.2.1 … dropped support for Python 3.3, added support for Python 3.7 0.1.1 … minor tweaks to prepare for pushing to pypi, no functional modifications 0.1.0 … initial version
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
Built Distribution
File details
Details for the file pycapo-0.3.1.tar.gz
.
File metadata
- Download URL: pycapo-0.3.1.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38c19769964400c66a5dff09b61e57d439f900ba097b3a6966660e33d43a125f |
|
MD5 | 7f3b4db0c82c59ffbf5a14f1ae815d0b |
|
BLAKE2b-256 | 0cf917f856e96287947fb2b0cf27e58067ad72cfa879b74e7ec70ee97e391034 |
File details
Details for the file pycapo-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: pycapo-0.3.1-py3-none-any.whl
- Upload date:
- Size: 20.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b85c00a37a101ba3a61f70e388d906e9a6a6fbce1f60fd8343e0626c50a7c35 |
|
MD5 | 2f86c29231e55d8fea9b65c4a4d3a6ed |
|
BLAKE2b-256 | 0e9871cc40940760cce342b5df1804698a3e55e17cf0c9e1f45bfc316782d64c |