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.
Clone the repository
git clone https://github.com/C2Devel/c2-client.git && cd c2-clientSetup the virtual environment(Unix based system)
python3 -m venv .venv && source .venv/bin/activateInstall 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
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 c2client-0.26.tar.gz.
File metadata
- Download URL: c2client-0.26.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbf172d4c8876af5384458a9d1dc5d667ca49ae1eb515b01c91ecf444cb66277
|
|
| MD5 |
5e041be152400fdaf466e1e7b668371c
|
|
| BLAKE2b-256 |
32e2de8aa0580bd00eae6c3c00b52b406bfa3f824bd3b0fc34c235c8b20eda13
|
File details
Details for the file c2client-0.26-py3-none-any.whl.
File metadata
- Download URL: c2client-0.26-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
152172b439de9d6aead529e6d34b5d9ca2bba98e839a315e1e00c04d32fba23b
|
|
| MD5 |
196e9c8f067f8a8f08f5e95d955719f9
|
|
| BLAKE2b-256 |
8843c39848ac58ca9dbd9f7d5a6e2493deb76e2de1b533731f673d28060be1fd
|