Skip to main content

Python SDK for interacting with the Official Hello Moon APIs - https://hellomoon.readme.io/reference/get-your-api-key

Project description

Hello Moon Python SDK

Python SDK for interacting with the Official HelloMoon APIs - https://hellomoon.readme.io/.

Installation

Installing Using PIP (Recommended)

pip install hellomoon

Installing from Source

  1. Clone the repository: git clone https://github.com/vmpyre/hellomoon_sdk.git

  2. Change into the project directory: cd hellomoon_sdk

  3. Install the dependencies: pip install -r requirements.txt

Usage

First, import the SDK's classes for the APIs you'd like to use.

>> from hellomoon import NFTSummary

Then, create instances of the classes to interact with the corresponding API endpoints (in this case the NFT class):

>> nft_api = NFT("<API_KEY_HERE>")

Generate your API Key from here: https://hellomoon.readme.io/reference/get-your-api-key

For example, you can use the collection_stats() method of the NFTSummary class to retrieve descriptive statistics of NFT collections:

>> solana_monkey_business = "d515305e2b1de0026b5bf49fbb12e107
>> nft_api.collection_stats(helloMoonCollectionId=solana_monkey_business)

That's it!

Response:

{
  "data": [
    {
      "name": "Solana Monkey Business",
      "helloMoonCollectionId": "d515305e2b1de0026b5bf49fbb12e107",
      "slug": "solana-monkey-business",
      "supply": "5000",
      "currentOwnerCount": "2790",
      "avgPriceSol": "232.073169",
      "volume24Hr": "1856.585355",
      "volumeChange24Hr": "0.511200",
      "marketCapSol": "1158741.332817",
      "averageWashScore": "7.0574",
      "listingCount": "366",
      "mintPriceMode": null,
      "narrative": null
    }
  ],
  "paginationToken": "eyJuYW1lIjoiU29sYW5hIE1vbmtleSBCdXNpbmVzcyIsImhlbGxvTW9vbkNvbGxlY3Rpb25JZCI6ImQ1MTUzMDVlMmIxZGUwMDI2YjViZjQ5ZmJiMTJlMTA3In0="
}

The SDK provides functionality for interacting with all endpoints mentioned here: https://hellomoon.readme.io/

Documentation

You can view the class methods below:

NFT

NFTSummary

See the Official Hello Moon documentation for additional information: https://hellomoon.readme.io/

Contribution

Feel free to open issues, pull requests and submit feedback. We appreciate your help!

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

Thanks to the Hello Moon team for providing an amazing product.

Disclaimer

The developer is not responsible for any errors or issues that may occur when using this SDK. Use at your own risk and feel free to report issues.

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

hellomoon-0.0.2.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hellomoon-0.0.2-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file hellomoon-0.0.2.tar.gz.

File metadata

  • Download URL: hellomoon-0.0.2.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for hellomoon-0.0.2.tar.gz
Algorithm Hash digest
SHA256 12f6a7ba2a8e7ab2ff99ef3a686554905ea5eee2374d50907b724133e3ea3d91
MD5 8a4d0f212b7a567cd6fe7c544c5ea738
BLAKE2b-256 ed920a546acfa5b643d561b64ca530df0ab4cdb3a5838f242556d35ad73fc4b9

See more details on using hashes here.

File details

Details for the file hellomoon-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: hellomoon-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for hellomoon-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e0e234c705d67624874469f0d96919f70e9c23242decce9f9c6adeb9618259db
MD5 bd99328b5eda38a0396c0f9f7f50f047
BLAKE2b-256 bc1d2da1720c7c714460a8e576d3c4b2582dcf4837e256320a4a71afb1ca5410

See more details on using hashes here.

Supported by

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