Ogmios is a lightweight bridge interface for cardano-node. It offers a WebSockets API that enables local clients to speak Ouroboros' mini-protocols via JSON/RPC. ogmios-python is an Ogmios client written in Python designed for ease of use.
Project Links
Meta
Author: Willie Marchetto, Dylan Crocker
Requires Python: >=3.8
Classifiers
Development Status
- 4 - Beta
Programming Language
- Python
- Python :: 3.8
- Python :: 3.9
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: Implementation :: CPython
- Python :: Implementation :: PyPy
ogmios-python
Ogmios is a lightweight bridge interface for cardano-node. It offers a WebSockets API that enables local clients to speak Ouroboros’ mini-protocols via JSON/RPC. ogmios-python is an Ogmios client written in Python designed for ease of use.
Table of Contents
Installation
- Install cardano-node and Ogmios server as described here. (Docker installation is recommended.)
- Install ogmios-python from PyPI using pip:
pip install ogmios
Quickstart
To see how easy it is to build on Cardano with ogmios-python, let's use the library to view new blocks as they are added to the blockchain:
import ogmios
with ogmios.Client() as client:
# Set chain pointer to origin
_, tip, _ = client.find_intersection.execute([ogmios.Origin()])
# Now set chain pointer to tip
_, _, _ = client.find_intersection.execute([tip.to_point()])
# Tail blockchain as new blocks come in beyond the current tip
while True:
direction, tip, point, _ = client.next_block.execute()
if direction == ogmios.Direction.forward:
print(f"New block: {point}")

For more examples, see the documentation and example scripts in the repo.
Documentation
Complete client documentation is available on Read the Docs.
License
ogmios-python is distributed under the terms of the GPL-3.0-or-later license.
1.4.3
Nov 07, 2025
1.4.2
Mar 28, 2025
1.4.1
Mar 28, 2025
1.3.0
Nov 16, 2024
1.2.1
Sep 04, 2024
1.2.0
Sep 02, 2024
1.1.1
Jul 24, 2024
1.1.0
Jul 24, 2024
1.0.6
Apr 03, 2024
1.0.5
Mar 01, 2024
1.0.4
Mar 01, 2024
1.0.3
Mar 01, 2024
1.0.2
Mar 01, 2024
1.0.1
Feb 27, 2024
1.0.0
Feb 18, 2024
0.4.0
Dec 08, 2023
0.3.0
Dec 07, 2023
0.2.1
Nov 21, 2023
0.2.0
Nov 21, 2023
0.1.4
Oct 21, 2023
0.1.3
Oct 21, 2023
0.1.2
Oct 21, 2023
0.1.1
Oct 21, 2023
0.1.0
Oct 21, 2023
0.0.1
Oct 21, 2023
Wheel compatibility matrix
Files in release
Extras:
Dependencies:
cachetools
cardano-tools
coloredlogs
orjson
pydantic
(>=2.0)
setuptools
(>=75.3.2)
websockets