Metadata-Version: 2.1
Name: badx12
Version: 0.2.2
Summary: A Python Library for parsing ANSI ASC X12 files.
Home-page: https://github.com/git-albertomarin/badx12
Author: Alberto J. Marin
Author-email: alberto@ajmar.in
License: MIT license
Keywords: badx12 edi x12 parser
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Requires-Dist: click (==7.0)
Requires-Dist: dicttoxml (==1.7.4)

======
badX12
======


.. image:: https://img.shields.io/pypi/v/badX12.svg
        :target: https://pypi.python.org/pypi/badX12

.. image:: https://codecov.io/gh/git-albertomarin/badX12/branch/master/graph/badge.svg
        :target: https://codecov.io/gh/git-albertomarin/badX12

.. image:: https://img.shields.io/travis/git-albertomarin/badX12.svg
        :target: https://travis-ci.org/git-albertomarin/badX12

.. image:: https://readthedocs.org/projects/badx12/badge/?version=latest
        :target: https://badX12.readthedocs.io/en/latest/?badge=latest
        :alt: Documentation Status

.. image:: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square
        :target: https://en.wikipedia.org/wiki/MIT_License


A Python Library for parsing ANSI ASC X12 files.

Installing
----------

Install and update using pip:

.. code-block:: text

    pip install -U badX12

A Simple Example
----------------

badX12 can be imported and used within your own project like so.

.. code-block:: python

    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.

.. code-block:: 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


=======
History
=======

0.1.0 (2018-10-26)
------------------

* First release on PyPI.

0.2.0 (2018-12-04)
------------------

* Reorganized project


