{"id":15539617,"url":"https://github.com/maxmekiska/cookiecutter-python-rust-maturin","last_synced_at":"2026-04-27T12:04:51.849Z","repository":{"id":192478082,"uuid":"686208815","full_name":"maxmekiska/cookiecutter-python-rust-maturin","owner":"maxmekiska","description":"Enhanced maturin python rust template.","archived":false,"fork":false,"pushed_at":"2023-09-08T01:17:27.000Z","size":22719,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-09T12:58:14.944Z","etag":null,"topics":["cookiecutter","maturin","python","rust"],"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/maxmekiska.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":"2023-09-02T03:22:04.000Z","updated_at":"2024-01-19T18:31:00.000Z","dependencies_parsed_at":"2024-10-02T12:10:56.307Z","dependency_job_id":null,"html_url":"https://github.com/maxmekiska/cookiecutter-python-rust-maturin","commit_stats":null,"previous_names":["maxmekiska/python-on-steroids","maxmekiska/cookiecutter-python-rust-maturin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maxmekiska/cookiecutter-python-rust-maturin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxmekiska%2Fcookiecutter-python-rust-maturin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxmekiska%2Fcookiecutter-python-rust-maturin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxmekiska%2Fcookiecutter-python-rust-maturin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxmekiska%2Fcookiecutter-python-rust-maturin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxmekiska","download_url":"https://codeload.github.com/maxmekiska/cookiecutter-python-rust-maturin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxmekiska%2Fcookiecutter-python-rust-maturin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32335333,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"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":["cookiecutter","maturin","python","rust"],"created_at":"2024-10-02T12:10:54.745Z","updated_at":"2026-04-27T12:04:51.817Z","avatar_url":"https://github.com/maxmekiska.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cookiecutter Python Rust Maturin Template\n\nPlease run the following commands to use this template:\n\n- `pip install cookiecutter`\n- `cookicuter https://github.com/maxmekiska/cookiecutter-python-rust-maturin`\n\n## Overview\n\nEnhanced maturin python rust template. The template supports two main modes:\n\n1. python library mode\n2. microservice mode\n\nBoth modes can be used with no changes.\n\n## Run as a library\n\n- install maturin via: `pip install maturin`\n- Either:\n    - development mode\n        - build package in development mode via: `maturin develop`\n    - build wheel\n        - build package wheel via: `maturin build --interpreter python`\n        - `pip install .`\n\nYou can still run the library in microservice mode via the command: `micro-launch`\n\n## Build as a Microservice\n\n- `docker build -t my-microservice .`\n- `docker run -d -p 8000:8000 --name test-service my-microservice`\n\n### Send example requests via curl\n\n`/heartbeat/`\n```\ncurl http://127.0.0.1:8000/heartbeat/\n```\n\n`/run/sum/`\n```\ncurl -X 'POST' \\\n  'http://localhost:8000/run/sum/' \\\n  -H 'accept: application/json' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n  \"a\": 1,\n  \"b\": 2\n}'\n```\n\n\n`/run/diff/`\n```\ncurl -X 'POST' \\\n  'http://localhost:8000/run/diff/' \\\n  -H 'accept: application/json' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n  \"a\": 2,\n  \"b\": 1\n}'\n```\n\n## Format and Test via tox\n\n- install tox via: `pip install tox`\n- run tox via: `tox`\n\n\n## Appendix\n\n#### Core was build via Maturin\n\n- create a vitual env: `python -m venev env`\n- activate env: `.\\env\\Scripts\\activate`\n- pip install maturin\n- run `maturin new --mixed \u003cyour path\\nameOfYourLibrary\u003e`\n- test via either:\n    - development mode\n        - build package in development mode via: `maturin develop`\n    - build wheel\n        - build package wheel via: `maturin build --interpreter python`\n        - `pip install .`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxmekiska%2Fcookiecutter-python-rust-maturin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxmekiska%2Fcookiecutter-python-rust-maturin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxmekiska%2Fcookiecutter-python-rust-maturin/lists"}