Skip to main content

Scaleway API

This is an unofficial wrapper around the Scaleway APIs based on Hammock.

Usage

from scaleway_api import Scaleway

scw = Scaleway("nl-ams", "<SECRET KEY>")
servers = scw.instance.servers.GET()

for server in servers.json().get("servers", {}):
    print(f'Server Name: {server["name"]}')

Environment Variables

The Scaleway API will try to pull the following environment variables for convencience.

Environment Variable Description
SCW_SECRET_KEY Your Scaleway key. More information can be found in Scaleway's documentation
SCW_DEFAULT_REGION Should be either nl-ams or fr-par (Default: fr-par)
SCW_DEFAULT_ZONE Should be either nl-ams-1 or fr-par-1 (Default: REGION-1 / fr-par-1)
SCW_API_VERSION Currently only v1 is available. Added to future-proof the library.

Development

Happy to receive pull requests.

Setup

python3 setup.py install
pip install -r requirements-dev.txt

Test

python3 setup.py test

Coverage Report

coverage run -m unittest discover && coverage report

Release files for scaleway-api 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scaleway-api 0.0.1
File Size Uploaded
scaleway-api-0.0.1.tar.gz 3.5 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for scaleway-api 0.0.1
File Interpreter ABI Platform
scaleway_api-0.0.1-py3.8.egg Legacy Egg format - - Details
scaleway_api-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 14.1 kB

Release files / scaleway-api-0.0.1.tar.gz

Download URL scaleway-api-0.0.1.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
181099c399cc5ab21d6d6e5d2ac32279043ff1d616e8e4d819d6ef4784b41f83
BLAKE2b-256 checksum
How to use checksums
e46089e3e1a8c411c1405da8a8a2fe89533b536ca085ca787297b24827ea7ae8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Release files / scaleway_api-0.0.1-py3.8.egg

Download URL scaleway_api-0.0.1-py3.8.egg
Size 5.5 kB
Tags Egg
SHA-256 checksum
How to use checksums
6c6c8aa67c1aaa4b579e56a441516cacb4f8e7d1d25eecb9779cc904faa60943
BLAKE2b-256 checksum
How to use checksums
ce2ece2558f83c0f1c26e7efa0189d51124d108ae419932531754a27968e7cdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Release files / scaleway_api-0.0.1-py3-none-any.whl

Download URL scaleway_api-0.0.1-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9a149f9e023a1fbb8928b243040b7317d1e1bd679b8d44b7448ea73e75e74ba
BLAKE2b-256 checksum
How to use checksums
c78530f982937e9371ce5555d820df9fdc51631034141e37ee3dfdaf9ce7222c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Release history Release notifications | RSS feed

This release

0.0.1 This release

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page