Couchbase Capella Python API
Project description
libcapella 1.0.18
Installing
$ pip install libcapella
Create Capella database:
database_name = "test-cluster"
project_name = "test-project"
email = 'john.doe@example.com'
config = CapellaConfig(profile="default")
org = CapellaOrganization(config)
project = CapellaProject(org, project_name, email)
database = CapellaDatabase(project, database_name)
builder = CapellaDatabaseBuilder("aws")
builder = builder.name(database_name)
builder = builder.description("Test cluster")
builder = builder.region("us-east-1")
builder = builder.service_group("4x16", 3, 256)
config = builder.build()
database.create(config)
Credentials Directory
Automation for Capella leverages the v4 public API. To integrate the v4 API with libcapella
, create an API key in the Capella UI and save it to a file named default-api-key-token.txt
in a directory named .capella
in your home directory. Add the email associated with your Capella account to the credentials
file in the default
section.
.capella
├── credentials
├── default-api-key-token.txt
├── project-api-key-token.txt
└── test-api-key-token.txt
Credentials file format:
[default]
api_host = cloudapi.cloud.couchbase.com
token_file = default-api-key-token.txt
account_email = john.doe@example.com
[project]
token_file = project-api-key-token.txt
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
libcapella-1.0.18.tar.gz
(16.9 kB
view details)
Built Distribution
File details
Details for the file libcapella-1.0.18.tar.gz
.
File metadata
- Download URL: libcapella-1.0.18.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.7 Darwin/24.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45c0307041aa65ec09ee5c769adefaba27200317c72294a3f9fb12afa1b6b76e |
|
MD5 | 4fe5b14c6f1d9526c49423334d3c79e9 |
|
BLAKE2b-256 | c9174c42ad5e00d305aa8893948d8b5b41f7836e163b2d127ae3caea0b17bc58 |
File details
Details for the file libcapella-1.0.18-py3-none-any.whl
.
File metadata
- Download URL: libcapella-1.0.18-py3-none-any.whl
- Upload date:
- Size: 29.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.7 Darwin/24.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 450786a5216cc2530eb50d31022f70c161a34de73edf64d4438913fa09affa44 |
|
MD5 | c8420da87d36bb32410d764208a6db31 |
|
BLAKE2b-256 | 76166e6ad5d15a3765774c9c4a9ce2bfb2bec677b8d71c6b818fd15d0e042e9a |