qeLib for Python
qeLib's analytics as a Python package: dates and market data (qeLib.Data),
numerics (qeLib.Core), the ISDA CDS Standard Model (qeLib.IsdaCds),
discount, projection, survival and recovery curves and their strippers
(qeLib.Curves), copulas, loss distributions and base correlation for credit
tranches (qeLib.CreditCorrelation), caps, floors, swaptions and CMS
(qeLib.RatesOption), options on CDS indices (qeLib.CreditOption),
analytics for Significant Risk Transfer securitisations (qeLib.SRT),
foreign exchange options (qeLib.FxOption), and
government bonds, bills and repos (qeLib.Bonds) - with first-order risk by
AAD.
import qeLib
print(qeLib.__version__, qeLib.License.licensee(), qeLib.License.expires())
The User Guide, qeLib.pdf, documents every type and function; it is
published with each release.
Requirements
- 64-bit Windows with Python 3.13; x86-64 Linux with Python 3.14; or macOS 11 or later, on Apple Silicon or Intel, with Python 3.14.
- On Windows, the Microsoft Visual C++ 2015-2022 x64 runtime (usually
installed already; if not,
vc_redist.x64.exefrom Microsoft).
License
qeLib is proprietary, licensed for development and evaluation under the
qeLib developer license;
production use needs a separate agreement. Installing or using qeLib means
accepting the developer license. It runs under a signed license file, looked
for where the environment variable QELIB_LICENSE says, then as qeLib.lic
in your home directory, then beside the package's libraries, where a
release's evaluation license is. For a developer license of your own, or a
production license, write to licensing@qeanalytics.co.uk.
The developer license's terms are also in the package's licenses
directory, as qeLib-Developer-License.txt, with the licenses of the
third-party software qeLib uses, each listed in NOTICES.txt there.
Replaying an SPI log
qeLib's calls can be logged, each with its inputs and outputs, by SPI, the
layer qeLib's Python and Excel interfaces are generated with:
sys.modules["py_Data"].start_logging(path, "ACC", False), then
stop_logging(). The package carries the tools that turn such a log into
something to replay it with; qeLib.log_tools() says where they are:
python <tools>/spi_log_to_python.py LOG -o replay.py --with-checks --spi-replay-dir <replay> --svo-dir "" --svo <each .svo>
python <tools>/spi_log_to_excel.py LOG -o replay.xlsx --spi-replay-dir <replay> --svo-dir "" --svo <each .svo>
The script replays every call, each result checked against the logged one.
The workbook needs openpyxl (pip install openpyxl), and the qeLib Excel
add-in to recalculate.
Threads
For a large enough pool and grid, the credit correlation loss distributions
are built on several threads, as many as the machine runs at once. To use
fewer, set the environment variable QELIB_THREADS to the number - 1 for
none but the calling one. The results are the same, to the last bit, however
many there are.
This application is based on the ISDA CDS Standard Model (version 1.8.3), developed and supported in collaboration with Markit Group Ltd. qeLib has modified the model's code, only so that it is safe to call from several threads at once; the licenses folder's NOTICES.txt lists the changes.
Metadata
Release files for qelib 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qelib-0.4.0-cp314-cp314-manylinux_2_28_x86_64.whl | CPython 3.14 | CPython 3.14 | Linux glibc 2.28+ x86-64 | Details for qelib-0.4.0-cp314-cp314-manylinux_2_28_x86_64.whl |
| qelib-0.4.0-cp314-cp314-macosx_11_0_universal2.whl | CPython 3.14 | CPython 3.14 | macOS 11.0+ universal2 (ARM64, x86-64) | Details for qelib-0.4.0-cp314-cp314-macosx_11_0_universal2.whl |
| qelib-0.4.0-cp313-cp313-win_amd64.whl | CPython 3.13 | CPython 3.13 | Windows x86-64 | Details for qelib-0.4.0-cp313-cp313-win_amd64.whl |
Total release size: 38.8 MB
Release files / qelib-0.4.0-cp314-cp314-manylinux_2_28_x86_64.whl
| Download URL | qelib-0.4.0-cp314-cp314-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 11.9 MB |
| Tags | CPython 3.14 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
d937805b4b71c5a9d84c17e3db1816a0d82292af452a125d2a1069686259fe52
|
|
BLAKE2b-256 checksum How to use checksums |
e59e8920004b5f152ff4985201ab52fca34f14abc780c0ce2ae40d986d263f42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / qelib-0.4.0-cp314-cp314-macosx_11_0_universal2.whl
| Download URL | qelib-0.4.0-cp314-cp314-macosx_11_0_universal2.whl |
|---|---|
| Size | 18.6 MB |
| Tags | CPython 3.14 macOS 11.0+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
ebcd444def315484e7a8c4d4834510a70fc9883333a8a7727083882edf72b5e4
|
|
BLAKE2b-256 checksum How to use checksums |
ba55f24d875780eba72530d0f42d5b313c6a454af786b68582c4c36726eb019a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / qelib-0.4.0-cp313-cp313-win_amd64.whl
| Download URL | qelib-0.4.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 8.2 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
63be09212c707c23a91093748a75909023307d5d91287fa50eab793c5b1e35ff
|
|
BLAKE2b-256 checksum How to use checksums |
382e6d50e5e4de39e60162cf21a6dba6509697d309be98997d23468cc238dc3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Security for qelib 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.