# uniswap-python/uniswap-python

🦄 The unofficial Python client for the Uniswap exchange.

Repository: https://github.com/uniswap-python/uniswap-python
Canonical: https://ross.abutalabs.com/products/uniswap-python
Homepage: https://uniswap-python.com
Language: Python
License: MIT
License Family: permissive
Topics: uniswap, uniswap-exchange, uniswap-api, orderbook, dex, trade, ethereum, eth, api, wrapper, exchange, crypto, currency, trading, trading-api, decentralized-exchange, uniswap-python, defi, amm
Last push: 2026-08-05T18:10:35+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 64, longevity 100
- inputs: {"age_days": 2804, "days_push": 28, "days_rel": 30, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1009, forks 377 (observed 2026-08-28T04:03:12.832006+00:00)

## What it is
An unofficial Python client and wrapper for the Uniswap decentralized exchange, supporting v1 through v4 plus popular forks like Sushiswap and Pancakeswap. It provides a clean API for price quoting, token swaps, liquidity management, and pool discovery, along with a small CLI for prices and token metadata.

## Use cases
- get token prices from uniswap in python
- swap tokens on uniswap programmatically
- quote a trade on uniswap v3 or v4
- manage liquidity positions on uniswap
- discover pools on uniswap v4
- trade on sushiswap or pancakeswap from python

## When to choose
- you need a Python interface to Uniswap contracts across v1-v4
- you want price quoting, swaps, and liquidity management from one library
- you need support for forks like Sushiswap, Pancakeswap, or Honeyswap
- you want a quick CLI to check prices and token metadata

## When to avoid
- you need an official, guaranteed-supported Uniswap client
- you trade on centralized exchanges rather than DEXs
- you need a non-Python language
- you require production guarantees for the beta v4 features

## Facets
- artifact type: library
- maturity: active
- function: trading, sdk, cli, http-client
- domain: fintech, blockchain, developer-tools
- platform: python, cli, cross-platform
- tags: uniswap, defi, decentralized-exchange, ethereum, web3, amm, dex, token-swaps, price-quoting, liquidity-management, cryptocurrency

## Member repositories
- uniswap-python/uniswap-python (main) score 86

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:12.832006+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:12:04.929590+00:00, confidence not recorded.
  - readme: https://github.com/uniswap-python/uniswap-python (fetched 2026-08-28T04:03:12.832006+00:00, sha b65f71986c8f)
  - homepage: https://uniswap-python.com (fetched 2026-08-29T13:12:20.749066+00:00, sha 4c8ab629c9cf)
  - site_page: https://uniswap-python.com/getting-started.html (fetched 2026-08-29T13:12:20.758780+00:00, sha 9432f462f0a7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
