{"id":21660083,"url":"https://github.com/slub/singlemarcrecord","last_synced_at":"2025-10-20T05:04:38.847Z","repository":{"id":41279313,"uuid":"110831399","full_name":"slub/singlemarcrecord","owner":"slub","description":"generates single record MARC files","archived":false,"fork":false,"pushed_at":"2018-02-09T14:44:14.000Z","size":8,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-25T18:41:09.076Z","etag":null,"topics":["cli","command-line-tool","marc","marc21","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","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-15T12:36:20.000Z","updated_at":"2023-12-16T01:48:22.000Z","dependencies_parsed_at":"2022-09-21T01:10:54.372Z","dependency_job_id":null,"html_url":"https://github.com/slub/singlemarcrecord","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%2Fsinglemarcrecord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slub%2Fsinglemarcrecord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slub%2Fsinglemarcrecord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slub%2Fsinglemarcrecord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slub","download_url":"https://codeload.github.com/slub/singlemarcrecord/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248493022,"owners_count":21113159,"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":["cli","command-line-tool","marc","marc21","python"],"created_at":"2024-11-25T09:32:10.747Z","updated_at":"2025-10-20T05:04:33.793Z","avatar_url":"https://github.com/slub.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# singlemarcrecord\n\ngenerates single record MARC files\n\ntakes a given binary MARC records file (containing multiple MARC records) and splits it into single binary MARC records files, whereby the file names will be constructed with following pattern:\n\n    [ID].mrc\n\nwhereby ID will be constructed of:\n\n    [PREFIX]-[SOURCE ID]-[MARC RECORD ID FROM 001]\n\n## requirements\n\n* [argparse](https://docs.python.org/3/library/argparse.html#module-argparse)\n* [pymarc](https://github.com/edsu/pymarc)\n\n### install requirements\n\n1. (optionally) install [pip](https://pip.pypa.io/) for Python 3.x:\n\n    sudo apt-get install python3-pip\n\n2. install requirements with pip:\n\n    sudo -H pip3 install -r requirements.txt \n\n## usage\n\n    singlemarcrecord.py [-h] [-prefix PREFIX] [-source_id SOURCE_ID]\n                           [-input_file INPUT_FILE]\n                           [-output_folder OUTPUT_FOLDER]\n\noptional arguments:\n\n    -h, --help            show this help message and exit\n    -prefix PREFIX        set prefix for id generation\n    -source_id SOURCE_ID  set source id for id generation\n    -input_file INPUT_FILE the input MARC file\n    -output_folder OUTPUT_FOLDER the output folder for the single record MARC files\n\n### usage example\n\n    ./singlemarcrecord.py -prefix [PREFIX] -source_id [SOURCE ID] -input_file [INPUT BINARY MARC FILE] -output_folder [OUTPUT FOLDER FOR SINGLE MARC RECORD FILES]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslub%2Fsinglemarcrecord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslub%2Fsinglemarcrecord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslub%2Fsinglemarcrecord/lists"}