Skip to main content

Rocketstack Control Plane API

Project description

rocketstack-sdk

Combined API for Functions, Queues, KV, Storage, Cron, and Scheduler.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.4
  • Generator version: 7.19.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.9+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import rocketstack_sdk

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import rocketstack_sdk

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import rocketstack_sdk
from rocketstack_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://ctrl.rocketstack.sh
# See configuration.py for a list of all supported configuration parameters.
configuration = rocketstack_sdk.Configuration(
    host = "https://ctrl.rocketstack.sh"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (JWT): bearerAuth
configuration = rocketstack_sdk.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)


# Enter a context with an instance of the API client
with rocketstack_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = rocketstack_sdk.CronApi(api_client)
    create_cron_job_request = rocketstack_sdk.CreateCronJobRequest() # CreateCronJobRequest | 

    try:
        # Create a new cron job
        api_response = api_instance.create_cron_job(create_cron_job_request)
        print("The response of CronApi->create_cron_job:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling CronApi->create_cron_job: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://ctrl.rocketstack.sh

Class Method HTTP request Description
CronApi create_cron_job POST /cron Create a new cron job
CronApi delete_cron_job DELETE /cron/{id} Delete a cron job
CronApi get_cron_job GET /cron/{id} Get a cron job by ID
CronApi list_cron_invocations GET /cron/{id}/invocations List cron invocation history
CronApi list_cron_jobs GET /cron List cron jobs
CronApi update_cron_job PATCH /cron/{id} Update a cron job
FunctionsApi create_function POST /functions Create a new function
FunctionsApi get_function GET /functions/{id} Get a function by ID
FunctionsApi get_function_code GET /functions/{id}/code Get function code
FunctionsApi invoke_function POST /functions/{id}/invoke Invoke a function
FunctionsApi list_functions GET /functions List functions
FunctionsApi update_function PATCH /functions/{id} Update function settings
FunctionsApi update_function_code POST /functions/{id}/code Update function code
KvApi delete_kv_item DELETE /kv/items/{wildcard} Delete a KV item
KvApi get_kv_item GET /kv/items/{wildcard} Get a KV item by key
KvApi list_kv_items GET /kv/items List KV items
KvApi put_kv_item PUT /kv/items/{wildcard} Create or update a KV item
QueuesApi create_queue POST /queues Create a new queue
QueuesApi delete_queue DELETE /queues/{id} Delete a queue
QueuesApi enqueue_message POST /queues/{id}/messages Enqueue a message
QueuesApi get_message_status GET /queues/{id}/messages/{messageId} Get message status
QueuesApi get_queue GET /queues/{id} Get a queue by ID
QueuesApi list_queue_messages GET /queues/{id}/messages List queue messages
QueuesApi list_queues GET /queues List queues
QueuesApi update_queue PATCH /queues/{id} Update a queue
ResourcesApi get_template GET /resources/templates/{id} Get a template by id
ResourcesApi list_capabilities GET /resources/capabilities List app-generation capabilities
ResourcesApi list_snippets GET /resources/snippets List code snippets
ResourcesApi list_templates GET /resources/templates List app templates
SchedulerApi cancel_schedule POST /schedules/{id}/cancel Cancel a schedule
SchedulerApi create_schedule POST /schedules Create a new one-off schedule
SchedulerApi delete_schedule DELETE /schedules/{id} Delete a schedule
SchedulerApi get_schedule GET /schedules/{id} Get a schedule by ID
SchedulerApi get_schedule_status GET /schedules/{id}/status Get schedule execution status
SchedulerApi list_schedule_invocations GET /schedules/{id}/invocations List schedule invocation history
SchedulerApi list_schedules GET /schedules List schedules
SchedulerApi update_schedule PATCH /schedules/{id} Update a schedule
StorageApi create_download_url POST /storage/download-url Create a presigned download URL
StorageApi delete_storage_object DELETE /storage/objects Delete a storage object
StorageApi finalize_upload POST /storage/finalize Finalize an upload
StorageApi get_public_object GET /storage/public/objects/{tenantId}/{wildcard} Get a public object
StorageApi list_storage_objects GET /storage/objects List storage objects
StorageApi upload_object POST /storage/objects Upload an object

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

bearerAuth

  • Type: Bearer authentication (JWT)

Author

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

rocketstack_sdk-1.0.4.tar.gz (85.5 kB view details)

Uploaded Source

Built Distribution

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

rocketstack_sdk-1.0.4-py3-none-any.whl (207.0 kB view details)

Uploaded Python 3

File details

Details for the file rocketstack_sdk-1.0.4.tar.gz.

File metadata

  • Download URL: rocketstack_sdk-1.0.4.tar.gz
  • Upload date:
  • Size: 85.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for rocketstack_sdk-1.0.4.tar.gz
Algorithm Hash digest
SHA256 fc6210b383abc852b2d5493b4cbdae18f82c4b37930d44723627c01871b92209
MD5 829ff0c2e65f9e2f6bfaa0d9005e5fe2
BLAKE2b-256 027106a990874780c5a76ea0f3ee9319c91f7b8ff3296084700d90116c3baf9d

See more details on using hashes here.

File details

Details for the file rocketstack_sdk-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: rocketstack_sdk-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 207.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for rocketstack_sdk-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6944a87ec8d841a5525915a998136391681f941b35b46f9859e2e886f44074cb
MD5 f1b3a3fbe3767d8f6750bab5f8f51a65
BLAKE2b-256 6052c4c7459c5edb78f5a375ff6b0d52d4eaea6540b4a38303d07ec41babdd63

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