edi-parser2-stups


Nameedi-parser2-stups JSON
Version 1.0.1 PyPI version JSON
download
home_page
SummaryEDI Parsar
upload_time2023-01-18 17:54:48
maintainer
docs_urlNone
authorJustin Stuparitz
requires_python>=3.9.0
licenseBSD-3-Clause
keywords 835 parser edi
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # EDI Parser Stups

[![Python - 3.9.0+](https://img.shields.io/badge/Python-3.9.0%2B-orange)](https://www.python.org/downloads/release/python-390/)
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/keironstoddart/edi-835-parser)
[![Downloads](https://pepy.tech/badge/edi-835-parser)](https://pepy.tech/project/edi-835-parser)
[![Downloads](https://pepy.tech/badge/edi-835-parser/month)](https://pepy.tech/project/edi-835-parser)
[![Downloads](https://pepy.tech/badge/edi-835-parser/week)](https://pepy.tech/project/edi-835-parser)

### edi-parser: a lightweight EDI file parser

This package provides a simple-to-use Python interface to EDI 835 Health Care Claim Payment and Remittance Advice files.

### Installation
Binary installers for the latest released version are at the Python Package Index. Please note that you need to run Python 3.9 or higher to install the edi-835-parser.
```
pip install edi-parser2-stups==1.0.0
```

### Usage
To parse an EDI file simply execute the `parse` function or `parsestream` function when passing a file stream object.
```python
from ediparser import parse

path = '~/Desktop/my_edi_file.txt'
transaction_set = parse(path)
```
The `parse` function also works on a directory path.
```python
from ediparser import parse

path = '~/Desktop/my_directory_of_edi_files'
transaction_sets = parse(path)
```
In both cases, `parse` returns an instance of the `TransactionSets` class. 
This is the class you manipulate depending on your needs. 
For example, say you want to work with the transaction sets data as a `pd.DataFrame`.
```python
from ediparser import parse

path = '~/Desktop/my_directory_of_edi_files'
transaction_sets = parse(path)

data = transaction_sets.to_dataframe()
```
And then save that `pd.DataFrame` as a `.csv` file.
```python
data.to_csv('~/Desktop/my_edi_file.csv')
```
The complete set of `TransactionSets` functionality can be found by inspecting the `TransactionSets` 
class found at `edi_parser/transaction_set/transaction_sets.py`

### Tests
Example EDI 835 files can be found in `tests/test_edi_835/files`. To run the tests use `pytest`.
```
python -m pytest
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "edi-parser2-stups",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9.0",
    "maintainer_email": "",
    "keywords": "835,parser,edi",
    "author": "Justin Stuparitz",
    "author_email": "Justin Stuparitz <justinstuparitz@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/b2/44/b3abc75325e40f2daf3fd3f9312369635d4e5930355f7ad7f4b72b61bc6d/edi-parser2-stups-1.0.1.tar.gz",
    "platform": null,
    "description": "# EDI Parser Stups\n\n[![Python - 3.9.0+](https://img.shields.io/badge/Python-3.9.0%2B-orange)](https://www.python.org/downloads/release/python-390/)\n[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/keironstoddart/edi-835-parser)\n[![Downloads](https://pepy.tech/badge/edi-835-parser)](https://pepy.tech/project/edi-835-parser)\n[![Downloads](https://pepy.tech/badge/edi-835-parser/month)](https://pepy.tech/project/edi-835-parser)\n[![Downloads](https://pepy.tech/badge/edi-835-parser/week)](https://pepy.tech/project/edi-835-parser)\n\n### edi-parser: a lightweight EDI file parser\n\nThis package provides a simple-to-use Python interface to EDI 835 Health Care Claim Payment and Remittance Advice files.\n\n### Installation\nBinary installers for the latest released version are at the Python Package Index. Please note that you need to run Python 3.9 or higher to install the edi-835-parser.\n```\npip install edi-parser2-stups==1.0.0\n```\n\n### Usage\nTo parse an EDI file simply execute the `parse` function or `parsestream` function when passing a file stream object.\n```python\nfrom ediparser import parse\n\npath = '~/Desktop/my_edi_file.txt'\ntransaction_set = parse(path)\n```\nThe `parse` function also works on a directory path.\n```python\nfrom ediparser import parse\n\npath = '~/Desktop/my_directory_of_edi_files'\ntransaction_sets = parse(path)\n```\nIn both cases, `parse` returns an instance of the `TransactionSets` class. \nThis is the class you manipulate depending on your needs. \nFor example, say you want to work with the transaction sets data as a `pd.DataFrame`.\n```python\nfrom ediparser import parse\n\npath = '~/Desktop/my_directory_of_edi_files'\ntransaction_sets = parse(path)\n\ndata = transaction_sets.to_dataframe()\n```\nAnd then save that `pd.DataFrame` as a `.csv` file.\n```python\ndata.to_csv('~/Desktop/my_edi_file.csv')\n```\nThe complete set of `TransactionSets` functionality can be found by inspecting the `TransactionSets` \nclass found at `edi_parser/transaction_set/transaction_sets.py`\n\n### Tests\nExample EDI 835 files can be found in `tests/test_edi_835/files`. To run the tests use `pytest`.\n```\npython -m pytest\n```\n",
    "bugtrack_url": null,
    "license": "BSD-3-Clause",
    "summary": "EDI Parsar",
    "version": "1.0.1",
    "split_keywords": [
        "835",
        "parser",
        "edi"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b244b3abc75325e40f2daf3fd3f9312369635d4e5930355f7ad7f4b72b61bc6d",
                "md5": "9a8900670fd34b389457d5bc1b4743da",
                "sha256": "8ef8bd96074f8ebe78ac0c7204d88e1b38729fba265a961374302d5c90bd48fe"
            },
            "downloads": -1,
            "filename": "edi-parser2-stups-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "9a8900670fd34b389457d5bc1b4743da",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9.0",
            "size": 14850,
            "upload_time": "2023-01-18T17:54:48",
            "upload_time_iso_8601": "2023-01-18T17:54:48.401278Z",
            "url": "https://files.pythonhosted.org/packages/b2/44/b3abc75325e40f2daf3fd3f9312369635d4e5930355f7ad7f4b72b61bc6d/edi-parser2-stups-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-18 17:54:48",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "edi-parser2-stups"
}
        
Elapsed time: 0.03061s