{"id":31821933,"url":"https://github.com/ivaniscoding/hands-on-pyo3","last_synced_at":"2025-10-11T13:55:21.422Z","repository":{"id":318593337,"uuid":"1061450679","full_name":"IvanIsCoding/hands-on-pyo3","owner":"IvanIsCoding","description":"Extending Python with Rust: a hands-on introduction to PyO3","archived":false,"fork":false,"pushed_at":"2025-10-08T03:39:40.000Z","size":1154,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-08T05:36:50.511Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","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/IvanIsCoding.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-21T23:29:11.000Z","updated_at":"2025-10-08T03:39:44.000Z","dependencies_parsed_at":"2025-10-08T05:37:05.110Z","dependency_job_id":"d00d5138-ad6d-4408-a662-1fbea7d05b86","html_url":"https://github.com/IvanIsCoding/hands-on-pyo3","commit_stats":null,"previous_names":["ivaniscoding/hands-on-pyo3"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/IvanIsCoding/hands-on-pyo3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanIsCoding%2Fhands-on-pyo3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanIsCoding%2Fhands-on-pyo3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanIsCoding%2Fhands-on-pyo3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanIsCoding%2Fhands-on-pyo3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IvanIsCoding","download_url":"https://codeload.github.com/IvanIsCoding/hands-on-pyo3/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanIsCoding%2Fhands-on-pyo3/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007339,"owners_count":26084284,"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-10-11T02:00:06.511Z","response_time":55,"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-10-11T13:55:17.904Z","updated_at":"2025-10-11T13:55:21.414Z","avatar_url":"https://github.com/IvanIsCoding.png","language":"Jupyter Notebook","readme":"# Extending Python with Rust: a hands-on introduction to PyO3\n\nThis is an example project using [PyO3](https://github.com/PyO3/pyo3). The goal\nof this project is to provide a practical example.\n\nTo see it in action: [![Notebook Viewer](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/IvanIsCoding/hands-on-pyo3/blob/main/00_Example_Usage.ipynb)\n\n## Structure\n\n```\n    .\n    ├── 00_Example_Usage.ipynb             # Installs the extension from source and tests it\n    ├── Cargo.toml                         # Defines the Rust manifest: crate name, deps, and more.\n    ├── pyproject.toml                     # Configuration for Python: defines the build system and deps, and more.\n    ├── Cargo.lock                         # Lockfile generated by Cargo. This is auto-generated.\n    ├── src/                               # Rust implementation using PyO3 and jxl-oxide\n    ├── slides                             # Slides source in markdown + rendered PDF\n    ├── .cargo                             # Config files to make this project compile for macOS\n    └── README.md                          # This file!\n```\n\n## Purpose\n\nThis example extension lets users load [JPEG XL](https://en.wikipedia.org/wiki/JPEG_XL)\nimages into Python as NumPy arrays and [Pillow Images](https://pillow.readthedocs.io/en/stable/reference/Image.html).\n\nWe leverage [jxl-oxide](https://docs.rs/jxl-oxide/0.11.4/jxl_oxide/) to read the JPEG XL images. This demo code wraps the Rust crate and makes it available for Python users. \n\n## Usage\n\nTo install from source, firstly ensure you have a Rust compiler available.\n\nThen, simply run:\n\n```bash\npip install .\n```\n\nOnce that is done, the extension module should be available in Python:\n\n```python\nimport jxl_demo\n```\n\nThe `jxl_demo` module has two functions: `decode_jxl` and `decode_jxl_as_array`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivaniscoding%2Fhands-on-pyo3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivaniscoding%2Fhands-on-pyo3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivaniscoding%2Fhands-on-pyo3/lists"}