{"id":13592363,"url":"https://github.com/notpeter/edicat","last_synced_at":"2025-04-08T22:31:45.360Z","repository":{"id":57425653,"uuid":"108437988","full_name":"notpeter/edicat","owner":"notpeter","description":"Print and concatenate X12 and Edifact EDI","archived":false,"fork":false,"pushed_at":"2024-08-04T01:01:06.000Z","size":34,"stargazers_count":20,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-23T19:11:13.812Z","etag":null,"topics":["edi","edifact","newline","x12"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/notpeter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-10-26T16:36:46.000Z","updated_at":"2025-02-18T20:13:10.000Z","dependencies_parsed_at":"2024-01-16T22:19:40.224Z","dependency_job_id":null,"html_url":"https://github.com/notpeter/edicat","commit_stats":{"total_commits":24,"total_committers":1,"mean_commits":24.0,"dds":0.0,"last_synced_commit":"cc23b8aa639b90563cfb6f2681a37457a43dabbb"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notpeter%2Fedicat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notpeter%2Fedicat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notpeter%2Fedicat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notpeter%2Fedicat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/notpeter","download_url":"https://codeload.github.com/notpeter/edicat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247819947,"owners_count":21001393,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["edi","edifact","newline","x12"],"created_at":"2024-08-01T16:01:08.384Z","updated_at":"2025-04-08T22:31:43.792Z","avatar_url":"https://github.com/notpeter.png","language":"Python","funding_links":[],"categories":["CLI utilities"],"sub_categories":["Golang"],"readme":"# edicat: Print and transform EDI\n\n![pypi-version](https://img.shields.io/pypi/v/edicat.svg)\n\n## Why?\n\nEDI often does not include newlines which makes it incompatible with\nnormal UNIX tools that operate on a line-by-line basis.  So we do some\nsimple detection of the segment terminator and append newlines as required.\n\n## Install\n\n```\npip3 install -U edicat\n```\n\n## Usage\n\n```shell\n$ edicat --help\nusage: edicat [-n] [filenames [filenames ...]]\n\nPrint and concatenate EDI.\n\npositional arguments:\n  filenames     Filename(s) or - for stdin\n\noptional arguments:\n  -n, --lineno  Number the output lines, starting at 1.\n```\n\n## Examples\nSimple cat:\n```shell\n$ cat edi850_sample.txt\nISA*00*          *00*          *01*0011223456     *01*999999999      *950120*0147*U*00300*000000005*0*P*^~GS*PO*0011223456*999999999*950120*0147*5*X*003040~ST*850*000000001~BEG*00*SA*95018017***950118~N1*SE*UNIVERSAL WIDGETS~N3*375 PLYMOUTH PARK*SUITE 205~N4*IRVING*TX*75061~N1*ST*JIT MANUFACTURING~N3*BUILDING 3B*2001 ENTERPRISE PARK~N4*JUAREZ*CH**MEX~N1*AK*JIT MANUFACTURING~N3*400 INDUSTRIAL PARKWAY~N4*INDUSTRIAL AIRPORT*KS*66030~N1*BT*JIT MANUFACTURING~N2*ACCOUNTS  PAYABLE DEPARTMENT~N3*400 INDUSTRIAL PARKWAY~N4*INDUSTRIAL AIRPORT*KS*66030~PO1*001*4*EA*330*TE*IN*525*VN*X357-W2~PID*F****HIGH PERFORMANCE WIDGET~SCH*4*EA****002*950322~CTT*1*1~SE*20*000000001~GE*1*5~IEA*1*000000005~\n```\n\nEDIcat:\n```shell\n$ edicat edi850_sample.txt\nISA*00*          *00*          *01*0011223456     *01*999999999      *950120*0147*U*00300*000000005*0*P*^~\nGS*PO*0011223456*999999999*950120*0147*5*X*003040~\nST*850*000000001~\nBEG*00*SA*95018017***950118~\nN1*SE*UNIVERSAL WIDGETS~\nN3*375 PLYMOUTH PARK*SUITE 205~\nN4*IRVING*TX*75061~\nN1*ST*JIT MANUFACTURING~\nN3*BUILDING 3B*2001 ENTERPRISE PARK~\nN4*JUAREZ*CH**MEX~\nN1*AK*JIT MANUFACTURING~\nN3*400 INDUSTRIAL PARKWAY~\nN4*INDUSTRIAL AIRPORT*KS*66030~\nN1*BT*JIT MANUFACTURING~\nN2*ACCOUNTS  PAYABLE DEPARTMENT~\nN3*400 INDUSTRIAL PARKWAY~\nN4*INDUSTRIAL AIRPORT*KS*66030~\nPO1*001*4*EA*330*TE*IN*525*VN*X357-W2~\nPID*F****HIGH PERFORMANCE WIDGET~\nSCH*4*EA****002*950322~\nCTT*1*1~\nSE*20*000000001~\nGE*1*5~\nIEA*1*000000005~\n```\n\n## Run tests\n\n```\npython3 -m unittest\n```\n\n## Known Issues:\n\n* `cat /path/* | edicat` won't work with documents that are mixed spec/separators (stdin has no hints as to file boundary).\n  * Workarounds:\n    * `edicat /path/*.edi`\n    * `find /path/ -name '*.edi' | xargs edicat`\n* No TRADACOMS support\n* No HL7 support\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotpeter%2Fedicat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotpeter%2Fedicat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotpeter%2Fedicat/lists"}