Installing.
pip install repsci
Import the logging library.
import repsci
Create an experiment. A unique directory will be created with the experiment name, a timestamp, and the current git hash.
exp_name = "hello_world"
exp = repsci.Experiment(exp_name)
Get the logger and write a log message.
log = exp.get_logger()
log.debug("Hello, World!")
Create an output file in the unique output directory.
filename = exp.get_filename('output.csv')
with open(filename, "wb") as f:
f.write("Hello, World\n")
The state of python's random number generator is stored in random_state.bin
in pickle format. This state can be used to reproduce the output of randomized
scripts.
The Experiment constructor also has some optional parameters:
note: a string of notes to store in anotes.txtfile in the output directory.config: a configparser object, which will exported to the output directory.output_dir: the subdirectory of the current directory to place experiment directories in.suffix: a string to append to the end of the trial's directory.
Create an experiment from a previous experiment's unique directory.
exp_name = "hello_world"
timestamp = "2020-09-09 152600"
exp = repsci.Experiment(exp_name, reproduce=timestamp)
Get the config from the prevous experiment.
config = exp.get_config()
Metadata
Release files for repsci 1.1.8
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 |
|---|---|---|---|---|
| repsci-1.1.8.tar.gz | 2.6 kB | Without provenance | Details for repsci-1.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| repsci-1.1.8-py3-none-any.whl | Python 3 | none | any | Details for repsci-1.1.8-py3-none-any.whl |
Total release size: 6.6 kB
Release files / repsci-1.1.8.tar.gz
| Download URL | repsci-1.1.8.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
93228cf9afb06b01b1cfdc69dea000b41a64de3c6b06a1991551f92be1918e20
|
|
BLAKE2b-256 checksum How to use checksums |
9147afd24e5359501a7956f2bc058800486d32ab242324ffeadd337450af821b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.5
|
Release files / repsci-1.1.8-py3-none-any.whl
| Download URL | repsci-1.1.8-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
49895916a4c6d153b61247cfa5a6d85081a16db1240d446bbe0e9239a9b89868
|
|
BLAKE2b-256 checksum How to use checksums |
87f2eec41971be4d944af88a74abd2a7c4bd3c40c9268c91173dcce4c863d50e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.5
|
Security for repsci 1.1.8
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.