Skip to content

feat(bindings): add python bindings for fixed_income#79

Merged
carlobortolan merged 10 commits intomasterfrom
78-add-python-bindings-pyo3-maturin
Sep 16, 2025
Merged

feat(bindings): add python bindings for fixed_income#79
carlobortolan merged 10 commits intomasterfrom
78-add-python-bindings-pyo3-maturin

Conversation

@carlobortolan
Copy link
Copy Markdown
Owner

@carlobortolan carlobortolan commented Sep 6, 2025

  • Implemented Python bindings using PyO3 for FI module
  • Created python/README.md to document bindings and usage examples.
  • Added basic usage examples in examples/python/basic_usage.py and pandas example for bulk calculations in examples/python/pandas_integration.py.

See https://pypi.org/project/quantrs.

Closes #78.

- Implemented Python bindings using PyO3 for fixed income functionalities including DayCount and ZeroCouponBond.
- Created README-py.md to document the Python bindings and usage examples.
- Added basic usage examples in examples/python/basic_usage.py.
- Integrated pandas for bulk calculations in examples/python/pandas_integration.py.
- Developed pytest-compatible tests for Python bindings in tests-py/fixed_income.py.
- Updated pyproject.toml to include project metadata and dependencies for Python.
- Added requirements.txt for testing dependencies.
- Enhanced Cargo.toml and Cargo.lock with new dependencies for Python integration.
- Improved documentation and error handling in Python bindings.
@carlobortolan carlobortolan self-assigned this Sep 6, 2025
@carlobortolan carlobortolan added enhancement New feature or request dependencies Pull requests that update a dependency file labels Sep 6, 2025
@carlobortolan carlobortolan linked an issue Sep 6, 2025 that may be closed by this pull request
@carlobortolan carlobortolan changed the title feat(python): add python bindings for fixed_income feat(bindings): add python bindings for fixed_income Sep 6, 2025
@codecov
Copy link
Copy Markdown

codecov bot commented Sep 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.64%. Comparing base (710614f) to head (549b8ad).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #79   +/-   ##
=======================================
  Coverage   92.64%   92.64%           
=======================================
  Files          29       29           
  Lines        2775     2775           
=======================================
  Hits         2571     2571           
  Misses        204      204           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@carlobortolan carlobortolan added the python Pull requests that update python code label Sep 6, 2025
@carlobortolan carlobortolan marked this pull request as ready for review September 6, 2025 23:27
@carlobortolan carlobortolan merged commit af72ef0 into master Sep 16, 2025
12 checks passed
SaurabhJamadagni pushed a commit to SaurabhJamadagni/quantrs that referenced this pull request Feb 4, 2026
* Add Python bindings and examples for quantrs library

- Implemented Python bindings using PyO3 for fixed income functionalities including DayCount and ZeroCouponBond.
- Created README-py.md to document the Python bindings and usage examples.
- Added basic usage examples in examples/python/basic_usage.py.
- Integrated pandas for bulk calculations in examples/python/pandas_integration.py.
- Developed pytest-compatible tests for Python bindings in tests-py/fixed_income.py.
- Updated pyproject.toml to include project metadata and dependencies for Python.
- Added requirements.txt for testing dependencies.
- Enhanced Cargo.toml and Cargo.lock with new dependencies for Python integration.
- Improved documentation and error handling in Python bindings.

* move python files to bindings/python

* update ci.yml to include python tests

* update Cargo.lock.MSRV

* update ci.yml

* update ci.yml

* rename python tests

* feat: update version of quantrs to 0.1.7 in Cargo.toml and Cargo.lock files

* implement fixed income bindings for DayCount and ZeroCouponBond
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file enhancement New feature or request python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Python bindings (PyO3 + maturin)

1 participant