Skip to main content

A Python Library for parsing ANSI ASC X12 files.

Project description

badX12

https://img.shields.io/pypi/v/badX12.svg https://codecov.io/gh/git-albertomarin/badX12/branch/master/graph/badge.svg https://img.shields.io/travis/git-albertomarin/badX12.svg Documentation Status https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square

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

History

0.1.0 (2018-10-26)

  • First release on PyPI.

0.2.0 (2018-12-04)

  • Reorganized project

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
badx12-0.2.2-py2.py3-none-any.whl (41.9 kB) Copy SHA256 hash SHA256 Wheel py2.py3
badx12-0.2.2.tar.gz (28.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page