New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bacalhau-apiclient

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bacalhau-apiclient

A Python client for the Bacalhau public API - https://github.com/bacalhau-project/bacalhau/tree/main/clients/python

  • 1.4.1
  • PyPI
  • Socket score

Maintainers
1

bacalhau_apiclient

This page is the reference of the Bacalhau REST API. Project docs are available at https://docs.bacalhau.org/. Find more information about Bacalhau at https://github.com/bacalhau-project/bacalhau.

This Python package is automatically generated by the Swagger Codegen project:

  • API version: ${VERSION}
  • Package version:
  • Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen For more information, please visit https://github.com/bacalhau-project/bacalhau

Requirements.

Python 3.6+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

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 bacalhau_apiclient 

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 bacalhau_apiclient

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import bacalhau_apiclient
from bacalhau_apiclient.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = bacalhau_apiclient.ComputeNodeApi(bacalhau_apiclient.ApiClient(configuration))

try:
    # Approves a job to be run on this compute node.
    api_response = api_instance.api_serverapprover()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ComputeNodeApi->api_serverapprover: %s\n" % e)

# create an instance of the API class
api_instance = bacalhau_apiclient.ComputeNodeApi(bacalhau_apiclient.ApiClient(configuration))

try:
    # Returns debug information on what the current node is doing.
    api_response = api_instance.api_serverdebug()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ComputeNodeApi->api_serverdebug: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://bootstrap.production.bacalhau.org:1234/

ClassMethodHTTP requestDescription
ComputeNodeApiapi_serverapproverGET /api/v1/compute/approveApproves a job to be run on this compute node.
ComputeNodeApiapi_serverdebugGET /api/v1/compute/debugReturns debug information on what the current node is doing.
MiscApiapi_serverversionPOST /api/v1/versionReturns the build version running on the server.
OpsApiagentaliveGET /api/v1/agent/alive
OpsApiagentdebugGET /api/v1/agent/debugReturns debug information on what the current node is doing.
OpsApiagentnodeGET /api/v1/agent/nodeReturns the info of the node.
OpsApiagentversionGET /api/v1/agent/versionReturns the build version running on the server.
OrchestratorApiorchestratorget_jobGET /api/v1/orchestrator/jobs/{id}Returns a job.
OrchestratorApiorchestratorget_nodeGET /api/v1/orchestrator/nodes/{id}Get an orchestrator node
OrchestratorApiorchestratorjob_executionsGET /api/v1/orchestrator/jobs/{id}/executionsReturns the executions of a job.
OrchestratorApiorchestratorjob_historyGET /api/v1/orchestrator/jobs/{id}/historyReturns the history of a job.
OrchestratorApiorchestratorjob_resultsGET /api/v1/orchestrator/jobs/{id}/resultsReturns the results of a job.
OrchestratorApiorchestratorlist_jobsGET /api/v1/orchestrator/jobsReturns a list of jobs.
OrchestratorApiorchestratorlist_nodesGET /api/v1/orchestrator/nodesReturns a list of orchestrator nodes.
OrchestratorApiorchestratorlogsGET /api/v1/orchestrator/jobs/{id}/logsDisplays the logs for a current job/execution
OrchestratorApiorchestratorput_jobPUT /api/v1/orchestrator/jobsSubmits a job to the orchestrator.
OrchestratorApiorchestratorstop_jobDELETE /api/v1/orchestrator/jobs/{id}Stops a job.
OrchestratorApiorchestratorupdate_nodePOST /api/v1/orchestrator/nodesUpdate an orchestrator node.
UtilsApihealthzGET /api/v1/healthz
UtilsApihomeGET /
UtilsApiidGET /api/v1/idReturns the id of the host node.
UtilsApilivezGET /api/v1/livez
UtilsApinode_infoGET /api/v1/node_infoReturns the info of the node.

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

team@bacalhau.org

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc