Skip to main content

A python SDK for the Module API

Project description

Module Python SDK (Non official)

About Module

Module is providing endpoints to democratize access to existing data on a free and open blockchain. With Module, data is made available to developers without the hassle of creating custom data pipelines or running a full Ethereum node.

We do this by providing endpoints to data that is normally difficult for the average developer to obtain quickly, such as bulk NFT listings and sales data. We hope to empower builders by maintaining high rate limits on our free plan, so anyone can benefit from our API.

Leave the heavy lifting to us. Ship faster using Module’s diverse set of endpoints for all things NFT.

Information

Some methods have names that differ from their api counterparts on the documentation as a result of consistency for the SDK.

Features

Have a specific feature that you want added? Open a ticket in their discord and they can discuss building it for you!

Feedback/Issues

We welcome feedback and pull requests! Either open a ticket in they discord or open an issue on the repo and we can look into it!

Getting Started

This module requires Python 3 or later. Python 3

pip install module_sdk

After installing the SDK, import it using the following code

from module_sdk import Module

api_key = 'Your api key' # Module API Key. Not required, however rate limits will apply.

# Create a new instance of the SDK
client = Module(api_key=api_key)

SDK Usage

All methods are exposed through their own classes. There are four usable classes as shown below

from module_sdk import Module
client = Module()

client.eth # Ethereum Methods
client.nft # NFT Methods
client.centra # Central Methods
client.metadata # Metadata Methods

Method Documentation

Refer below for information on each classes methods.

Examples

Getting azuki collection info

from module_sdk import Module

client = Module()
collectionInfo = client.nft.getCollectionInfo({slug: 'azuki'})

Getting azuki contract abi

from module_sdk import Module

client = Module()
abi = client.metadata.getContractABI({contractAddress:'0xed5af388653567af2f388e6224dc7c4b3241c544'})

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

module_sdk-0.1.0.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file module_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: module_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for module_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0796f751d19e5512697410efd9bb8f30f8fb56d0b83240d29849ca7f38ef04b6
MD5 5543e37956e1cb2bc9f901ab6c0f2387
BLAKE2b-256 266c031b4394bb74bbb84e06a680f4257d65245a8ff2e3599a62fec6016f967b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page