Python bindings for the QuantLib library
Actively maintained. Last release 7 weeks ago, commits in 24 of the last 26 weeks. A safe choice.
$
pip install quantlibQuantLib (https://www.quantlib.org/) is a free/open-source C++ library
for financial quantitative analysts and developers, aimed at providing
a comprehensive software framework for quantitative finance.
QuantLib is Non-Copylefted Free Software and OSI Certified Open Source Software.
Free-threading wheels are also provided, and we did build the wheels
with some configuration options that make it possible to use them
using some limited multi-threading. In particular:
- the globals in the library are per-thread; most notably,
the evaluation date and the stored index fixings;
- there is code in place to prevent the garbage collector
to interfere with notifications inside the library.
Note, though, that the underlying C++ library is not thread-safe and
any complex attempt at multi-threading will probably fail. We suggest
to avoid sharing objects and state across threads; each thread should
have its set of objects, evaluation date etc.