Metadata-Version: 2.1
Name: zetamarkets-py
Version: 0.1.1
Summary: Python SDK for Zeta Markets
Home-page: https://github.com/zetamarkets/zeta-py
License: Apache-2.0
Author: Tristan0x
Author-email: tristan@sierra.team
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: anchorpy (>=0.18.0,<0.19.0)
Requires-Dist: requests (>=2.31.0,<3.0.0)
Requires-Dist: solana (>=0.30.2,<0.31.0)
Requires-Dist: solders (>=0.18.1,<0.19.0)
Project-URL: Repository, https://github.com/zetamarkets/zeta-py
Description-Content-Type: text/markdown

<div align="center">
  <img height="120px" src="./logos/zeta.svg" />

  <h1 style="margin-top: 0px">Zeta Python SDK 🐍</h1>

  <p>
    <a href="https://discord.gg/dD7YREfBkR"
      ><img
        alt="Discord Chat"
        src="https://img.shields.io/discord/841556000632078378?color=blueviolet"
    /></a>
    <a href="https://opensource.org/licenses/Apache-2.0"
      ><img
        alt="License"
        src="https://img.shields.io/badge/License-Apache%202.0-blueviolet"
    /></a>
  </p>
</div>

## Installation

### Install from Pypi

```sh
pip install zetamarkets_py
```

### Install from source

```sh
poetry install
```

## Usage

### Setting up a Solana wallet

Please follow the instructions here to setup a Solana wallet: https://docs.solana.com/wallet-guide/file-system-wallet.
By default the SDK will look for the wallet at `~/.config/solana/id.json`

### Running the examples

Run the various code examples provided in the [examples](./zeta_py/examples) directory.

## Development

### Formatting

We use [black](https://github.com/psf/black) with [isort](https://github.com/PyCQA/isort) for formatting.

```sh
poetry format
```

### Lint

We use [ruff](https://github.com/astral-sh/ruff) for linting.

```sh
poetry lint
```

