Skip to main content

FINBOURNE Scheduler API

Project description

lusid-scheduler-sdk

FINBOURNE Technology

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

  • API version: 0.0.849
  • Package version: 2.0.8
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://www.finbourne.com

Requirements.

Python 3.7+

Installation & Usage

pip install

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

pip install git+https://github.com/finbourne/scheduler-sdk-python.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/finbourne/scheduler-sdk-python.git)

Then import the package:

import lusid_scheduler

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 lusid_scheduler

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import time
import lusid_scheduler
from lusid_scheduler.rest import ApiException
from pprint import pprint

from lusid_scheduler import (
	  ApiClientFactory,
	  ApplicationMetadataApi,
	  EnvironmentVariablesConfigurationLoader,
	  SecretsFileConfigurationLoader,
	  ArgsConfigurationLoader
)

# Use the lusid_scheduler ApiClientFactory to build Api instances with a configured api client
# By default this will read config from environment variables
# Then from a secrets.json file found in the current working directory
api_client_factory = ApiClientFactory()

# The ApiClientFactory can be passed an iterable of configuration loaders to read configuration from

api_url = "https://fbn-prd.lusid.com/scheduler2"
# Path to a secrets.json file containing authentication credentials
# See https://support.lusid.com/knowledgebase/article/KA-01667/en-us
# for a detailed guide to setting up the SDK make authenticated calls to LUSID APIs
secrets_path = os.getenv("FBN_SECRETS_PATH")
app_name="LusidJupyterNotebook"

config_loaders = [
	EnvironmentVariablesConfigurationLoader(),
	SecretsFileConfigurationLoader(api_secrets_file=secrets_path),
	ArgsConfigurationLoader(api_url=api_url, app_name=app_name)
]
api_client_factory = ApiClientFactory(config_loaders=config_loaders)


# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.



# Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use
async with api_client_factory:
    # Create an instance of the API class
    api_instance = lusid_scheduler.ApplicationMetadataApi(api_client)

    try:
        # [EXPERIMENTAL] ListAccessControlledResources: Get resources available for access control
        api_response = await api_instance.list_access_controlled_resources()
        print("The response of ApplicationMetadataApi->list_access_controlled_resources:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling ApplicationMetadataApi->list_access_controlled_resources: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://fbn-prd.lusid.com/scheduler2

Class Method HTTP request Description
ApplicationMetadataApi list_access_controlled_resources GET /api/metadata/access/resources [EXPERIMENTAL] ListAccessControlledResources: Get resources available for access control
ImagesApi delete_image DELETE /api/images/{name} [EXPERIMENTAL] DeleteImage: Delete a Docker Image
ImagesApi download_image GET /api/images/{name}/contents [EXPERIMENTAL] DownloadImage: Download Docker Image
ImagesApi get_image GET /api/images/{name} [EXPERIMENTAL] GetImage: Get metadata of a Docker Image
ImagesApi list_images GET /api/images/repository/{name} [EXPERIMENTAL] ListImages: List all images under same image repository
ImagesApi list_repositories GET /api/images/repository [EXPERIMENTAL] ListRepositories: List all Docker image repositories
ImagesApi upload_image POST /api/images [EXPERIMENTAL] UploadImage: Upload a Docker Image used for Scheduler jobs
JobsApi create_job POST /api/jobs [EXPERIMENTAL] CreateJob: Create a new job
JobsApi delete_job DELETE /api/jobs/{scope}/{code} [EXPERIMENTAL] DeleteJob: Delete a job
JobsApi get_history GET /api/jobs/history [EXPERIMENTAL] GetHistory: Get the history of job runs
JobsApi get_job_console_output GET /api/jobs/history/{runId}/console [EXPERIMENTAL] GetJobConsoleOutput: Gets the console output of a specific job run
JobsApi get_run_history GET /api/jobs/history/{runId} [EXPERIMENTAL] GetRunHistory: Get the history for a single job run
JobsApi get_schedules_for_a_job GET /api/jobs/{scope}/{code}/schedules [EXPERIMENTAL] GetSchedulesForAJob: Get all the schedules for a single job
JobsApi list_jobs GET /api/jobs [EXPERIMENTAL] ListJobs: List the available jobs
JobsApi run_job POST /api/jobs/{scope}/{code}/$run [EXPERIMENTAL] RunJob: Run a job immediately
JobsApi update_job PUT /api/jobs/{scope}/{code} [EXPERIMENTAL] UpdateJob: Update a JobDefinition
SchedulesApi create_schedule POST /api/schedules [EXPERIMENTAL] CreateSchedule: Create a Schedule for a job
SchedulesApi delete_schedule DELETE /api/schedules/{scope}/{code} [EXPERIMENTAL] DeleteSchedule: Delete a schedule
SchedulesApi enabled_schedule PUT /api/schedules/{scope}/{code}/enabled [EXPERIMENTAL] EnabledSchedule: Enable/disable a schedule
SchedulesApi get_schedule GET /api/schedules/{scope}/{code} [EXPERIMENTAL] GetSchedule: Get a single Schedule
SchedulesApi list_schedules GET /api/schedules [EXPERIMENTAL] ListSchedules: List the available Schedules
SchedulesApi run_schedule POST /api/schedules/{scope}/{code}/$run [EXPERIMENTAL] RunSchedule: Run a schedule immediately
SchedulesApi update_schedule PUT /api/schedules/{scope}/{code} [EXPERIMENTAL] UpdateSchedule: Update a schedule.

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

oauth2

Author

info@finbourne.com

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

lusid_scheduler_sdk-2.0.8.tar.gz (67.1 kB view details)

Uploaded Source

Built Distribution

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

lusid_scheduler_sdk-2.0.8-py3-none-any.whl (121.4 kB view details)

Uploaded Python 3

File details

Details for the file lusid_scheduler_sdk-2.0.8.tar.gz.

File metadata

  • Download URL: lusid_scheduler_sdk-2.0.8.tar.gz
  • Upload date:
  • Size: 67.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.8.2 Linux/5.15.106-flatcar

File hashes

Hashes for lusid_scheduler_sdk-2.0.8.tar.gz
Algorithm Hash digest
SHA256 1b10c2640b46c3af6ff1254b79fc8b846f0ee4032b3d3eb6c575a61c322ab18a
MD5 6236d8879c29da663e84899316024e2f
BLAKE2b-256 8c8b6b228fc21b1d563e5932ab4c9367f6c46a1c9db7dbaa2390aca8cbbf771f

See more details on using hashes here.

File details

Details for the file lusid_scheduler_sdk-2.0.8-py3-none-any.whl.

File metadata

  • Download URL: lusid_scheduler_sdk-2.0.8-py3-none-any.whl
  • Upload date:
  • Size: 121.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.8.2 Linux/5.15.106-flatcar

File hashes

Hashes for lusid_scheduler_sdk-2.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 2c0ca19f497d37a0c3d104ae1019d76800d0f5df756397f071b926abe1c804f3
MD5 b5e6d6d300ac2dce5ba2eead65630328
BLAKE2b-256 72940df9bda580164db64933a29841e258fa1fb8e73ce0b326b466df4cbe950d

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