Skip to main content

Cython Project Template

A simple project file structure to quickly ramp-up a new Cython project.

Contribute

Let's work to make it as easy as possible for folks to create new Cython-based projects. Pull-Requests, Issues, and Feedback are all welcome on the project's GitHub Page

Change Right Away

  • Update the LICENSE.md to match your project's needs.
  • Update pyproject.toml with your project & author information, dependencies, etc.
  • It is recommended you remove all files from Tests\ and CythonProjectTemplate\ directories (except the top-level __init__.py) after you have reviewed them.
  • Change the directory CythonProjectTemplate to match the name of your package.
  • Search for "#! Update" in all files to find critical locations that need to be changed for your specific project.
  • Read through .github\workflows\build_wheels_main_pypi.yml and make the necessary changes.
  • .gitignore was configured with Cython, Python, C, C++, in mind. Also it has VSCode IDE specific file ignores. You may need to edit for your needs.

Developing Your Project

  • Whenever you create a new cython pyx/pxd file make sure to add it to the cython_extensions.json file otherwise it will not be compiled when your project is installed.

Getting Your Project on PyPI

  • Come up with a unique name (search PyPI to ensure it is not already taken).
  • Follow the instructions here. Since you used this template you can skip down to step 8!
  • After the initial upload you can automate the process.
    • Get your PyPI API token.
    • Add it to your secret environment variables on your project's GitHub repository.
    • Have the pre-built .github\workflows\build_wheels_main_pypi.yml do all the hard work when you release a new version on GitHub.

Metadata

Release files for CythonProjectTemplate 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for CythonProjectTemplate 0.1.0
File Size Uploaded Provenance
CythonProjectTemplate-0.1.0.tar.gz 70.8 kB Without provenance Details

Release files / CythonProjectTemplate-0.1.0.tar.gz

Download URL CythonProjectTemplate-0.1.0.tar.gz
Size 70.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8a7554b869c3f7735a8d80aa01a74c0937043ede781d67dbe8205eae00795c65
BLAKE2b-256 checksum
How to use checksums
50097be5d40cc67521894644f8e78d88f5105832364a09c1cf86a63b49437c6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Security for CythonProjectTemplate 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page