libcapella


Namelibcapella JSON
Version 1.0.18 PyPI version JSON
download
home_pageNone
SummaryCouchbase Capella Python API
upload_time2024-10-31 13:39:57
maintainerNone
docs_urlNone
authorMichael Minichino
requires_python<4,>=3.8
licenseNone
keywords couchbase capella api
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "libcapella",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4,>=3.8",
    "maintainer_email": null,
    "keywords": "couchbase, capella, api",
    "author": "Michael Minichino",
    "author_email": "info@unix.us.com",
    "download_url": "https://files.pythonhosted.org/packages/c9/17/4c42ad5e00d305aa8893948d8b5b41f7836e163b2d127ae3caea0b17bc58/libcapella-1.0.18.tar.gz",
    "platform": null,
    "description": "# libcapella 1.0.18\n\n## Installing\n```\n$ pip install libcapella\n```\n\nCreate Capella database:\n```\ndatabase_name = \"test-cluster\"\nproject_name = \"test-project\"\nemail = 'john.doe@example.com'\nconfig = CapellaConfig(profile=\"default\")\norg = CapellaOrganization(config)\nproject = CapellaProject(org, project_name, email)\ndatabase = CapellaDatabase(project, database_name)\nbuilder = CapellaDatabaseBuilder(\"aws\")\nbuilder = builder.name(database_name)\nbuilder = builder.description(\"Test cluster\")\nbuilder = builder.region(\"us-east-1\")\nbuilder = builder.service_group(\"4x16\", 3, 256)\nconfig = builder.build()\ndatabase.create(config)\n```\n\n## Credentials Directory\nAutomation 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.\n```\n.capella\n\u251c\u2500\u2500 credentials\n\u251c\u2500\u2500 default-api-key-token.txt\n\u251c\u2500\u2500 project-api-key-token.txt\n\u2514\u2500\u2500 test-api-key-token.txt\n```\nCredentials file format:\n```\n[default]\napi_host = cloudapi.cloud.couchbase.com\ntoken_file = default-api-key-token.txt\naccount_email = john.doe@example.com\n\n[project]\ntoken_file = project-api-key-token.txt\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Couchbase Capella Python API",
    "version": "1.0.18",
    "project_urls": {
        "Homepage": "https://github.com/mminichino/capella-api"
    },
    "split_keywords": [
        "couchbase",
        " capella",
        " api"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "76166e6ad5d15a3765774c9c4a9ce2bfb2bec677b8d71c6b818fd15d0e042e9a",
                "md5": "c8420da87d36bb32410d764208a6db31",
                "sha256": "450786a5216cc2530eb50d31022f70c161a34de73edf64d4438913fa09affa44"
            },
            "downloads": -1,
            "filename": "libcapella-1.0.18-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c8420da87d36bb32410d764208a6db31",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4,>=3.8",
            "size": 29156,
            "upload_time": "2024-10-31T13:39:56",
            "upload_time_iso_8601": "2024-10-31T13:39:56.696734Z",
            "url": "https://files.pythonhosted.org/packages/76/16/6e6ad5d15a3765774c9c4a9ce2bfb2bec677b8d71c6b818fd15d0e042e9a/libcapella-1.0.18-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c9174c42ad5e00d305aa8893948d8b5b41f7836e163b2d127ae3caea0b17bc58",
                "md5": "4fe5b14c6f1d9526c49423334d3c79e9",
                "sha256": "45c0307041aa65ec09ee5c769adefaba27200317c72294a3f9fb12afa1b6b76e"
            },
            "downloads": -1,
            "filename": "libcapella-1.0.18.tar.gz",
            "has_sig": false,
            "md5_digest": "4fe5b14c6f1d9526c49423334d3c79e9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4,>=3.8",
            "size": 16904,
            "upload_time": "2024-10-31T13:39:57",
            "upload_time_iso_8601": "2024-10-31T13:39:57.908689Z",
            "url": "https://files.pythonhosted.org/packages/c9/17/4c42ad5e00d305aa8893948d8b5b41f7836e163b2d127ae3caea0b17bc58/libcapella-1.0.18.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-31 13:39:57",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mminichino",
    "github_project": "capella-api",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "libcapella"
}
        
Elapsed time: 0.87206s