{"id":39823402,"url":"https://github.com/thoth-pub/thoth-loader","last_synced_at":"2026-01-18T13:01:22.510Z","repository":{"id":56288862,"uuid":"242992958","full_name":"thoth-pub/thoth-loader","owner":"thoth-pub","description":"Metadata import from CSV into Thoth","archived":false,"fork":false,"pushed_at":"2025-11-28T15:05:32.000Z","size":315,"stargazers_count":4,"open_issues_count":4,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-11-30T21:08:03.265Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thoth-pub.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-02-25T12:21:00.000Z","updated_at":"2025-09-11T09:35:13.000Z","dependencies_parsed_at":"2023-12-21T18:57:21.069Z","dependency_job_id":"6cc9076c-4bb1-4ccc-bfbe-9eb04a06fd55","html_url":"https://github.com/thoth-pub/thoth-loader","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/thoth-pub/thoth-loader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoth-pub%2Fthoth-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoth-pub%2Fthoth-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoth-pub%2Fthoth-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoth-pub%2Fthoth-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thoth-pub","download_url":"https://codeload.github.com/thoth-pub/thoth-loader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoth-pub%2Fthoth-loader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28536686,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T10:13:46.436Z","status":"ssl_error","status_checked_at":"2026-01-18T10:13:11.045Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-01-18T13:01:20.825Z","updated_at":"2026-01-18T13:01:22.496Z","avatar_url":"https://github.com/thoth-pub.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Release](https://img.shields.io/github/release/thoth-pub/thoth-loader.svg?colorB=58839b)](https://github.com/thoth-pub/thoth-loader/releases) [![License](https://img.shields.io/github/license/thoth-pub/thoth-loader.svg?colorB=ff0000)](https://github.com/thoth-pub/thoth-loader/blob/master/LICENSE)\n\n# Thoth Loader\nRead metadata from a CSV or MARC XML file and insert it into Thoth\n\n## Config\nInstall dependencies:\n```\npip install -r requirements.txt\n```\n\n## CLI Usage\n\nAvailable modes, depending on publisher input: `OBP` (Open Book Publishers), `punctum` (punctum books), `AM` (African Minds), `UWP` (University of Westminster Press), `WHP` (The White Horse Press), `EDITUS` (Editus), `EDUEPB` (EDUEPB), `EDUFBA` (EDUFBA), `Rosario` (Editorial Universidad del Rosario), `Leuven` (Leuven University Press), `LHarmattan` (L'Harmattan), `MayFly` (MayFly Books), `PlayStory` (Play Story Press)\n\n### Live Thoth API\n```\n./loader.py --file ./data/metadata.csv --mode ${mode} --email ${email} --password ${password}\n```\n\n### Local Thoth API\n```\n./loader.py --file ./data/metadata.csv --mode ${mode} --email ${email} --password ${password} --client-url http://localhost:8080/graphql\n```\n\n## Docker Usage\n### Live Thoth API\n```\ndocker run --rm \\\n    -v /path/to/local/metadata.csv:/usr/src/app/metadata.csv \\\n    openbookpublishers/thoth-loader \\\n    ./loader.py \\\n        --file /usr/src/app/metadata.csv \\\n        --mode ${mode} \\\n        --email ${email} \\\n        --password ${password}\n```\n\n### Local Thoth API\n```\ndocker run --rm \\\n    --network=\"host\" \\\n    --volume /tmp/metadata.csv:/usr/src/app/metadata.csv \\\n    openbookpublishers/thoth-loader \\\n    ./loader.py \\\n        --file /usr/src/app/metadata.csv \\\n        --mode ${mode} \\\n        --email ${email} \\\n        --password ${password} \\\n        --client-url http://127.0.0.1:8000\n```\n\n### Using the isbn_hyphenate library\nSome loaders depend on the `isbn_hyphenate` python library to add hyphens to ISBNs. The library contains a list of valid ranges for data validation, but was last updated in 2015, and new ranges have been added since then. Some newer ISBNs will cause the Thoth function `sanitise_isbn()`, which depends on `isbn_hyphenate`, to raise an `IsbnUnableToHyphenateError` exception. In order to update the `isbn_hyphenate` prefix list, follow directions at (https://github.com/TorKlingberg/isbn_hyphenate).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoth-pub%2Fthoth-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthoth-pub%2Fthoth-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoth-pub%2Fthoth-loader/lists"}