Couchbase Capella Python API
Project description
libcapella 1.0.20
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file libcapella-1.0.20.tar.gz.
File metadata
- Download URL: libcapella-1.0.20.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.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c3c61db4327c38623e8a1de3d1cd7a6607467a70f18c94e3803c376bf9f3257
|
|
| MD5 |
1d527958155d3238ee3796651723aee1
|
|
| BLAKE2b-256 |
bca071bc0eba2f1e26b5b75c969b3afae40f112fd777330f960304737c9a430f
|
File details
Details for the file libcapella-1.0.20-py3-none-any.whl.
File metadata
- Download URL: libcapella-1.0.20-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.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17bd6f28ecf4adaf7ee1fe7c88e87919e2768f74cd03f068c73824846ae637c8
|
|
| MD5 |
ce624e3f77cd05c5d9751f6390bb544e
|
|
| BLAKE2b-256 |
705623ac5f7f03cdb9a128c29357e9bcc49af9bae88ae6efaef0b79ec999fd30
|