{"id":24319766,"url":"https://github.com/ppkfs/mtgconvert","last_synced_at":"2026-04-20T12:32:07.206Z","repository":{"id":77492652,"uuid":"113918369","full_name":"PPKFS/mtgconvert","owner":"PPKFS","description":"Script to convert between MTG CSV formats.","archived":false,"fork":false,"pushed_at":"2021-04-12T13:31:37.000Z","size":55,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-10T20:45:01.365Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PPKFS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-12-11T23:08:13.000Z","updated_at":"2021-12-16T09:38:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"3768c729-93fd-4079-9735-1194106c6c45","html_url":"https://github.com/PPKFS/mtgconvert","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PPKFS/mtgconvert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PPKFS%2Fmtgconvert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PPKFS%2Fmtgconvert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PPKFS%2Fmtgconvert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PPKFS%2Fmtgconvert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PPKFS","download_url":"https://codeload.github.com/PPKFS/mtgconvert/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PPKFS%2Fmtgconvert/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32047120,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"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":"2025-01-17T15:39:26.017Z","updated_at":"2026-04-20T12:32:07.173Z","avatar_url":"https://github.com/PPKFS.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"NOTES FOR 2021:\n\nHave redone a bunch of stuff in this for 2021. the Delverlens-\u003eDeckbox mode works alright, but the deckbox-\u003ecardsphere mode has been completely rewritten.\nyou want to use mtgconvert2021.py, `python mtgconvert2021.py inv.csv delverlens deckbox out.csv`\n\n# mtgconvert\nPython script and config files to convert between different CSV export formats of various Magic: the Gathering collection apps and utilities.\n\nCurrently built for:\n\nDelver Lens (Deckbox Export) -\u003e Deckbox  \nDeckbox -\u003e Cardsphere\nDeckbox -\u003e Deckbox (this will update all tradelist counts to equal total collection counts and nothing else)\n\nNote this will only convert a file that has the correct csv layout as expected, but differing set or card names - for instance 'Promotional: Non-Release' to a specific\nset.\n\n---\n\n**Usage**\n\n`python mtgconvert.py infile inputformat outputformat outfile`\n\ninfile: the input file  \noutfile: the output file  \ninputformat: currently supported: `deckbox, delverlens`  \noutputformat: currently supported: `deckbox, cardsphere`  \n\nExample usage:  \n\n`python mtgconvert.py inv.csv delverlens deckbox out.csv`\n\n---\n\n**Config file syntax**\n\nFour headings: SET_REPLACE, NAME_REPLACE, NAME_SET_REPLACE, NAME_NUMEBR_REPLACE. These contain replacement rules for all names of a card, all editions, specific name/edition pairs, or alt-art-same-number cards respectively.\n\nA replacement rule for SET_REPLACE or NAME_REPLACE is of the format:\n\n`old_name -\u003e new_name`\n\nA replacement rule for NAME_SET_REPLACE is of the format:\n\n`old_name | old_edition -\u003e new_name | new_edition`\n\nThe bulk replacement rule for NAME_SET_REPLACE (e.g. for a set of prerelease promos) is of the format:\n\n`{ name1 | name2 | ... } | old_edition -\u003e new_edition`\n\nThe replacement rule for NAME_NUMBER_REPLACE (Alliances, Homelands, Portal for Cardsphere) is of the format:\n\n`name | number -\u003e new_name`\n\nIntention is for the community to update these replacement files as errors and mismatches are found. \nEasiest way to add full new set rules is to use a HTML table copier (e.g. Copytables) and text replace tools. \n\nTo update finicky things (namely Deckbox-\u003eCardsphere alt-art-same-number cards), it is recommended to check the deckbox collector number and the corresponding CS card name. As these are tedious and low-impact, they will be added as people find them.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppkfs%2Fmtgconvert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fppkfs%2Fmtgconvert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppkfs%2Fmtgconvert/lists"}