Skip to main content

DonutSMP Public API wrapper (C++ backend)

Project description

dsmp-api-wrapper

DonutSMP Public API wrapper with a C++ backend (libcurl + nlohmann/json) exposed to Python via pybind11. Uses persistent keep-alive connections for fast repeated polling.

Requirements

  • Python 3.8+
  • CMake 3.14+
  • libcurl (apt install libcurl4-openssl-dev)
  • nlohmann-json (apt install nlohmann-json3-dev)

Installation

pip install dsmp-api-wrapper

Usage

from dsmp_api_wrapper import Client

client = Client("your-api-key")

stats  = client.stats("SomePlayer")
lookup = client.lookup("SomePlayer")
top    = client.lb_kills()
auctions = client.auction_list(search="diamond", sort="lowest_price")

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

dsmp_api_wrapper-1.0.4.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

dsmp_api_wrapper-1.0.4-cp312-cp312-win_amd64.whl (340.8 kB view details)

Uploaded CPython 3.12Windows x86-64

File details

Details for the file dsmp_api_wrapper-1.0.4.tar.gz.

File metadata

  • Download URL: dsmp_api_wrapper-1.0.4.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for dsmp_api_wrapper-1.0.4.tar.gz
Algorithm Hash digest
SHA256 5826ea22c9488bd3877fb6d5476b8aa1f660892980b061a31d817c047ffb27f1
MD5 6482eaaaf1eae32cfe929a566e403317
BLAKE2b-256 201101c5438cc02d8bc584a77483a6b62bbafad7d24658b86f5de4c2ecacf36a

See more details on using hashes here.

File details

Details for the file dsmp_api_wrapper-1.0.4-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for dsmp_api_wrapper-1.0.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d00d1412b369ef9fe473a9b5c751b7393c0da1fd5f25eac5c385aa81c1dc9ed9
MD5 158bb50f425f64b3fc6c67b4f12ae724
BLAKE2b-256 5fc618e3d6576071e44c952860f9e42ced230ace28e4e64b0803b9355ae021f0

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