Skip to main content

Rocketstack API

Project description

rocketstack-sdk

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

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

  • API version: 1.0.3
  • Package version: 1.0.3
  • 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://api.rocketstack.dev
# See configuration.py for a list of all supported configuration parameters.
configuration = rocketstack_sdk.Configuration(
    host = "https://api.rocketstack.dev"
)

# 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://api.rocketstack.dev

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_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 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/{key} Delete a KV item
KvApi get_kv_item GET /kv/items/{key} Get a KV item by key
KvApi list_kv_items GET /kv/items List KV items
KvApi put_kv_item PUT /kv/items/{key} 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_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_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.3.tar.gz (75.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.3-py3-none-any.whl (179.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for rocketstack_sdk-1.0.3.tar.gz
Algorithm Hash digest
SHA256 7312ee8b764db81ff2e41c5088057c0e166db4ce816ead25f522aa6dbdb67a55
MD5 5548f938994bca2064540243d68dedfc
BLAKE2b-256 e5f63336821806cdd06c62c6350db6dd89d2796253865129d6360d0241bd502e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for rocketstack_sdk-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a5c34ea464478ca4ad65ef53b37e9dcda41492de071f4000de8f7fa13fe1042f
MD5 868fd0d138fd43bea83245e00b2d2f36
BLAKE2b-256 2b564676830d07c1888663d389d23f458d2e2fc9068545ba4e65dfd3fb35db37

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