The jicparameters Python package
Python package making it easier to work with lots of parameters.
Documentation: http://jicparameters.readthedocs.io/en/latest/
Free software: MIT License
Features
Lightweight: only depends on PyYAML
Cross-platform: Linux, Mac and Windows are all supported
Tested with Python 2.7, 3.3, 3.4, and 3.5
Quick Guide
To install jicparameters:
git clone https://github.com/JIC-CSB/jicparameters.git cd jicparameters python setup.py install
Create some parameters:
>>> from jicparameters import Parameters
>>> params = Parameters(pi=3.14, radius=10)
>>> params
{'pi': 3.14, 'radius': 10}
Add another parameter:
>>> params["fudge_factor"] = 42
>>> params
{'fudge_factor': 42, 'pi': 3.14, 'radius': 10}
View as YAML:
>>> print(params.to_yaml()) --- fudge_factor: 42 pi: 3.14 radius: 10 <BLANKLINE>
Save to file:
>>> params.to_file("params.yml")
Read from file:
>>> p2 = Parameters.from_file("params.yml")
>>> assert params == p2
History
0.1.0
Initial upload to PyPi
Metadata
Release files for jicparameters 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jicparameters-0.1.0.tar.gz | 3.1 kB | Without provenance | Details for jicparameters-0.1.0.tar.gz |
Release files / jicparameters-0.1.0.tar.gz
| Download URL | jicparameters-0.1.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c24977fec79bfbdd854fba5a84f9b80b842107e9c98f6e6257fd46b18a5a877
|
|
BLAKE2b-256 checksum How to use checksums |
3692e301a5c65013ad428dc020ba75ecbf21836ca1ffc6ecd6ffbc25dcb84657
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for jicparameters 0.1.0
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.