badX12
A Python Library for parsing ANSI ASC X12 files.
Installing
Install and update using pip:
pip install -U badX12
A Simple Example
badX12 can be imported and used within your own project like so.
from badx12 import Parser
parser = Parser()
document = parser.parse_document("path-to-file/file.edi")
badX12 can also be used to parse an edi file into JSON or XML via the command line.
badx12 parse "path-to-edi-file"
badx12 parse "path-to-edi-file" -e XML -o "path-to-output-dir"
By default the parse command will output a JSON file to the current user’s Documents\badX12 directory. The -e flag can be used to specify the export format, and the -o flag can be used to specify the output directory.
Features
Parse x12 file format into a python object
Parse x12 file format into JSON and XML
Links
Documentation: https://badX12.readthedocs.io.
X12 EDI Standard: http://www.x12.org/x12-work-products/x12-edi-standards.cfm
History
0.1.0 (2018-10-26)
First release on PyPI.
0.2.0 (2018-12-04)
Reorganized project
Metadata
Release files for badX12 0.2.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 | |
|---|---|---|---|
| badx12-0.2.2.tar.gz | 28.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| badx12-0.2.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 70.0 kB
Release files / badx12-0.2.2.tar.gz
| Download URL | badx12-0.2.2.tar.gz |
|---|---|
| Size | 28.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d4f6930ff1a718c5f2b80443e5dfbc3d84cc37845d3ec98dad5cbf312f58e350
|
|
BLAKE2b-256 checksum How to use checksums |
e5ed09fc9582f56df8230f3aa391165b8902d1949cbe69a59257a334063c6a8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3
|
Release files / badx12-0.2.2-py2.py3-none-any.whl
| Download URL | badx12-0.2.2-py2.py3-none-any.whl |
|---|---|
| Size | 41.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
1d738fb900ecf96fe00b968da6d0dd3585c7089c806f8acc5221aa33a2e05378
|
|
BLAKE2b-256 checksum How to use checksums |
4eb63664bbcfc04be53b0f03552995bb4a76a019322f273b1cf651feca0c861c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3
|