Skip to content

astraly-labs/pragma-sdk

Repository files navigation

Pragma SDK

codecov

Tests

Package

Read the Docs


Pragma SDK, written in Python.

One can leverage this SDK to interact with Pragma on Starknet. This SDK should also be used by Data Providers willing to push data on Pragma contracts.

About

For more information, see the project's repository, documentation overview and documentation on how to publish data.

Repository Structure

Our main SDK:

Our utility library:

Our services used to publish data etc...:

Releasing a new version

We provide a version management script to help maintain consistent versioning across all packages.

Installation

  1. Make the script executable:
chmod +x scripts/version.sh

Usage

Run the version checker:

bash scripts/version.sh

The script will:

  • Fetch the latest version from PyPI

  • Check all local package versions

  • Display the current version status

  • Offer options to:

Bump the major version (x.y.z → x+1.0.0)
Bump the minor version (x.y.z → x.y+1.0)
Bump the patch version (x.y.z → x.y.z+1)

The script will automatically update all __init__.py files in the following packages:

.
    └── pragma-sdk
        ├── pragma-sdk
        ├── pragma-utils
        ├── merkle-maker
        ├── price-pusher
        ├── vrf-listener
        └── lp-pricer

Note: Make sure to commit and push the version changes after running the script.

Contributing

See the CONTRIBUTING guide.