{"id":42742828,"url":"https://github.com/asdfjkl/cbh2pgn","last_synced_at":"2026-01-29T19:02:37.859Z","repository":{"id":151219522,"uuid":"577084973","full_name":"asdfjkl/cbh2pgn","owner":"asdfjkl","description":"converts chess databases from .cbh to .pgn","archived":false,"fork":false,"pushed_at":"2024-08-18T18:35:40.000Z","size":82,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-08-18T19:48:46.771Z","etag":null,"topics":["chess","database"],"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/asdfjkl.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}},"created_at":"2022-12-11T23:04:09.000Z","updated_at":"2024-08-18T18:35:43.000Z","dependencies_parsed_at":"2023-06-26T09:30:50.661Z","dependency_job_id":null,"html_url":"https://github.com/asdfjkl/cbh2pgn","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/asdfjkl/cbh2pgn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asdfjkl%2Fcbh2pgn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asdfjkl%2Fcbh2pgn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asdfjkl%2Fcbh2pgn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asdfjkl%2Fcbh2pgn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asdfjkl","download_url":"https://codeload.github.com/asdfjkl/cbh2pgn/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asdfjkl%2Fcbh2pgn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28882618,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T16:41:59.663Z","status":"ssl_error","status_checked_at":"2026-01-29T16:39:39.641Z","response_time":59,"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":["chess","database"],"created_at":"2026-01-29T19:02:35.113Z","updated_at":"2026-01-29T19:02:37.853Z","avatar_url":"https://github.com/asdfjkl.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cbh2pgn\n\n## About\n\nA small python script that converts chess databases \nstored in the `.cbh` file format to `.pgn`. The tool is currently very limited:\n\n- converts only standard games - no `Chess960`\n- only the moves (including variations) of a game plus the following meta-info is converted:\n  - Event\n  - Site\n  - Date\n  - Round (plus subround if exists)\n  - White player name\n  - Black player name\n  - Result\n  - White Elo\n  - Black Elo\n- in particular, as of now, *no* game annotations are converted\n\n## Installation and Use (on Ubuntu)\n\nAs python is quite slow, I recommend using `pypy` instead of `cpython`. \nEven with `pypy`, a database with 9 million games takes approximately 8 hours to convert.\n\nFor comparison (reading and writing from/to SSD):\n- with `pypy` 300 to 400 games per second (after a few seconds, when JIT kicks in)\n- with `cpython` 20 to 60 games per second\n\n### Using `pypy`\n\nInstall `python`, `pypy`, `pip`, and `python-chess`:\n\n- `sudo apt install pypy3`\n- `sudo apt install python3-pip`\n- `pypy3 -mpip install -U pip wheel`\n- `pypy3 -mpip install python-chess`\n\nDownload `cbh2pgn` [here](https://github.com/asdfjkl/cbh2pgn/releases)\nand unzip to `myfolder`, then\n\n- `cd myfolder`\n- `pypy3 cbh2pgn.py -i your_database.cbh -o output.pgn`\n\nThis will create `output.pgn`\n\n### Using `cpython`\n\nNote that this will be too slow for large databases.\n\nInstall `python`, `pip`, and `python-chess`:\n\n- `sudo apt install python3`\n- `sudo apt install python3-pip`\n- `pip3 install python-chess`\n\nDownload `cbh2pgn` [here](https://github.com/asdfjkl/cbh2pgn/releases)\nand unzip to `myfolder`, then\n\n- `cd myfolder`\n- `python3 cbh2pgn.py -i your_database.cbh -o output.pgn`\n\nThis will create `output.pgn`\n\n## License\n\nCopyright (c) 2022 Dominik Klein. Licensed under MIT (see file LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasdfjkl%2Fcbh2pgn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasdfjkl%2Fcbh2pgn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasdfjkl%2Fcbh2pgn/lists"}