qbraid-cli


Nameqbraid-cli JSON
Version 0.9.3 PyPI version JSON
download
home_pageNone
SummaryCommand Line Interface for interacting with all parts of the qBraid platform.
upload_time2024-12-19 02:36:36
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseProprietary
keywords qbraid cli quantum cloud
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <img width="full" alt="qbraid_cli" src="https://qbraid-static.s3.amazonaws.com/logos/qbraid-cli-banner.png">

[![Documentation](https://img.shields.io/badge/Documentation-DF0982)](https://docs.qbraid.com/cli/user-guide/overview)
[![PyPI version](https://img.shields.io/pypi/v/qbraid-cli.svg?color=blue)](https://pypi.org/project/qbraid-cli/)
[![Python verions](https://img.shields.io/pypi/pyversions/qbraid-cli.svg?color=blue)](https://pypi.org/project/qbraid-cli/)
[![Downloads](https://static.pepy.tech/badge/qbraid-cli)](https://pepy.tech/project/qbraid-cli)
[![GitHub](https://img.shields.io/badge/issue_tracking-github-blue?logo=github)](https://github.com/qBraid/community/issues)
[![Stack Overflow](https://img.shields.io/badge/StackOverflow-qbraid-orange?logo=stackoverflow)](https://stackoverflow.com/questions/tagged/qbraid)

Command Line Interface for interacting with all parts of the qBraid platform.

The **qBraid CLI** is a versatile command-line interface tool designed for seamless interaction with qBraid cloud services and quantum software management tools. Initially exclusive to the [qBraid Lab](https://docs.qbraid.com/lab/user-guide/overview) platform, the CLI now supports local installations as well. This enhancement broadens access to features like [qBraid Quantum Jobs](https://docs.qbraid.com/cli/user-guide/quantum-jobs), enabling direct acess to QPU devices from leading providers like IonQ, Oxford Quantum Circuits, QuEra, Rigetti, and IQM, as well as on-demand simulators from qBraid and AWS, all using qBraid [credits](https://docs.qbraid.com/home/pricing), with no additional access keys required.

## Getting Started

The qBraid-CLI comes pre-installed and pre-configured in qBraid Lab:

- [Launch qBraid Lab &rarr;](https://lab.qbraid.com/)
- [Make an account &rarr;](https://account.qbraid.com/)

For help, see qBraid Lab User Guide: [Getting Started](https://docs.qbraid.com/lab/user-guide/getting-started).

You can also install the qBraid-CLI from PyPI with:

```bash
pip install qbraid-cli
```

## Local configuration

After installation, you must configure your account credentials to use the CLI locally:

1. Create a qBraid account or log in to your existing account by visiting
   [account.qbraid.com](https://account.qbraid.com/)
2. Copy your API Key token from the left side of
    your [account page](https://account.qbraid.com/):
3. Save your API key from step 2 in local configuration file `~/.qbraid/qbraidrc` using:

```bash
$ qbraid configure
```

## Basic Commands

```bash
$ qbraid
----------------------------------
  * Welcome to the qBraid CLI! * 
----------------------------------

        ____            _     _  
   __ _| __ ) _ __ __ _(_) __| | 
  / _` |  _ \| '__/ _` | |/ _` | 
 | (_| | |_) | | | (_| | | (_| | 
  \__,_|____/|_|  \__,_|_|\__,_| 
     |_|                         


- Use 'qbraid --help' to see available commands.

- Use 'qbraid --version' to see the current version.

Reference Docs: https://docs.qbraid.com/cli/api-reference/qbraid
```

A qBraid CLI command has the following structure:

```bash
$ qbraid <command> <subcommand> [options and parameters]
```

For example, to list installed environments, the command would be:

```bash
$ qbraid envs list
```

To view help documentation, use one of the following:

```bash
$ qbraid --help
$ qbraid <command> --help
$ qbraid <command> <subcommand> --help
```

For example:

```bash
$ qbraid --help

Usage: qbraid [OPTIONS] COMMAND [ARGS]...

The qBraid CLI.

Options
  --version                     Show the version and exit.
  --install-completion          Install completion for the current shell.
  --show-completion             Show completion for the current shell, to copy it or customize the installation.
  --help                        Show this message and exit.

Commands
  configure                     Configure qBraid CLI options.
  account                       Manage qBraid account.
  devices                       Manage qBraid quantum devices.
  envs                          Manage qBraid environments.
  jobs                          Manage qBraid quantum jobs.
  kernels                       Manage qBraid kernels.
```

To get the version of the qBraid CLI:

```bash
$ qbraid --version
```

## Magic Commands

You can also access the CLI directly from within [Notebooks](https://docs.qbraid.com/lab/user-guide/notebooks) using IPython [magic commands](https://ipython.readthedocs.io/en/stable/interactive/magics.html). First, configure the qBraid magic commands extension using:

```bash
$ qbraid configure magic
```

The above command can also be executed from within a Jupyter notebook using the ``!`` operator. Then, from within a notebook cell, load the qBraid magic IPython extension using:

```python
In [1]: %load_ext qbraid_magic
```

Now you can continue to use the qBraid-CLI as normal from within your Jupyter notebook using the magic ``%`` operator, e.g.

```python
In [2]: %qbraid jobs state

In [3]: %qbraid jobs enable braket -y
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "qbraid-cli",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "qbraid, cli, quantum, cloud",
    "author": null,
    "author_email": "qBraid Development Team <contact@qbraid.com>",
    "download_url": "https://files.pythonhosted.org/packages/af/93/6e061c5e7689ec21be64f4d39d5b104a1a4c0e7a4c8f94e2ecc7db10ea39/qbraid_cli-0.9.3.tar.gz",
    "platform": null,
    "description": "<img width=\"full\" alt=\"qbraid_cli\" src=\"https://qbraid-static.s3.amazonaws.com/logos/qbraid-cli-banner.png\">\n\n[![Documentation](https://img.shields.io/badge/Documentation-DF0982)](https://docs.qbraid.com/cli/user-guide/overview)\n[![PyPI version](https://img.shields.io/pypi/v/qbraid-cli.svg?color=blue)](https://pypi.org/project/qbraid-cli/)\n[![Python verions](https://img.shields.io/pypi/pyversions/qbraid-cli.svg?color=blue)](https://pypi.org/project/qbraid-cli/)\n[![Downloads](https://static.pepy.tech/badge/qbraid-cli)](https://pepy.tech/project/qbraid-cli)\n[![GitHub](https://img.shields.io/badge/issue_tracking-github-blue?logo=github)](https://github.com/qBraid/community/issues)\n[![Stack Overflow](https://img.shields.io/badge/StackOverflow-qbraid-orange?logo=stackoverflow)](https://stackoverflow.com/questions/tagged/qbraid)\n\nCommand Line Interface for interacting with all parts of the qBraid platform.\n\nThe **qBraid CLI** is a versatile command-line interface tool designed for seamless interaction with qBraid cloud services and quantum software management tools. Initially exclusive to the [qBraid Lab](https://docs.qbraid.com/lab/user-guide/overview) platform, the CLI now supports local installations as well. This enhancement broadens access to features like [qBraid Quantum Jobs](https://docs.qbraid.com/cli/user-guide/quantum-jobs), enabling direct acess to QPU devices from leading providers like IonQ, Oxford Quantum Circuits, QuEra, Rigetti, and IQM, as well as on-demand simulators from qBraid and AWS, all using qBraid [credits](https://docs.qbraid.com/home/pricing), with no additional access keys required.\n\n## Getting Started\n\nThe qBraid-CLI comes pre-installed and pre-configured in qBraid Lab:\n\n- [Launch qBraid Lab &rarr;](https://lab.qbraid.com/)\n- [Make an account &rarr;](https://account.qbraid.com/)\n\nFor help, see qBraid Lab User Guide: [Getting Started](https://docs.qbraid.com/lab/user-guide/getting-started).\n\nYou can also install the qBraid-CLI from PyPI with:\n\n```bash\npip install qbraid-cli\n```\n\n## Local configuration\n\nAfter installation, you must configure your account credentials to use the CLI locally:\n\n1. Create a qBraid account or log in to your existing account by visiting\n   [account.qbraid.com](https://account.qbraid.com/)\n2. Copy your API Key token from the left side of\n    your [account page](https://account.qbraid.com/):\n3. Save your API key from step 2 in local configuration file `~/.qbraid/qbraidrc` using:\n\n```bash\n$ qbraid configure\n```\n\n## Basic Commands\n\n```bash\n$ qbraid\n----------------------------------\n  * Welcome to the qBraid CLI! * \n----------------------------------\n\n        ____            _     _  \n   __ _| __ ) _ __ __ _(_) __| | \n  / _` |  _ \\| '__/ _` | |/ _` | \n | (_| | |_) | | | (_| | | (_| | \n  \\__,_|____/|_|  \\__,_|_|\\__,_| \n     |_|                         \n\n\n- Use 'qbraid --help' to see available commands.\n\n- Use 'qbraid --version' to see the current version.\n\nReference Docs: https://docs.qbraid.com/cli/api-reference/qbraid\n```\n\nA qBraid CLI command has the following structure:\n\n```bash\n$ qbraid <command> <subcommand> [options and parameters]\n```\n\nFor example, to list installed environments, the command would be:\n\n```bash\n$ qbraid envs list\n```\n\nTo view help documentation, use one of the following:\n\n```bash\n$ qbraid --help\n$ qbraid <command> --help\n$ qbraid <command> <subcommand> --help\n```\n\nFor example:\n\n```bash\n$ qbraid --help\n\nUsage: qbraid [OPTIONS] COMMAND [ARGS]...\n\nThe qBraid CLI.\n\nOptions\n  --version                     Show the version and exit.\n  --install-completion          Install completion for the current shell.\n  --show-completion             Show completion for the current shell, to copy it or customize the installation.\n  --help                        Show this message and exit.\n\nCommands\n  configure                     Configure qBraid CLI options.\n  account                       Manage qBraid account.\n  devices                       Manage qBraid quantum devices.\n  envs                          Manage qBraid environments.\n  jobs                          Manage qBraid quantum jobs.\n  kernels                       Manage qBraid kernels.\n```\n\nTo get the version of the qBraid CLI:\n\n```bash\n$ qbraid --version\n```\n\n## Magic Commands\n\nYou can also access the CLI directly from within [Notebooks](https://docs.qbraid.com/lab/user-guide/notebooks) using IPython [magic commands](https://ipython.readthedocs.io/en/stable/interactive/magics.html). First, configure the qBraid magic commands extension using:\n\n```bash\n$ qbraid configure magic\n```\n\nThe above command can also be executed from within a Jupyter notebook using the ``!`` operator. Then, from within a notebook cell, load the qBraid magic IPython extension using:\n\n```python\nIn [1]: %load_ext qbraid_magic\n```\n\nNow you can continue to use the qBraid-CLI as normal from within your Jupyter notebook using the magic ``%`` operator, e.g.\n\n```python\nIn [2]: %qbraid jobs state\n\nIn [3]: %qbraid jobs enable braket -y\n```\n",
    "bugtrack_url": null,
    "license": "Proprietary",
    "summary": "Command Line Interface for interacting with all parts of the qBraid platform.",
    "version": "0.9.3",
    "project_urls": {
        "Bug Tracker": "https://github.com/qBraid/community/issues",
        "Discord": "https://discord.gg/KugF6Cnncm",
        "Documentation": "https://docs.qbraid.com/cli/api-reference/qbraid",
        "Homepage": "https://docs.qbraid.com/cli/user-guide/overview"
    },
    "split_keywords": [
        "qbraid",
        " cli",
        " quantum",
        " cloud"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7f98e8b5356858536fb510fe1ba1798064b9eec03b2ca7b7b74e2f9e20042b8d",
                "md5": "a162ede8c30361b479b8fb9822a3eb5c",
                "sha256": "ba8b409fc4f8b37a57d99858ccb66ebdee4356a567380feda07e596fb18131dc"
            },
            "downloads": -1,
            "filename": "qbraid_cli-0.9.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a162ede8c30361b479b8fb9822a3eb5c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 38578,
            "upload_time": "2024-12-19T02:36:33",
            "upload_time_iso_8601": "2024-12-19T02:36:33.627645Z",
            "url": "https://files.pythonhosted.org/packages/7f/98/e8b5356858536fb510fe1ba1798064b9eec03b2ca7b7b74e2f9e20042b8d/qbraid_cli-0.9.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "af936e061c5e7689ec21be64f4d39d5b104a1a4c0e7a4c8f94e2ecc7db10ea39",
                "md5": "3adf8a96580a846268cf77e76d485ccd",
                "sha256": "77f5ef2dfd700e2696884a2f64ddb016c9c36fb1b0096d6f2a6a69d2f864d610"
            },
            "downloads": -1,
            "filename": "qbraid_cli-0.9.3.tar.gz",
            "has_sig": false,
            "md5_digest": "3adf8a96580a846268cf77e76d485ccd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 220765,
            "upload_time": "2024-12-19T02:36:36",
            "upload_time_iso_8601": "2024-12-19T02:36:36.090108Z",
            "url": "https://files.pythonhosted.org/packages/af/93/6e061c5e7689ec21be64f4d39d5b104a1a4c0e7a4c8f94e2ecc7db10ea39/qbraid_cli-0.9.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-19 02:36:36",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "qBraid",
    "github_project": "community",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "qbraid-cli"
}
        
Elapsed time: 0.40851s