abcunit-backend
Storage backends for an ABCUnit Framework, logging success and failures of process units.
Database Backend
To use this backend you will need to contact the JASMIN help desk (support@jasmin.ac.uk) and ask them to setup a postgresql database for you. Specify a name for the database and a username to login with. JASMIN support will get back to you with the user password and host name.
After you have got your database, you’ll need to export an environment variable called $ABCUNIT_DB_SETTINGS and set it to a connection string for psycopg2:
ABCUNIT_DB_SETTINGS="dbname=<name> user=<user> host=<host> password=<pwd>"
DatabaseHandler class construction looks like this:
DatabaseHandler(table_name="results")
Where
table_name is the name of the table logs will be insert into
Connects to an existing database and creates a table to store results:
<table_name> (id varchar(255) PRIMARY KEY, result varchar(255) NOT NULL)
id |
result |
|---|---|
facet1.facet2.facet3 |
success |
facet1.facet2.facet3 |
bad_file |
⋮ |
⋮ |
File System Backend
FileSystemHandler class construction looks like this:
FileSytemHandler(base_log_dir, n_facets, sep)
Where;
base_log_dir is the string path to top level directory for logs
n_facets is the number of facets used to describe each unit result
sep is the separator used for a result identifier
Uses the file system to create log files marking success and failures, categorised by directory structure:
<log_base_dir>/success/facet1/facet2/facet3
<log_base_dir>/failure/error_type/facet1/facet2/facet3
Metadata
Release files for abcunit-backend 1.3.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 | |
|---|---|---|---|---|
| abcunit-backend-1.3.0.tar.gz | 5.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| abcunit_backend-1.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.9 kB
Release files / abcunit-backend-1.3.0.tar.gz
| Download URL | abcunit-backend-1.3.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e87376613f8bd87a0e10c11c142aaa2511a38fb13815d870a1a9f49ec60f71e9
|
|
BLAKE2b-256 checksum How to use checksums |
906d04c954fb294b9f31fd9c745cd799fc8d60b361d8693929450fe5b0bccd78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.6
|
Release files / abcunit_backend-1.3.0-py3-none-any.whl
| Download URL | abcunit_backend-1.3.0-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3db988156a433b1d7f098b5faf1e13190a477a9440581c4b893a7ada853b3a35
|
|
BLAKE2b-256 checksum How to use checksums |
6e93554bf0f27595eda8885e7dbbc323d0157904d152f3ee1fa1f3c120595bae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.6
|
Security for abcunit-backend 1.3.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.