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

[!WARNING] If you are developing a function, you may want to talk to a non-default function-controller. You can set the URL via cfc login --service-url https://my-function-controller.domain or within the configuration file.

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

contactsoftware_functions_client-0.5.5.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

File details

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

File metadata

File hashes

Hashes for contactsoftware_functions_client-0.5.5.tar.gz
Algorithm Hash digest
SHA256 7b081ee3bf0618e4c4a558a1bf508dbe52b3fe61675be6c97d28b6ce5b78a05b
MD5 c93a18fe42a792d40321291a2b388ccf
BLAKE2b-256 54eaee7975f8b651704ec19dc9f031b814834cd6e2acc752c6cb248e2874c16f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for contactsoftware_functions_client-0.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 697d7ec2760c0b765447201fc0f90ad195b9e7567cb0cc888ae2fcabbb3a9f06
MD5 75ecd836b05c2038a00941a9f7cdfcf7
BLAKE2b-256 03f6c42bc5ca757901cad55de139e2c0af8855db4eeb6a8f32af5d89f689d95e

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