Skip to main content

Client for uploading and managing Functions in CIM Database Cloud.

Project description

CONTACT Logo Functions-Client

This CLI tool is used for uploading and managing Functions in CIM Database Cloud.

Information on how build Functions can be found in the Functions-SDK documentation: https://cslab.github.io/functions-sdk-python/

Requirements

Python 3.10+

Installation

$ pip install contactsoftware-functions-client

Login

Before you can create environments or deploy Functions you need to login using your client-id and secret. Obtain your client credentials via the CONTACT Portal.

$ cfc login --client-id <client_id> --client-secret <client_secret>

The credentials will be stored in a configuration file. The storage location of the configuration file depends on the OS:

  • Windows: C:\Users\<username>\AppData\Local\Contact\cfc\config.ini
  • Linux: ~/.config/cfc/config.ini

Features

Manage Function environments

Functions are grouped into environments, which are the (Docker) container the code runs in. An environment contains a runtime for its specific programming language, the Function code and a configuration file describing the environment.

Create a new environment:

$ cfc env create <environment_name>

Display a list of all environments:

$ cfc env list

Display the details of an environment:

$ cfc env describe <environment_name>

Deploy Function code into an environment

To deploy Function code into an existing environment run:

$ cfc env deploy <environment_name>

Make sure you run the command from within the directory that contains the environment.yaml configuration file.

Information on how to build Function code can be found in the documentation of the Functions-SDK: https://cslab.github.io/functions-sdk-python/

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

Built Distribution

File details

Details for the file contactsoftware_functions_client-0.5.2.tar.gz.

File metadata

File hashes

Hashes for contactsoftware_functions_client-0.5.2.tar.gz
Algorithm Hash digest
SHA256 780d0798bbda73aecda834e44b0b6340b17553f330985329907fb66a40a316c7
MD5 b4068641b39fea6087b27964bff59543
BLAKE2b-256 992006ad29d3b510fd052e9d7cd32a71312f312c51382c2929b5643bb37017a9

See more details on using hashes here.

File details

Details for the file contactsoftware_functions_client-0.5.2-py3-none-any.whl.

File metadata

File hashes

Hashes for contactsoftware_functions_client-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ce11b00bbfadcef6d6f57cc9a6d82e036c4b053bb366103bf104591d9b8989c3
MD5 f48221fa3e7f610d433d60c857c8d087
BLAKE2b-256 fcd3387ce9d455bf741671c8d62413c79eca2a658897263c09527b50439fa2b2

See more details on using hashes here.

Supported by

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