Skip to content
This new developer portal is under construction. For complete documentation, please refer to the old developer portal.

AlgoKit Python Utils

Overview

A set of core Algorand utilities written in Python and released via PyPi that make it easier to build solutions on Algorand. This project is part of AlgoKit.

The goal of this library is to provide intuitive, productive utility functions that make it easier, quicker, and safer to build applications on Algorand. Largely these functions wrap the underlying Algorand SDK, but provide a higher level interface with sensible defaults and capabilities for common tasks.

Features

Core Principles

This library is designed with the following principles:

  • Modularity - This library is a thin wrapper of modular building blocks over the Algorand SDK; the primitives from the underlying Algorand SDK are exposed and used wherever possible so you can opt-in to which parts of this library you want to use without having to use an all or nothing approach.
  • Type-safety - This library provides strong TypeScript support with effort put into creating types that provide good type safety and intellisense.
  • Productivity - This library is built to make solution developers highly productive; it has a number of mechanisms to make common code easier and terser to write

Installation

This library can be installed from PyPi using pip or poetry:

Terminal window
pip install algokit-utils
poetry add algokit-utils

Usage

To use this library simply include the following at the top of your file:

Terminal window
import algokit_utils

Then you can use intellisense to auto-complete the various functions and types that are available by typing algokit_utils. in your favourite Integrated Development Environment (IDE), or you can refer to the reference documentation.

Types

The library contains extensive type hinting combined with a tool like MyPy this can help identify issues where incorrect types have been used, or used incorrectly.

Reference documentation

We have auto-generated reference documentation for the code.

Roadmap

This library will naturally evolve with any logical developer experience improvements needed to facilitate the AlgoKit roadmap as it evolves.

Likely future capability additions include:

  • Typed application client
  • Asset management
  • Expanded indexer API wrapper support