$npx skillfedfor your agent

py-vollib

Deprecated transition package for vollib.

With conditionsPyPI FinancialReleased Jun 2026176.8K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — py_vollib-1.0.12-py3-none-any.whl
v1.0.12 · released 2026-06-01 · Python <4,>=3.9 · 1 runtime deps: vollib

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

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
Same gist for agents: .md · .json

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.

With conditions

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

LicenseMIT permissive
Python supportSupports the current Python release <4,>=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
vollib
MaintenanceActively maintained 74 days since the last release
Last repo commit
First released
Downloads176,846 / month, #10,232 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
option pricing black scholesimplied volatility calculationgreeks options derivativesblack model option pricefinancial derivatives pricingvolatility surface computation
Topics
quantitative-financederivatives-pricingvolatility-modeling

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 Worth it
PyPI · Scientific/Engineering · released Dec 2025

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.

BSD-3-Clausecompiled wheel · 3.9+
45.7Mdownloads / mo
holidays Worth it
PyPI · Python Modules · released Aug 2026

Generates country- and subdivision-specific government holiday calendars on demand, supporting 250 country codes with optional language localization and holiday categories.

MITpure Python · 3.10+
30.7Mdownloads / mo
yfinance With conditions
PyPI · Libraries · released Aug 2026

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.

Apache-2.0pure Python
29.2Mdownloads / mo
bokeh Worth it
PyPI · Scientific/Engineering · released Jul 2026

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.

BSD-3-Clausepure Python · 3.10+
12.1Mdownloads / mo
python-stdnum Worth it
PyPI · Python Modules · released Jan 2026

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.

LGPL-2.0-or-laterpure Python · 3.8+
6.2Mdownloads / mo
numpy-financial With conditions
PyPI · Software Development · released Oct 2019

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…

BSD-3-Clausepure Python · 3.5+aging
5.9Mdownloads / mo

See also vollib · py-lets-be-rational · volatility3 · pyportfolioopt · ta · cody-special · QuantLib · piecewise-rational · linearmodels