Giter VIP home page Giter VIP logo

scaleway-api's Introduction

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

scaleway-api's People

Contributors

jonathanbaugh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.