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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| scaleway-api-0.0.1.tar.gz | 3.5 kB | Without provenance | Details for scaleway-api-0.0.1.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scaleway_api-0.0.1-py3.8.egg | Legacy Egg format | - | - | Details for scaleway_api-0.0.1-py3.8.egg |
| scaleway_api-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for scaleway_api-0.0.1-py3-none-any.whl |
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
|
Security for scaleway-api 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.