{"id":20639408,"url":"https://github.com/beryllium-org/cptoml","last_synced_at":"2026-03-01T17:02:28.421Z","repository":{"id":111499807,"uuid":"581239305","full_name":"beryllium-org/cptoml","owner":"beryllium-org","description":"A CircuitPython module for managing toml files.","archived":false,"fork":false,"pushed_at":"2024-12-01T22:28:53.000Z","size":62,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T22:58:16.625Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beryllium-org.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}},"created_at":"2022-12-22T16:34:49.000Z","updated_at":"2025-01-20T20:59:37.000Z","dependencies_parsed_at":"2024-01-23T00:32:01.575Z","dependency_job_id":"78aac42e-d9a8-4034-abea-2fafd36c2af8","html_url":"https://github.com/beryllium-org/cptoml","commit_stats":null,"previous_names":["beryllium-org/cptoml"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/beryllium-org/cptoml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beryllium-org%2Fcptoml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beryllium-org%2Fcptoml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beryllium-org%2Fcptoml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beryllium-org%2Fcptoml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beryllium-org","download_url":"https://codeload.github.com/beryllium-org/cptoml/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beryllium-org%2Fcptoml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29976272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T16:35:47.903Z","status":"ssl_error","status_checked_at":"2026-03-01T16:35:44.899Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":"2024-11-16T15:23:56.126Z","updated_at":"2026-03-01T17:02:28.404Z","avatar_url":"https://github.com/beryllium-org.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CPToml\n\nA CircuitPython module for managing toml files.\u003cbr /\u003e\n\u003cbr /\u003e\nTo create an .mpy package, just run \u003ccode\u003emake mpy\u003c/code\u003e.\u003cbr /\u003e\n\u003cbr /\u003e\nBasic usage guide:\u003cbr /\u003e\n```\n# Read\nfrom cptoml import fetch\nfetch(\"CIRCUITPY_PYSTACK_SIZE\") # To fetch something from the root table\nfetch(\"item1\", \"subtable1\") # To fetch item1 from subtable1\n\n# Write\nfrom cptoml import put\nfrom storage import remount\nremount(\"/\", False)\nput(\"CIRCUITPY_PYSTACK_SIZE\", 7000) # To set an item in root table\nput(\"item1\", 123, \"subtable1\", comment=\"This is useless\") # To set item1 in subtable1 with comment\nremount(\"/\", True)\n\n# Delete\nfrom cptoml import delete\nfrom storage import remount\nremount(\"/\", False)\ndelete(\"CIRCUITPY_PYSTACK_SIZE\") # To make me sad\ndelete(\"item1\", \"subtable1\") # To delete item1 from subtable1\nremount(\"/\", True)\n```\n\u003cbr /\u003e\nEmpty tables are deleted automatically.\u003cbr /\u003e\nThe toml file is formatted automatically on any write.\u003cbr /\u003e\nTo edit a toml file other than \u003ccode\u003e/settings.toml\u003c/code\u003e, pass the option: \u003ccode\u003etoml=\"/path_to_your.toml\"\u003c/code\u003e.\u003cbr /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberyllium-org%2Fcptoml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fberyllium-org%2Fcptoml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberyllium-org%2Fcptoml/lists"}