{"id":30203078,"url":"https://github.com/vimkim/peanopython","last_synced_at":"2025-08-13T11:14:57.154Z","repository":{"id":157110779,"uuid":"533032346","full_name":"vimkim/PeanoPython","owner":"vimkim","description":"Most Elegant Peano Arithmatic in Python","archived":false,"fork":false,"pushed_at":"2022-09-05T19:40:44.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-23T14:00:11.813Z","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/vimkim.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}},"created_at":"2022-09-05T19:23:45.000Z","updated_at":"2022-09-06T05:00:57.000Z","dependencies_parsed_at":"2023-12-24T07:54:13.513Z","dependency_job_id":"1495f454-9642-4c48-8471-10098a05d673","html_url":"https://github.com/vimkim/PeanoPython","commit_stats":null,"previous_names":["vimkim/peanopython"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vimkim/PeanoPython","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimkim%2FPeanoPython","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimkim%2FPeanoPython/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimkim%2FPeanoPython/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimkim%2FPeanoPython/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vimkim","download_url":"https://codeload.github.com/vimkim/PeanoPython/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimkim%2FPeanoPython/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270228751,"owners_count":24548903,"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","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-08-13T11:14:09.649Z","updated_at":"2025-08-13T11:14:57.120Z","avatar_url":"https://github.com/vimkim.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PeanoPython\n Most Elegant Peano Arithmatic Implementation in Python\n\n\n``` python\ndef main() -\u003e None:\n\n    zero: NatNum = Zero()\n    print(\"zero:\", zero)\n\n    one: NatNum = Succ(Zero())\n    print(\"one:\", one)\n\n    two: NatNum = Succ(Succ(Zero()))\n    print(\"two:\", two)\n\n    three: NatNum = Succ(Succ(Succ(Zero())))\n    print(\"three:\", three)\n\n    four1: NatNum = one.add(three)\n    four2: NatNum = two.add(two)\n    four3: NatNum = three.add(one)\n    four4: NatNum = four3.add(zero)\n    four5: NatNum = zero.add(four4)\n\n    print(\"\\nprinting 4...\")\n    print(four1)\n    print(four2)\n    print(four3)\n    print(four4)\n    print(four5)\n```\n\n```bash\n$ py main.py\nzero: ZERO\none: SUCC ZERO\ntwo: SUCC SUCC ZERO\nthree: SUCC SUCC SUCC ZERO\n\nprinting 4...\nSUCC SUCC SUCC SUCC ZERO\nSUCC SUCC SUCC SUCC ZERO\nSUCC SUCC SUCC SUCC ZERO\nSUCC SUCC SUCC SUCC ZERO\nSUCC SUCC SUCC SUCC ZERO\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvimkim%2Fpeanopython","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvimkim%2Fpeanopython","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvimkim%2Fpeanopython/lists"}