py-vollib
Deprecated transition package for vollib.
Decision gist · record as of 2026-08-14
Yes, but with a strong caveat: this package is deprecated and exists only as a transition bridge. If you are starting a new project, install and import from the canonical `vollib` package instead. If you have existing code pinned to py_vollib, it will continue to work (low friction, active maintenance, no known vulnerabilities), but plan a migration. The underlying algorithms are solid and widely used in quantitative finance.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Strike prices must be strictly positive; K=0 or K<0 will raise ZeroDivisionError or ValueError respectively.
- Low install friction; pure Python wheel with no compiled dependencies.
- Active maintenance as of 2026-05-29, supporting Python 3.9 through 3.13.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) allows commercial and private use with minimal restrictions. No notable licensing constraints for typical use.
last release 2026-06-01 (74 days) · last repo commit 2026-05-29 · 424 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 176,846 downloads/mo, #10,232 on PyPI
Alternatives
Verify before relying
pip install py-vollib
from vollib.black_scholes import black_scholes
from vollib.black_scholes.implied_volatility import implied_volatility
price = black_scholes('c', S=100, K=100, t=0.5, r=0.01, sigma=0.2)
iv = implied_volatility(price, S=100, K=100, t=0.5, r=0.01, flag='c')- Whether the deprecated py_vollib package will continue to receive security updates or if migration to vollib is urgent
- Performance characteristics and accuracy of numerical vs. analytical Greeks implementations
What it is and what it does
py_vollib is a deprecated transition package that provides Python bindings for option pricing and volatility calculations. It wraps Peter Jaeckel's LetsBeRational algorithm to compute implied volatility from option prices with high speed and precision, and offers functions to calculate option prices and Greeks (delta, gamma, vega, theta, rho) under three classical models: Black, Black-Scholes, and Black-Scholes-Merton. Both analytical and numerical Greeks are available.
The package is now a compatibility layer; the canonical package is `vollib`. Existing code importing from `py_vollib` will continue to work, but new code should migrate to `vollib` directly. It depends on numpy, pandas, scipy, and specialized libraries for error functions and rational interpolation. Strike prices must be strictly positive or the functions will raise errors.
Use it for
- Calculate implied volatility from observed option market prices for volatility surface construction
- Price European options under Black-Scholes or Black-Scholes-Merton models for portfolio valuation
- Compute Greeks (delta, gamma, vega, theta, rho) for risk management and hedging strategies
- Validate option pricing models by comparing analytical and numerical Greeks implementations
- Build derivatives analytics pipelines that require fast, accurate volatility and price calculations
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, but with a strong caveat: this package is deprecated and exists only as a transition bridge.
If you are starting a new project, install and import from the canonical `vollib` package instead. If you have existing code pinned to py_vollib, it will continue to work (low friction, active maintenance, no known vulnerabilities), but plan a migration. The underlying algorithms are solid and widely used in quantitative finance.
Install
py-vollib on PyPI
Before you install
Low install friction; pure Python wheel with no compiled dependencies. Active maintenance as of 2026-05-29, supporting Python 3.9 through 3.13. Note: this is a deprecated transition package; new code should import from the canonical `vollib` package instead.
Strike prices must be strictly positive; K=0 or K<0 will raise ZeroDivisionError or ValueError respectively.
License in practice
MIT license (permissive) allows commercial and private use with minimal restrictions. No notable licensing constraints for typical use.
Quickstart
pip install py-vollib
from vollib.black_scholes import black_scholes
from vollib.black_scholes.implied_volatility import implied_volatility
price = black_scholes('c', S=100, K=100, t=0.5, r=0.01, sigma=0.2)
iv = implied_volatility(price, S=100, K=100, t=0.5, r=0.01, flag='c')
Verify before relying
- Whether the deprecated py_vollib package will continue to receive security updates or if migration to vollib is urgent
- Performance characteristics and accuracy of numerical vs. analytical Greeks implementations
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4,>=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagevollib |
| Maintenance | Actively maintained 74 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 176,846 / month, #10,232 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Topic :: Office/Business :: Financial |
Evidence: py_vollib-1.0.12-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “option pricing black scholes”
- py-vollibCalculates option prices, implied volatility, and Greeks using Black,…
- vollibvollib calculates option prices, implied volatility, and Greeks using…
- py-lets-be-rationalComputes implied volatility from option prices using Peter Jaeckel's…
Give your agent the search over MCP, or paste the wish link into any chat.
More Financial packages
statsmodels provides statistical models, inference methods, and descriptive statistics for Python, complementing scipy with regression, time series, discrete choice, survival analysis, and multivariate methods.
Install it if you need publication-quality statistical models, hypothesis tests, or time series analysis beyond what scipy or pandas provide.
Generates country- and subdivision-specific government holiday calendars on demand, supporting 250 country codes with optional language localization and holiday categories.
Fetches financial and market data from Yahoo Finance's public APIs, including ticker information, historical prices, and live streaming data.
However, do not use it for commercial applications or high-volume data collection without confirming compliance with Yahoo's terms of service.
Bokeh is an interactive visualization library that creates browser-based plots, dashboards, and data applications from Python code, with support for large and streaming datasets.
Install it if you need browser-based interactivity.
Parses, validates, and reformats standard numbers and codes across many countries and industries—tax IDs, bank accounts, identity numbers, VAT codes, and financial identifiers.
Install it if you validate or reformat standardized numbers.
Provides elementary financial functions (IRR, NPV, PMT, and others) that were deprecated and removed from NumPy, offering a dedicated replacement for financial calculations.
However, given the aging status (no releases since 2019) and unclear compatibility with modern Python and recent numpy versions, verify that it works with your target…
See also vollib · py-lets-be-rational · volatility3 · pyportfolioopt · ta · cody-special · QuantLib · piecewise-rational · linearmodels