OSCAR API for python
Project description
Python OSCAR API
Sample usage
from oscar_python.client import Client
client = Client("cluster-id","https://cluster-endpoint", "username", "password", True)
# get the cluster information
info = client.get_cluster_info() # returns an http response
print(info.text)
API methods
Cluster methods
get_cluster_info
# get the cluster information
info = client.get_cluster_info() # returns an http response
get_cluster_config
# get the cluster config
config = client.get_cluster_config() # returns an http response
Service methods
get_service
# get the definition of a service
service = client.get_service("service_name") # returns an http response
list_services
# get a list of all the services deployed
services = client.list_services() # returns an http response
create_service
# create a service
err = client.create_service("path_to_fdl") # returns nothing if the service is created or an error if something goes wrong
update_service
# update a service
err = client.update_service("service_name","path_to_fdl") # returns nothing if the service is created or an error if something goes wrong
remove_service
# remove a service
service = client.remove_service("service_name") # returns an http response
#TODO [...]
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
oscar_python-1.0.1b1.tar.gz
(10.9 kB
view hashes)
Built Distribution
Close
Hashes for oscar_python-1.0.1b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a6a3e9cd582deef654853dcb03556be8b17aebfe354f6feba0bfaa4a118bb9f |
|
MD5 | cb0c4b933e5aa63014f65a8840b0450e |
|
BLAKE2b-256 | d4c356872136976a22bb5e6cc7fceb25d67cd894d282a84c2dd5f3df1ca7cd1c |