Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/albmarin/badX12
A Python Library for parsing ANSI ASC X12 files.
https://github.com/albmarin/badX12
edi library parser python x12
Last synced: about 1 month ago
JSON representation
A Python Library for parsing ANSI ASC X12 files.
- Host: GitHub
- URL: https://github.com/albmarin/badX12
- Owner: albmarin
- License: mit
- Created: 2018-06-02T17:30:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-20T20:38:46.000Z (8 months ago)
- Last Synced: 2024-05-21T23:06:09.221Z (7 months ago)
- Topics: edi, library, parser, python, x12
- Language: Python
- Homepage:
- Size: 388 KB
- Stars: 50
- Watchers: 8
- Forks: 28
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
- Authors: AUTHORS.rst
Awesome Lists containing this project
- Electronic-Interchange-Github-Resources - git-albertomarin/badX12 - A Python Library for parsing ANSI ASC X12 files. (Libraries / Python)
README
# badX12
[![PyPi](https://img.shields.io/pypi/v/badX12.svg)](https://pypi.python.org/pypi/badX12)
[![Coverage](https://codecov.io/gh/albmarin/badX12/branch/master/graph/badge.svg)](https://codecov.io/gh/albmarin/badX12)
[![Build Status](https://travis-ci.org/albmarin/badX12.svg?branch=master)](https://travis-ci.org/albmarin/badX12)
[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://en.wikipedia.org/wiki/MIT_License)A Python Library for parsing ANSI ASC X12 files.
# Installing
Install and update using pip:
```bash
pip install -U badX12
```# A Simple Example
badX12 can be imported and used within your own project like so.
```python
from badx12 import Parserparser = 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.
```bash
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
* License: https://en.wikipedia.org/wiki/MIT_License
* Documentation: https://badX12.readthedocs.io.
* X12 EDI Standard: http://www.x12.org/x12-work-products/x12-edi-standards.cfm