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
Metadata
Release files for libcapella 1.0.20
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| libcapella-1.0.20.tar.gz | 16.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| libcapella-1.0.20-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 46.1 kB
Release files / libcapella-1.0.20.tar.gz
| Download URL | libcapella-1.0.20.tar.gz |
|---|---|
| Size | 16.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c3c61db4327c38623e8a1de3d1cd7a6607467a70f18c94e3803c376bf9f3257
|
|
BLAKE2b-256 checksum How to use checksums |
bca071bc0eba2f1e26b5b75c969b3afae40f112fd777330f960304737c9a430f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.7 Darwin/24.1.0
|
Release files / libcapella-1.0.20-py3-none-any.whl
| Download URL | libcapella-1.0.20-py3-none-any.whl |
|---|---|
| Size | 29.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
17bd6f28ecf4adaf7ee1fe7c88e87919e2768f74cd03f068c73824846ae637c8
|
|
BLAKE2b-256 checksum How to use checksums |
705623ac5f7f03cdb9a128c29357e9bcc49af9bae88ae6efaef0b79ec999fd30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.7 Darwin/24.1.0
|