Skip to main content

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

Metadata

Release files for c2client 0.27

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for c2client 0.27
File Size Uploaded
c2client-0.27.tar.gz 8.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for c2client 0.27
File Interpreter ABI Platform
c2client-0.27-py3-none-any.whl Python 3 none any Details

Total release size: 16.2 kB

Release files / c2client-0.27.tar.gz

Download URL c2client-0.27.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4bf85779b417ac4ccdb791f839bc0b64bef60429127c7d81003458ba358a164e
BLAKE2b-256 checksum
How to use checksums
0bc3dcc8c445023013b6574ef7e7dd348a8f0edc8f1b39c952059b3aafae0ed4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / c2client-0.27-py3-none-any.whl

Download URL c2client-0.27-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
75350510fa8c449f82bc3bd5b264521a9d0a50135a919b5bfa1d411fd6ef76f3
BLAKE2b-256 checksum
How to use checksums
a586d13c88941646e219d14dc20e59377c451187ae783ca25a6f5f91d06b4825
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.27 This release

2 release files

0.26

2 release files

0.25

2 release files

0.24

2 release files

0.23

2 release files

0.22

2 release files

0.21

2 release files

0.20

2 release files

0.19

2 release files

0.18

2 release files

0.17

2 release files

0.16

2 release files

0.14

2 release files

0.13

2 release files

0.11

3 release files

0.10

2 release files

0.9

2 release files

0.8

2 release files

0.7

2 release files

0.6

2 release files

0.5.2

1 release file

0.5

2 release files

0.4

2 release files

0.3

2 release files

0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page