Metadata-Version: 2.1
Name: driftpy
Version: 0.6.31
Summary: A Python client for the Drift DEX
Home-page: https://github.com/drift-labs/driftpy
License: MIT
Author: x19
Author-email: https://twitter.com/0xNineteen@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Requires-Dist: anchorpy (==0.10.0)
Requires-Dist: mkdocs (>=1.3.0,<2.0.0)
Requires-Dist: pythclient (==0.1.2)
Requires-Dist: requests (>=2.28.1,<3.0.0)
Requires-Dist: solana (>=0.25.0,<0.26.0)
Requires-Dist: types-requests (>=2.28.9,<3.0.0)
Project-URL: Documentation, https://drift-labs.github.io/driftpy/
Description-Content-Type: text/markdown

# DriftPy

<div align="center">
    <img src="docs/img/drift.png" width="30%" height="30%">
</div>

DriftPy is the Python client for the [Drift](https://www.drift.trade/) protocol. It allows you to trade and fetch data from Drift using Python.

**[Read the full SDK documentation here!](https://drift-labs.github.io/driftpy/)**

## Installation

```
pip install driftpy
```

Note: requires Python >= 3.10.

## SDK Examples

- `examples/` folder includes more examples of how to use the SDK including how to provide liquidity/become an lp, stake in the insurance fund, etc.

## Setting Up Dev Env

`bash setup.sh`

## Running Unit Tests

`bash test.sh`

## Building the docs

Local Docs: `mkdocs serve` 

Updating public docs: `poetry run mkdocs gh-deploy --force`

## Releasing a new version of the package

- `python new_release.py`
- Create a new release at https://github.com/drift-labs/driftpy/releases.
  - (The CI process will upload a new version of the package to PyPI.)
