{"id":16200209,"url":"https://github.com/jss95/numpy-cython-example","last_synced_at":"2026-03-18T18:21:10.023Z","repository":{"id":257040190,"uuid":"849884006","full_name":"JSS95/numpy-cython-example","owner":"JSS95","description":"Example for NumPy + Cython + PyPI","archived":false,"fork":false,"pushed_at":"2024-09-19T06:51:26.000Z","size":45,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T17:49:53.869Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://test.pypi.org/project/numpy-cython-example/","language":"Cython","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JSS95.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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":"2024-08-30T12:51:54.000Z","updated_at":"2024-09-19T06:51:29.000Z","dependencies_parsed_at":"2024-11-03T09:40:47.147Z","dependency_job_id":null,"html_url":"https://github.com/JSS95/numpy-cython-example","commit_stats":null,"previous_names":["jss95/numpy-cython-example"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/JSS95/numpy-cython-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSS95%2Fnumpy-cython-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSS95%2Fnumpy-cython-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSS95%2Fnumpy-cython-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSS95%2Fnumpy-cython-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JSS95","download_url":"https://codeload.github.com/JSS95/numpy-cython-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSS95%2Fnumpy-cython-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28565001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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-10-10T09:29:33.031Z","updated_at":"2026-01-19T09:02:28.060Z","avatar_url":"https://github.com/JSS95.png","language":"Cython","readme":"# NumPy + Cython + PyPI Example\n\nAn ultimate guide for writing a Numpy-oriented Cython package and pubilshing to PyPI.\n\nThis example covers:\n\n* src-layout with Cython.\n* Using `cibuildwheel` to generate pre-built distributions for different platforms.\n* Publishing the distribution to PyPI using Github Action.\n\n... and many more details!\n\n\u003e (Note) This example uses TestPyPI for distribution. If you create a real project based on this and publish to PyPI, modify the scripts accordingly.\n\n## Installation\n\nYou can either download the pre-built binaries for your platform from PyPI, or get the source and build the binaries yourself.\n\n\u003e (Note) Binaries for MacOS are not distributed because I just couldn't make OpenMP work in CI.\n\nBuilding binaries from `.pyx` files requires Cython's prerequisits and OpenMP installed in your machine.\nOnce it is satisfied, building can be automated thanks to `setuptools`.\n\n### Installing from PyPI\n\nThe simplest option. Your platform is detected and binary wheel is installed from PyPI. Just run this and forget about the rest.\n\n```\npip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ numpy-cython-example\n```\n\n### Building from PyPI\n\nYou can get source from PyPI by disabling binary installation.\nThis will download the source and automatically build the binary.\n\n```\npip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ --no-binary=numpy-cython-example numpy-cython-example\n```\n\n### Building from Source\n\nIf you have already acquired the souce code (e.g., from Github), running this in your local project root directory will do the same job.\n\n```\npip install .\n```\n\n\u003e Instead of running the build script, you can also directly run Cython and C compiler to build the binaries with additional options. That approach is not covered in this project.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjss95%2Fnumpy-cython-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjss95%2Fnumpy-cython-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjss95%2Fnumpy-cython-example/lists"}