WCxf Python API and command line interface
This Python package provides a Python API and command line interface to perform the following operations on WCxf files (or dictionaries):
- validation against EFT and basis files,
- conversion between JSON and YAML,
- translation between different bases, and
- matching between different EFTs.
Installation
pip3 install wcxf
Command line interface
The CLI provides the following commands:
convert
usage: wcxf convert [-h] [--output [OUTPUT]] FORMAT [FILE]
Command line script to convert WCxf files between YAML and JSON.
positional arguments:
FORMAT Output format (should be yaml or json)
FILE Input file. If "-", read from standard input
optional arguments:
-h, --help show this help message and exit
--output [OUTPUT] Output file. If absent, print to standard output
translate
usage: wcxf translate [-h] [--output [OUTPUT]] [--format FORMAT] BASIS [FILE]
Command line script for basis translation of WCxf files.
positional arguments:
BASIS Output basis
FILE Input file. If "-", read from standard input
optional arguments:
-h, --help show this help message and exit
--output [OUTPUT] Output file. If absent, print to standard output
--format FORMAT Output format (default: json)
match
usage: wcxf match [-h] [--output [OUTPUT]] [--format FORMAT] EFT BASIS [FILE]
Command line script for matching of WCxf files.
positional arguments:
EFT Output EFT
BASIS Output basis
FILE Input file. If "-", read from standard input
optional arguments:
-h, --help show this help message and exit
--output [OUTPUT] Output file. If absent, print to standard output
--format FORMAT Output format (default: json)
validate
usage: wcxf validate [-h] TYPE [FILE]
Command line script for validation of WCxf files.
positional arguments:
TYPE Type of file to validate: should be 'eft', 'basis', or 'wc'
FILE Input file. If "-", read from standard input
optional arguments:
-h, --help show this help message and exit
Metadata
Release files for wcxf 1.6.2
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 |
|---|---|---|---|---|
| wcxf-1.6.2.tar.gz | 202.7 kB | Without provenance | Details for wcxf-1.6.2.tar.gz |
Release files / wcxf-1.6.2.tar.gz
| Download URL | wcxf-1.6.2.tar.gz |
|---|---|
| Size | 202.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b6bf7eaea8eb972c3ecd3d1e8103a8e21734fd58e01b1cefd4da3b9d31a589c
|
|
BLAKE2b-256 checksum How to use checksums |
f41487ae6707fb7b24113bf2ca7c15c9f884c3a8cbff1764dcd86cb6010984f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
|
Security for wcxf 1.6.2
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.