{"id":21660091,"url":"https://github.com/slub/replacemarcchars","last_synced_at":"2026-05-20T10:43:39.154Z","repository":{"id":150196583,"uuid":"185992264","full_name":"slub/replacemarcchars","owner":"slub","description":"a commandline command (Python3 program) that takes binary MARC records (e.g. originally stored in a JSON value) as input and replace some characters in it to be really binary MARC compatible","archived":false,"fork":false,"pushed_at":"2019-06-21T10:38:33.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-01-25T07:08:53.004Z","etag":null,"topics":["command-line-tool","encoding","marc","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/slub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-10T13:22:19.000Z","updated_at":"2023-12-16T01:43:34.000Z","dependencies_parsed_at":"2023-04-29T00:33:16.821Z","dependency_job_id":null,"html_url":"https://github.com/slub/replacemarcchars","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slub%2Freplacemarcchars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slub%2Freplacemarcchars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slub%2Freplacemarcchars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slub%2Freplacemarcchars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slub","download_url":"https://codeload.github.com/slub/replacemarcchars/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244555925,"owners_count":20471530,"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":["command-line-tool","encoding","marc","python"],"created_at":"2024-11-25T09:32:11.259Z","updated_at":"2026-05-20T10:43:34.128Z","avatar_url":"https://github.com/slub.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# replacemarcchars - replace binary MARC characters\n\nreplacemarcchars is a commandline command (Python3 program) that takes binary MARC records/lines (e.g. originally stored in a JSON value) as input and replace some characters in it to be really binary MARC compatible.\n\nFollowing replace methods are available:\n* **decimal**: replaces '#29;', '#30;', '#31;' with \"\\x1D\", \"\\x1E\", \"\\x1F\"\n* **unicode**: replaces '\\u001d', '\\u001e', '\\u001f' with \"\\x1D\", \"\\x1E\", \"\\x1F\"\n* **hex**: replaces '\\x1D', '\\x1E', '\\x1F' with \"\\x1D\", \"\\x1E\", \"\\x1F\"\n\n## Usage\n\n```\nreplacemarcchars\n\noptional arguments:\n  -h, --help                                show this help message and exit\n  -replace-method {decimal,unicode,hex}     method for character replacement (default: decimal)\n```\n\n* example:\n    ```\n    replacemarcchars \u003c [BINARY MARC RECORDS/LINES FROM E.G. JSON VALUE] \u003e [TRUE BINARY MARC]\n    ```\n\n## Run\n\n* clone this git repo or just download the [replacemarcchars.py](replacemarcchars/replacemarccchars.py) file\n* run ./replacemarcchars.py\n* for a hackish way to use replacemarcchars system-wide, copy to /usr/local/bin\n\n### Install system-wide via pip\n\n* via pip:\n    ```\n    sudo -H pip3 install --upgrade [ABSOLUTE PATH TO YOUR LOCAL GIT REPOSITORY OF REPLACEMARCCHARS]\n    ```\n    (which provides you ```replacemarcchars``` as a system-wide commandline command)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslub%2Freplacemarcchars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslub%2Freplacemarcchars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslub%2Freplacemarcchars/lists"}