Skip to main content

Embbed python package for market data (with pybind11)

Project description

scikit_build_example

Gitter

CI status
conda.recipe Conda Actions Status
pip builds Pip Actions Status

An example project built with pybind11 and scikit-build-core. Python 3.9+ (see older commits for 3.7+, or even older versions of Python using scikit-build (classic)).

Installation

  • Clone this repository
  • pip install ./scikit_build_example

Test call

import scikit_build_example

scikit_build_example.add(1, 2)

Files

This example has several files that are a good idea, but aren't strictly necessary. The necessary files are:

  • pyproject.toml: The Python project file
  • CMakeLists.txt: The CMake configuration file
  • src/main.cpp: The source file for the C++ build
  • src/scikit_build_example/__init__.py: The Python portion of the module. The root of the module needs to be <package_name>, src/<package_name>, or python/<package_name> to be auto-discovered.

These files are also expected and highly recommended:

  • .gitignore: Git's ignore list, also used by scikit-build-core to select files for the SDist
  • README.md: The source for the PyPI description
  • LICENSE: The license file

There are also several completely optional directories:

  • .github: configuration for Dependabot and GitHub Actions
  • conda.recipe: Example recipe. Normally you should submit projects to conda-forge instead of building them yourself, but this is useful for testing the example.
  • docs/: Documentation
  • tests/: Tests go here

And some optional files:

  • .pre-commit-config.yaml: Configuration for the fantastic static-check runner pre-commit.
  • noxfile.py: Configuration for the nox task runner, which helps make setup easier for contributors.

This is a simplified version of the recommendations in the Scientific-Python Development Guide, which is a highly recommended read for anyone interested in Python package development (Scientific or not). The guide also has a cookiecutter that includes scikit-build-core and pybind11 as a backend choice.

CI Examples

There are examples for CI in .github/workflows. A simple way to produces binary "wheels" for all platforms is illustrated in the "wheels.yml" file, using cibuildwheel.

License

pybind11 is provided under a BSD-style license that can be found in the LICENSE file. By using, distributing, or contributing to this project, you agree to the terms and conditions of this license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mm_game-0.0.2.tar.gz (8.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

mm_game-0.0.2-cp314-cp314-macosx_26_0_arm64.whl (121.0 kB view details)

Uploaded CPython 3.14macOS 26.0+ ARM64

mm_game-0.0.2-cp310-cp310-win_amd64.whl (70.7 kB view details)

Uploaded CPython 3.10Windows x86-64

File details

Details for the file mm_game-0.0.2.tar.gz.

File metadata

  • Download URL: mm_game-0.0.2.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for mm_game-0.0.2.tar.gz
Algorithm Hash digest
SHA256 18916e27716a3d5158e0dc0398b1de71bd9b3aba1d7973323c25ac21a9029bbc
MD5 e6ad892f561d294fb38023e26e71c15a
BLAKE2b-256 97d60aba50af4e8d01624f9e8ed6312aefbe2ffa2c2d81a907500b7d19616b3d

See more details on using hashes here.

File details

Details for the file mm_game-0.0.2-cp314-cp314-macosx_26_0_arm64.whl.

File metadata

File hashes

Hashes for mm_game-0.0.2-cp314-cp314-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 55c9f44cbd8b689190689205de42c28bcfacd8a84db287411d8b6e16a6c262af
MD5 2b9b271544b5b15c7ab3d3e0659a1f3a
BLAKE2b-256 4e0f51df77646576046486bf4d5e1242d77349cc94787102ebfb8bba2436a2d8

See more details on using hashes here.

File details

Details for the file mm_game-0.0.2-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: mm_game-0.0.2-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 70.7 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for mm_game-0.0.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7cdc6dd5393a5d84968390af4cbd8da703da1f9a707f697a71a165251d2cb104
MD5 dbd0b1a1b32db37b1469869acb31542d
BLAKE2b-256 4435b2c05a9b25f4dade0edcfa00dde99ea4e25a4319da6a923959af2ab7436b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page