Skip to main content

SDK for python serverless functions

Project description

Serverless cloud functions


  1. Quick Start
  2. Examples
  3. Features
  4. Community
  5. Licensing

Quick Start

  1. Install via pip:
    pip install sels8s
  2. Download file from Selectel panel
  3. Set environment variables: -OS_USERNAME - your username in panel -OS_PASSWORD - your password -OS_PROJECT_ID - your project id -OS_PROJECT_DOMAIN_NAME - your project domain name -OS_USER_DOMAIN_NAME - your user domain name
  4. Create your own cloud function:
    import sels8s
    serverless = sels8s.Serverless()
    # upload file
    module = serverless.upload_module('/home/')
    # create function
    # add your code and params
    module_id = module.json()["function_id"]
    serverless.edit_function('my_function', function_id=module_id,
                             module_name='', env_vars={'key':'value'},
                             runtime='python', version='3.7')
    # invoke your function
    import time
    ex = True
    while ex:
            activation = serverless.invoke_function('my_function')
            ex = False
        except Exception:
    # get logs and results
    while ex:
            logs = serverless.get_activation_logs(activation.json()['activation_id'])
            result = serverless.get_activation_result(activation.json()['activation_id'])
            ex = False
        except Exception:


You can see examples of using cloud functions here


Cloud functions




For all questions - Our Telegram


Serverless is licensed under the Apache 2.0.

Project details

Download files

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

Files for sels8s, version 1.0.7
Filename, size File type Python version Upload date Hashes
Filename, size sels8s-1.0.7.tar.gz (4.0 kB) File type Source Python version None Upload date Hashes View
Filename, size sels8s-1.0.7-py3-none-any.whl (4.2 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page