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.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

mm_game-0.0.1-cp310-cp310-win_amd64.whl (66.8 kB view details)

Uploaded CPython 3.10Windows x86-64

File details

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

File metadata

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

File hashes

Hashes for mm_game-0.0.1.tar.gz
Algorithm Hash digest
SHA256 877cbb0d968857b07a9f41b922709d4483a665086dc08c9ef6bc249f37779c4a
MD5 700fdbbad7254e0d3155b7e78d03c5c7
BLAKE2b-256 2e2e1fec80a781be206b6f1b4998e98c6a564b3e818d14b7c219e0a24f2bc530

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mm_game-0.0.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5248d1e7b3b9fb240d6731796d8287e8b31990b2c19119c983afcdca8e822ed6
MD5 afb6e9d2c11323088d83ff7558ccceda
BLAKE2b-256 8e7221541617181838178a7808dcb7b3b423211edcaef822e7b47c6d5e97be0c

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