pydrobert-param
Utilities for the python package param.
While param is a great tool for keeping track of parameters, currently
serialization is restricted to pickling and unpickling objects.
pydrobert-param takes the stance that parameter (de)serialization has an
intuitive and obvious representation in most cases. The developer can modify
how pydrobert-param (de)serializes param.Parameterized instances according
to her needs.
A teaser:
import param
import pydrobert.param.serialization as serial
class Foo(param.Parameterized):
my_int = param.Integer(10)
first, second = Foo(), Foo()
first.my_int = 30
serial.serialize_to_json('foo.json', first)
serial.deserialize_from_json('foo.json', second)
assert first.my_int == second.my_int
While the primary purpose of pydrobert-param is for parameter
(de)serialization, there is also code in pydrobert.param.optuna for
hyperparameter optimization via Optuna. Check the
documentation for more complicated examples of serialization, as well as for
hyperparameter optimization.
This is student-driven code, so don't expect a stable API. I'll try to use semantic versioning, but the best way to keep functionality stable is by pinning the version in the requirements or by forking.
Documentation
Installation
pydrobert-param is available via both PyPI and Conda.
conda install -c sdrobert pydrobert-param
pip install pydrobert-param
pip install git+https://github.com/sdrobert/pydrobert-param # bleeding edge
There are also optional dependencies on PyPI:
pip install 'pydrobert-param[yaml]' # installs ruamel.yaml YAML backend
pip install 'pydrobert-param[optuna]' # installs optuna
pip install 'pydrobert-param[types]' # installs numpy and pandas
# (to handle all types)
pip install 'pydrobert-param[all]' # all of the above
Licensing and How to Cite
Please see the pydrobert page for more details.
Metadata
Release files for pydrobert-param 0.4.1
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 |
|---|---|---|---|---|
| pydrobert-param-0.4.1.tar.gz | 69.8 kB | Without provenance | Details for pydrobert-param-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pydrobert_param-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for pydrobert_param-0.4.1-py3-none-any.whl |
Total release size: 120.4 kB
Release files / pydrobert-param-0.4.1.tar.gz
| Download URL | pydrobert-param-0.4.1.tar.gz |
|---|---|
| Size | 69.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
945578c31dd46a39cfbc8aa5920679ba947896d89d69694b748f8e496cacc1ee
|
|
BLAKE2b-256 checksum How to use checksums |
4cb0228d28877146ad6c5bdce25bd07ff4a2e5d997a1354b1d45b522c0118a47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.13
|
Release files / pydrobert_param-0.4.1-py3-none-any.whl
| Download URL | pydrobert_param-0.4.1-py3-none-any.whl |
|---|---|
| Size | 50.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea1181761b97b230a2f8fa7a4f7001f2f99667f774e3e61878a92c5c165175ec
|
|
BLAKE2b-256 checksum How to use checksums |
1e9a4eae775bbbde7c0e6487d14292efef29de0dedccac9b8be864b1fe6911ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.13
|
Security for pydrobert-param 0.4.1
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.