{"id":20995596,"url":"https://github.com/ddjerqq/rustkit","last_synced_at":"2025-06-20T23:08:01.419Z","repository":{"id":64915997,"uuid":"578392024","full_name":"ddjerqq/rustkit","owner":"ddjerqq","description":"Rustkit - A Python library for Rust lovers who want to use Rust-like code in Python.","archived":false,"fork":false,"pushed_at":"2023-03-07T16:11:58.000Z","size":68,"stargazers_count":9,"open_issues_count":3,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-20T23:07:16.451Z","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":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ddjerqq.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-15T00:12:22.000Z","updated_at":"2024-12-01T19:47:01.000Z","dependencies_parsed_at":"2025-05-14T21:44:36.067Z","dependency_job_id":null,"html_url":"https://github.com/ddjerqq/rustkit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ddjerqq/rustkit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddjerqq%2Frustkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddjerqq%2Frustkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddjerqq%2Frustkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddjerqq%2Frustkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ddjerqq","download_url":"https://codeload.github.com/ddjerqq/rustkit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddjerqq%2Frustkit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261032097,"owners_count":23100050,"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","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-19T07:24:48.532Z","updated_at":"2025-06-20T23:07:56.401Z","avatar_url":"https://github.com/ddjerqq.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rustkit - A Python library for Rust lovers.\n\n\u003e Rustkit is a Python library for Rust lovers. It provides a set of tools to write\nRust-like code in Python. It's written by a fellow rustacean, who also loves Python.\nIn my opinion, Python is a great language, but it lacks some features that Rust\nhas. Rustkit is an attempt to bring some of those features to Python.\n\n\n# Roadmap\n\n#### as of now, only the following features are implemented:\n\n- [x] Result\n- [x] Option\n\n#### with these features on their way in a future release:\n\n- [ ] Vector\n- [ ] Iterators\n\n\n## Installation\n\n```bash\npip install rustkit\n```\n\n\n## Usage\n\n```python\nfrom rustkit import *\n\n# Rust-like optionals\nassert some(10).unwrap() == 10\nassert some(10).unwrap_or(20) == 10\nassert Option.from_(None) == NONE\n\n# Rust-like results, and error handlers\nassert ok(10).unwrap() == 10\nassert ok(10).unwrap_or(20) == 10\nassert Result.from_(lambda: 10 / 0) == err(ZeroDivisionError)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddjerqq%2Frustkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fddjerqq%2Frustkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddjerqq%2Frustkit/lists"}