{"id":13425620,"url":"https://github.com/algorand/pyteal","last_synced_at":"2025-05-16T11:02:29.067Z","repository":{"id":37005739,"uuid":"212449337","full_name":"algorand/pyteal","owner":"algorand","description":"Algorand Smart Contracts in Python","archived":false,"fork":false,"pushed_at":"2025-02-25T22:24:44.000Z","size":1717,"stargazers_count":291,"open_issues_count":60,"forks_count":134,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-05-13T18:50:01.355Z","etag":null,"topics":["algorand","avm","blockchain","cryptocurrency","python","python-language-binding","smart-contracts","teal"],"latest_commit_sha":null,"homepage":"https://pyteal.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/algorand.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-10-02T22:00:39.000Z","updated_at":"2025-05-04T09:35:47.000Z","dependencies_parsed_at":"2023-11-07T17:39:31.706Z","dependency_job_id":"aea5d224-23e6-47f7-96fc-11102f3af29a","html_url":"https://github.com/algorand/pyteal","commit_stats":{"total_commits":376,"total_committers":41,"mean_commits":9.170731707317072,"dds":0.7393617021276595,"last_synced_commit":"871e580ae2f4cc04cb4e208132f5cf9b67948982"},"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/algorand%2Fpyteal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/algorand%2Fpyteal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/algorand%2Fpyteal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/algorand%2Fpyteal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/algorand","download_url":"https://codeload.github.com/algorand/pyteal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254518383,"owners_count":22084374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["algorand","avm","blockchain","cryptocurrency","python","python-language-binding","smart-contracts","teal"],"created_at":"2024-07-31T00:01:15.659Z","updated_at":"2025-05-16T11:02:29.049Z","avatar_url":"https://github.com/algorand.png","language":"Python","readme":" \u003c!-- markdownlint-disable-file MD041 --\u003e\n\n![PyTeal logo](https://github.com/algorand/pyteal/blob/master/docs/pyteal.png?raw=true)\n\n# PyTeal: Algorand Smart Contracts in Python\n\n[![Build Status](https://github.com/algorand/pyteal/actions/workflows/build.yml/badge.svg)](https://github.com/algorand/pyteal/actions)\n[![PyPI version](https://badge.fury.io/py/pyteal.svg)](https://badge.fury.io/py/pyteal)\n[![Documentation Status](https://readthedocs.org/projects/pyteal/badge/?version=latest)](https://pyteal.readthedocs.io/en/latest/?badge=latest)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\nPyTeal is a Python language binding for [Algorand Smart Contracts (ASC1s)](https://developer.algorand.org/docs/features/asc1/).\n\nAlgorand Smart Contracts are implemented using a new language that is stack-based,\ncalled [Transaction Execution Approval Language (TEAL)](https://developer.algorand.org/docs/features/asc1/teal/).\n\nHowever, TEAL is essentially an assembly language. With PyTeal, developers can express smart contract logic purely using Python.\nPyTeal provides high level, functional programming style abstractions over TEAL and does type checking at construction time.\n\n## Install\n\nPyTeal requires Python version \u003e= 3.10.\n\nIf your operating system (OS) Python version \u003c 3.10, we recommend:\n* Rather than override the OS Python version, install Python  \u003e= 3.10 alongside the OS Python version.\n* Use [pyenv](https://github.com/pyenv/pyenv#installation) or similar tooling to manage multiple Python versions.\n\n### Recommended: Install from PyPi\n\nInstall the latest official release from PyPi:\n\n* `pip install pyteal`\n\n### Install Latest Commit\n\nIf needed, it's possible to install directly from the latest commit on master to use unreleased features:\n\n\u003e **WARNING:** Unreleased code is experimental and may not be backwards compatible or function properly. Use extreme caution when installing PyTeal this way.\n\n* `pip install git+https://github.com/algorand/pyteal`\n\n## Documentation\n\n* [PyTeal Docs](https://pyteal.readthedocs.io/)\n* `docs/` ([README](docs/README.md)) contains raw docs.\n\n## Development Setup\n\nSetup venv (one time):\n\n* `python3 -m venv venv`\n\nActive venv:\n\n* `. venv/bin/activate` (if your shell is bash/zsh)\n* `. venv/bin/activate.fish` (if your shell is fish)\n\nPip install PyTeal in editable state with dependencies:\n\n* `make setup-development`\n* OR if you don't have `make` installed:\n  * `pip install -e . \u0026\u0026 pip install -r requirements.txt`\n\nFormat code:\n\n* `black .`\n\nLint using flake8:\n\n* `flake8 docs examples pyteal scripts tests *.py`\n\nType checking using mypy:\n\n* `mypy pyteal scripts`\n\nRun unit tests:\n\n* `pytest pyteal tests/unit`\n\nRun integration tests (assumes a developer-mode `algod` is available on port 4001):\n\n* `pytest tests/integration`\n\nStand up developer-mode algod on ports 4001, 4002 and `tealdbg` on port 9392 (assumes [Docker](https://www.docker.com/) is available on your system):\n\n* `docker-compose up -d`\n\nTear down and clean up resources for the developer-mode algod stood up above:\n\n* `docker-compose down`\n","funding_links":[],"categories":["Python","Development \u0026 Tools","Development Tools","Cryptocurrencies"],"sub_categories":["Smart Contract Development","Other Development Tools"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falgorand%2Fpyteal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falgorand%2Fpyteal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falgorand%2Fpyteal/lists"}