benten-meta
BENTEN metadata tool
Summary
This provides metadata tools for benten metadata format.
BENTEN provides two ways to present metadata.
- metadata with flat key, json ( "@" is used to provide flat key to present hierarchical metadata)
{
"@data_info@identifier@pid":"facility.xxxxx",
"@data_info@identifier@proposal_number":"xxxxx"
}
- hierarchical metadata, yaml
data_info:
identifier:
pid: facility.xxxxx
proposal_number: xxxxx
This tool can convert metadata from json to yaml, or from yaml to json.
Install
$ pip install benten-meta
Usage
- convert metadata from yaml to json
$ benten-meta.py convert_yaml2json example/metadata_hierarchy.yml test_flat.json
### benten-meta convert_yaml2json ###
==> convert from example/metadata_hierarchy.yml into test_flat.json
- convert metadata from json to yaml
$ benten-meta.py convert_json2yaml example/metadata_flat.json test_hierarchy.yml
### benten-meta convert_json2yaml ###
==> convert from example/metadata_flat.json into test_hierarchy.yml
License
Apache License 2.0
Author
Copyright (C) 2021 Takahiro Matsumoto (matumot@spring8.or.jp)
Metadata
Release files for benten-meta 0.0.1.post4
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 |
|---|---|---|---|---|
| benten-meta-0.0.1.post4.tar.gz | 11.0 kB | Without provenance | Details for benten-meta-0.0.1.post4.tar.gz |
Release files / benten-meta-0.0.1.post4.tar.gz
| Download URL | benten-meta-0.0.1.post4.tar.gz |
|---|---|
| Size | 11.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb151b853ffe70cdd4db9a05a16eb0e6e8ce60d96112428c7008ed4a11a0d57e
|
|
BLAKE2b-256 checksum How to use checksums |
032392010abf2bbfc61a1264c36c0df2c6e0fd4beb03da6a7bba23191945ef9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
|
Security for benten-meta 0.0.1.post4
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.