Skip to main content

Leaseweb API Wrapper

Project description

Leaseweb Developer API Python Wrapper

An extended python api-wrapper for the Leaseweb Developer API. Supports all methods and types of responses.

Roadmap

The first step is to fully implement the Dedicated Services API. For now we have implemented all GET requests for the Dedicated Services/Dedicated Servers API

Installation

Via uv

$ uv sync
$ uv build
$ pip install -e .

Usage

from leaseweb_api import LeasewebAuthenticationProvider, DedicatedServices, DedicatedServers

auth = LeasewebAuthenticationProvider(api_token)

# Then u can either use the DedicatedServices Class
api = DedicatedServices(auth)
print(api.dedicated_servers.get_servers())

# or DedicatedServers directly
api = DedicatedServers(auth)
print(api.get_servers())

Credits

License

The MIT License (MIT). Please see License File for more information.

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

leaseweb_api-0.1.0.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

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

leaseweb_api-0.1.0-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: leaseweb_api-0.1.0.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.5

File hashes

Hashes for leaseweb_api-0.1.0.tar.gz
Algorithm Hash digest
SHA256 aec3ed853406546cf5c245ecf22469c032c61fd0a68a8a5df60ed35f89f45efd
MD5 a446386131b63388cf9dbfd1709c4b7e
BLAKE2b-256 12b24f64709c7c0e5c2201a5764f2fd5fb1b573859a9add7718b717479cf7f8d

See more details on using hashes here.

File details

Details for the file leaseweb_api-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for leaseweb_api-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1a26881799969473487bbd0cc65a5f56b0693afa9f473a8f4d581e9699de7aae
MD5 e7354f066460d0da6afe6664f1bd19de
BLAKE2b-256 715a558317a380775c11807b1c6dd326be3d4478f41a4dc9b7c38d1547c1f621

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