Metadata-Version: 2.1
Name: anchorpy
Version: 0.9.1
Summary: The Python Anchor client.
Home-page: https://github.com/kevinheavey/anchorpy
Author: kevinheavey
Author-email: kevinheavey123@gmail.com
Requires-Python: >=3.9,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.9
Provides-Extra: cli
Requires-Dist: apischema (>=0.16.6,<0.17.0)
Requires-Dist: autoflake (>=1.4,<2.0); extra == "cli"
Requires-Dist: black (>=22.3.0,<23.0.0); extra == "cli"
Requires-Dist: borsh-construct (>=0.1.0,<0.2.0)
Requires-Dist: construct-typing (>=0.5.1,<0.6.0)
Requires-Dist: genpy (>=2021.1,<2022.0); extra == "cli"
Requires-Dist: ipython (>=8.0.1,<9.0.0); extra == "cli"
Requires-Dist: jsonrpcclient (>=4.0.1,<5.0.0)
Requires-Dist: more-itertools (>=8.11.0,<9.0.0)
Requires-Dist: pyheck (>=0.1.4,<0.2.0)
Requires-Dist: pytest (>=6.2.5,<7.0.0)
Requires-Dist: pytest-asyncio (>=0.17.2,<0.18.0)
Requires-Dist: pytest-xprocess (>=0.18.1,<0.19.0)
Requires-Dist: solana (>=0.23.1,<0.23.3)
Requires-Dist: sumtypes (>=0.1a6,<0.2)
Requires-Dist: toolz (>=0.11.2,<0.12.0)
Requires-Dist: typer (==0.4.1); extra == "cli"
Requires-Dist: websockets (>=10.0,<11.0)
Requires-Dist: zstandard (>=0.17.0,<0.18.0)
Project-URL: Documentation, https://kevinheavey.github.io/anchorpy/
Project-URL: Repository, https://github.com/kevinheavey/anchorpy
Description-Content-Type: text/markdown

# AnchorPy
<div align="center">
    <img src="https://raw.githubusercontent.com/kevinheavey/anchorpy/main/docs/img/logo.png" width="40%" height="40%">
</div>

---

[![Discord Chat](https://img.shields.io/discord/889577356681945098?color=blueviolet)](https://discord.gg/sxy4zxBckh)  

AnchorPy is the gateway to interacting with [Anchor](https://github.com/project-serum/anchor) programs in Python.
It provides:

- A static client generator
- A dynamic client similar to `anchor-ts`
- A Pytest plugin
- A CLI with various utilities for Anchor Python development.

Read the [Documentation](https://kevinheavey.github.io/anchorpy/).



## Installation (requires Python >=3.9)

```sh
pip install anchorpy[cli]

```
Or, if you're not using the CLI features of AnchorPy you can just run `pip install anchorpy`.

### Development Setup

If you want to contribute to AnchorPy, follow these steps to get set up:

1. Install [poetry](https://python-poetry.org/docs/#installation)
2. Install dev dependencies:
```sh
poetry install

```
3. Install [nox-poetry](https://github.com/cjolowicz/nox-poetry) (note: do not use Poetry to install this, see [here](https://medium.com/@cjolowicz/nox-is-a-part-of-your-global-developer-environment-like-poetry-pre-commit-pyenv-or-pipx-1cdeba9198bd))
4. Activate the poetry shell:
```sh
poetry shell

```

