{"id":13592042,"url":"https://github.com/glitchassassin/python-edi","last_synced_at":"2026-04-17T07:33:37.173Z","repository":{"id":37710369,"uuid":"80212203","full_name":"glitchassassin/python-edi","owner":"glitchassassin","description":"EDI message generator in Python. Creates \u0026 validates messages according to specific formats","archived":false,"fork":false,"pushed_at":"2023-10-16T14:57:13.000Z","size":47,"stargazers_count":45,"open_issues_count":1,"forks_count":23,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-08T18:40:20.071Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/glitchassassin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-01-27T14:03:26.000Z","updated_at":"2025-04-04T21:55:06.000Z","dependencies_parsed_at":"2024-01-16T22:19:39.281Z","dependency_job_id":"c960587f-051a-4bae-8131-0b7bb7451563","html_url":"https://github.com/glitchassassin/python-edi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/glitchassassin/python-edi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glitchassassin%2Fpython-edi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glitchassassin%2Fpython-edi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glitchassassin%2Fpython-edi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glitchassassin%2Fpython-edi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glitchassassin","download_url":"https://codeload.github.com/glitchassassin/python-edi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glitchassassin%2Fpython-edi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31920206,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-08-01T16:01:05.132Z","updated_at":"2026-04-17T07:33:37.143Z","avatar_url":"https://github.com/glitchassassin.png","language":"Python","readme":"# python-edi\nEDI message generator in Python. Creates \u0026amp; validates messages according to specific formats\n\n## TODOs\n\n* Finish 810 definition\n* Implement colorful exceptions\n\n## EDI Format Definitions\nEDI messages consist of a set of Segments (usually lines) comprised of Elements. Some segments can be part of a Loop. These formats are defined in JSON. See the provided format(s) for examples.\n\nA loop has certain expected properties:\n\n* `id` (Loop ID)\n* `repeat` (Max times the loop can repeat)\n\nEach segment has certain expected properties:\n\n* `id` (Segment ID)\n* `name` (Human-readable segment name)\n* `req` (Whether segment is required: [M]andatory, [O]ptional)\n* `max_uses` (Some segments can be included more than once)\n* `notes` (Optional details for hinting documentation)\n* `syntax` (An optional list of syntax rules, defined below)\n* `elements` (List of included elements)\n\nEach element has certain expected features: \n\n* `id` (Element ID)\n* `name` (Human-readable element name)\n* `req` (Whether segment is required: [M]andatory, [O]ptional)\n* `data_type` (Type of segment data, defined below)\n* `data_type_ids` (If `data_type` is `ID`, this is a dict of valid IDs with descriptions)\n* `length` (Dict specifying field length)\n    * `min` (Min length of field)\n    * `max` (Max length of field)\n\nValid data types include:\n\n* `AN` (Any data type)\n* `DT` (Date, must be provided as Python DATE or DATETIME object)\n* `ID` (Alphanumeric ID. List of valid IDs provided as dict with descriptions)\n* `R`  (Percentage)\n* `Nx` (Number with `x` decimal points)\n* `TM` (Time, must be provided as Python TIME or DATETIME object)\n\nSyntax rules are specified as a dict with a `rule` and a list of `criteria`. Valid syntax rules include:\n\n* `ATLEASTONE` (where at least one of the element IDs in the `criteria` list is included and is not empty)\n* `ALLORNONE` (where either all of the element IDs in the `criteria` list are included, or none are)\n* `IFATLEASTONE` (if the first element in `criteria` is included, then at least one of the other elements must be included)\n","funding_links":[],"categories":["Libraries"],"sub_categories":["Python"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglitchassassin%2Fpython-edi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglitchassassin%2Fpython-edi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglitchassassin%2Fpython-edi/lists"}