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 requests for the Dedicated Services/Dedicated Servers API The next step is to add appropriate tests for all methods implemented.

Once all of the Dedicated Servers API is implemented, it will be decided with which category we continue.

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.1.tar.gz (21.7 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.1-py3-none-any.whl (27.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for leaseweb_api-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9ffed82c98c6f1f336d4e7e013867e3a68070969265b04ae6632f47aa91e578b
MD5 7a1b9479f18483d63c3196ec898b0f7e
BLAKE2b-256 cca938a730d799cd5d0950400674a8a02411f9cdf9c2b97999a5aaf711c19f6a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for leaseweb_api-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a2ee0d127860e34762ce19fc56569c67cccfe815add25466bc1e349f29adf66b
MD5 df95d165597eeb0e2437413bd2c88e8b
BLAKE2b-256 73aa686c690fb481d75de6d7eafe93b83642afb15f3b1a8992f084b0fdd90c60

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