Skip to main content

RockitCloud Platform - API Client

Project description

Simple command-line utility for sending custom requests to K2 Cloud platform.

Warning: this utility is not intended for automation cases. Use https://github.com/c2devel/boto3.git and python scripts instead.

Installation

C2client package relies on forked versions of boto3 and botocore from the C2Devel/boto3 and C2Devel/botocore repositories. For isolated use our dependencies, it is highly recommended to use a virtual environment.

  1. Clone the repository

    git clone https://github.com/C2Devel/c2-client.git && cd c2-client
  2. Setup the virtual environment(Unix based system)

    python3 -m venv .venv && source .venv/bin/activate
  3. Install the package in editable mode along with dependencies from requirements.txt

    pip install -e . -r requirements.txt

Usage

$ c2-ec2 --help
usage: c2-ec2 [-h] action [parameters [parameters ...]]

positional arguments:
   action          The action that you want to perform.
   parameters      Any parameters for the action. Parameters specified by parameter
                   key and parameter value separated by space.

optional arguments:
   -h, --help      show this help message and exit
   --no-verify-ssl disable verifying ssl certificate

Common request syntax:

$ c2-ec2 <action> <arg1> <value1> <arg2> <value2>

Example

Send simple request:

$ c2-ec2 RunInstances ImageId cmi-078880A0 Description "Test instance" \
InstanceType m1.small MaxCount 1 MinCount 1 SecurityGroup.1 test

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

c2client-0.27.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

c2client-0.27-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file c2client-0.27.tar.gz.

File metadata

  • Download URL: c2client-0.27.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for c2client-0.27.tar.gz
Algorithm Hash digest
SHA256 4bf85779b417ac4ccdb791f839bc0b64bef60429127c7d81003458ba358a164e
MD5 d5005ffda3f27595ab0915e0ff030fe3
BLAKE2b-256 0bc3dcc8c445023013b6574ef7e7dd348a8f0edc8f1b39c952059b3aafae0ed4

See more details on using hashes here.

File details

Details for the file c2client-0.27-py3-none-any.whl.

File metadata

  • Download URL: c2client-0.27-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for c2client-0.27-py3-none-any.whl
Algorithm Hash digest
SHA256 75350510fa8c449f82bc3bd5b264521a9d0a50135a919b5bfa1d411fd6ef76f3
MD5 9338c08f0d57a7aee19ead71b3e2886f
BLAKE2b-256 a586d13c88941646e219d14dc20e59377c451187ae783ca25a6f5f91d06b4825

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page