Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🐍 pythonic SDK for DoubleCloud API

License

NotificationsYou must be signed in to change notification settings

doublecloud/python-sdk

Repository files navigation

Wanna automate your DoubleCloud infrastructure with Python?Let's start.

Installation

Run the following in your terminal:

pip install doublecloud

Getting started

There are a couple of options for authorizing your requests:

  • Service Account Keys
  • Externally created IAM tokens.

Service Account Keys

# you can store and read it from a JSON filesa_key= {"id":"...","service_account_id":"...","private_key":"..."}sdk=doublecloud.SDK(service_account_key=sa_key)

For more information on how to create aservice account andauthorized keys, see theDoubleCloud documentation.

IAM tokens

sdk=doublecloud.SDK(iam_token="t1.9eu...")

Check theexamples directory for more examples.

For step-by-step instructions and examples of how to get anIAM token for your service account, see theDoubleCloud documentation.

How to contribute

Dependencies

  • Usemake venv command to install the library, its production and development dependencies.
  • Usemake submodule to fetch proto specifications.
  • Usemake generate to generate wrappers for gRPC services.

Dependencies for the code generator tool are specified inbuf.gen.yaml.

Formatting

Usemake format to autoformat code with various set of tools.

Tests

  • make test to run tests for current python version
  • make lint to run only linters for current python version
  • make tox-current to run all checks (tests + code style checks + linters + format check) for current python version
  • make tox to run all checks for all supported (installed in your system) python versions

Maintaining

If a pull request consists of several meaningful commits that should be preserved, use theRebase and merge option. Otherwise, useSquash and merge.

New release (changelog, tag and pypi upload) will be automatically created on each push to main viaGithub Actions workflow.

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp