Skip to content
This repository has been archived by the owner on Aug 17, 2023. It is now read-only.

Latest commit

 

History

History
38 lines (25 loc) · 770 Bytes

developers.md

File metadata and controls

38 lines (25 loc) · 770 Bytes

Developing pdr-utils

This README provides instructions for setting up the development environment and testing the library.

Installation from source

In a new terminal:

# clone the repo and enter into it
git clone https://github.com/oceanprotocol/pdr-utils
cd pdr-utils

# Create & activate venv
python -m venv venv
source venv/bin/activate

# Install modules in the environment
pip3 install -r requirements.txt

Testing

To run the tests, use the following command in the terminal:

pytest

Example Usage

You can interact with pdr-utils in Python. Launch a Python console from the same terminal:

Then, in the Python console, you can use the library like this:

from pdr_utils.subgraph import query_subgraph