Basic Utilities
Name | Downloads | Version | Platforms |
---|---|---|---|
brs_utils provides some basic functions useful to handle files, lists, logger, printing...
conda install -c conda-forge brs_utils
Example: Computes the deep size of an object. After a git clone:
from brs_utils import total_size
total_size('tests/data/1l_file.txt')
You need to install pytest and pytest-cov if it's not done yet (conda install pytest pytest-cov
).
cd <repository>
python -m pytest -v --cov --cov-report term-missing
For further tests and development tools, a CI toolkit is provided in ci
folder (see ci/README.md).
- Joan Hérisson
brs-utils is released under the MIT licence. See the LICENCE file for details.