feat(bindings): add python bindings for fixed_income#79
Merged
carlobortolan merged 10 commits intomasterfrom Sep 16, 2025
Merged
feat(bindings): add python bindings for fixed_income#79carlobortolan merged 10 commits intomasterfrom
carlobortolan merged 10 commits intomasterfrom
Conversation
- 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.
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
This was referenced Sep 16, 2025
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
python/README.mdto document bindings and usage examples.examples/python/basic_usage.pyand pandas example for bulk calculations inexamples/python/pandas_integration.py.See https://pypi.org/project/quantrs.
Closes #78.