Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lakefs-sdk

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lakefs-sdk

lakeFS API

  • 1.44.0
  • PyPI
  • Socket score

Maintainers
1

lakefs-sdk

lakeFS HTTP API

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

  • API version: 1.0.0
  • Package version: 1.44.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

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/treeverse/lakeFS.git

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

Then import the package:

import lakefs_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 lakefs_sdk

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:


import time
import lakefs_sdk
from lakefs_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to /api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = lakefs_sdk.Configuration(
    host = "/api/v1"
)

# 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 HTTP basic authorization: basic_auth
configuration = lakefs_sdk.Configuration(
    username = os.environ["USERNAME"],
    password = os.environ["PASSWORD"]
)

# Configure API key authorization: cookie_auth
configuration.api_key['cookie_auth'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookie_auth'] = 'Bearer'

# Configure API key authorization: oidc_auth
configuration.api_key['oidc_auth'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['oidc_auth'] = 'Bearer'

# Configure API key authorization: saml_auth
configuration.api_key['saml_auth'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['saml_auth'] = 'Bearer'

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


# Enter a context with an instance of the API client
with lakefs_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = lakefs_sdk.ActionsApi(api_client)
    repository = 'repository_example' # str | 
    run_id = 'run_id_example' # str | 

    try:
        # get a run
        api_response = api_instance.get_run(repository, run_id)
        print("The response of ActionsApi->get_run:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling ActionsApi->get_run: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to /api/v1

ClassMethodHTTP requestDescription
ActionsApiget_runGET /repositories/{repository}/actions/runs/{run_id}get a run
ActionsApiget_run_hook_outputGET /repositories/{repository}/actions/runs/{run_id}/hooks/{hook_run_id}/outputget run hook output
ActionsApilist_repository_runsGET /repositories/{repository}/actions/runslist runs
ActionsApilist_run_hooksGET /repositories/{repository}/actions/runs/{run_id}/hookslist run hooks
AuthApiadd_group_membershipPUT /auth/groups/{groupId}/members/{userId}add group membership
AuthApiattach_policy_to_groupPUT /auth/groups/{groupId}/policies/{policyId}attach policy to group
AuthApiattach_policy_to_userPUT /auth/users/{userId}/policies/{policyId}attach policy to user
AuthApicreate_credentialsPOST /auth/users/{userId}/credentialscreate credentials
AuthApicreate_groupPOST /auth/groupscreate group
AuthApicreate_policyPOST /auth/policiescreate policy
AuthApicreate_userPOST /auth/userscreate user
AuthApicreate_user_external_principalPOST /auth/users/{userId}/external/principalsattach external principal to user
AuthApidelete_credentialsDELETE /auth/users/{userId}/credentials/{accessKeyId}delete credentials
AuthApidelete_groupDELETE /auth/groups/{groupId}delete group
AuthApidelete_group_membershipDELETE /auth/groups/{groupId}/members/{userId}delete group membership
AuthApidelete_policyDELETE /auth/policies/{policyId}delete policy
AuthApidelete_userDELETE /auth/users/{userId}delete user
AuthApidelete_user_external_principalDELETE /auth/users/{userId}/external/principalsdelete external principal from user
AuthApidetach_policy_from_groupDELETE /auth/groups/{groupId}/policies/{policyId}detach policy from group
AuthApidetach_policy_from_userDELETE /auth/users/{userId}/policies/{policyId}detach policy from user
AuthApiexternal_principal_loginPOST /auth/external/principal/loginperform a login using an external authenticator
AuthApiget_credentialsGET /auth/users/{userId}/credentials/{accessKeyId}get credentials
AuthApiget_current_userGET /userget current user
AuthApiget_external_principalGET /auth/external/principalsdescribe external principal by id
AuthApiget_groupGET /auth/groups/{groupId}get group
AuthApiget_group_aclGET /auth/groups/{groupId}/aclget ACL of group
AuthApiget_policyGET /auth/policies/{policyId}get policy
AuthApiget_userGET /auth/users/{userId}get user
AuthApilist_group_membersGET /auth/groups/{groupId}/memberslist group members
AuthApilist_group_policiesGET /auth/groups/{groupId}/policieslist group policies
AuthApilist_groupsGET /auth/groupslist groups
AuthApilist_policiesGET /auth/policieslist policies
AuthApilist_user_credentialsGET /auth/users/{userId}/credentialslist user credentials
AuthApilist_user_external_principalsGET /auth/users/{userId}/external/principals/lslist user external policies attached to a user
AuthApilist_user_groupsGET /auth/users/{userId}/groupslist user groups
AuthApilist_user_policiesGET /auth/users/{userId}/policieslist user policies
AuthApilist_usersGET /auth/userslist users
AuthApiloginPOST /auth/loginperform a login
AuthApiset_group_aclPOST /auth/groups/{groupId}/aclset ACL of group
AuthApiupdate_policyPUT /auth/policies/{policyId}update policy
BranchesApicherry_pickPOST /repositories/{repository}/branches/{branch}/cherry-pickReplay the changes from the given commit on the branch
BranchesApicreate_branchPOST /repositories/{repository}/branchescreate branch
BranchesApidelete_branchDELETE /repositories/{repository}/branches/{branch}delete branch
BranchesApidiff_branchGET /repositories/{repository}/branches/{branch}/diffdiff branch
BranchesApiget_branchGET /repositories/{repository}/branches/{branch}get branch
BranchesApilist_branchesGET /repositories/{repository}/brancheslist branches
BranchesApireset_branchPUT /repositories/{repository}/branches/{branch}reset branch
BranchesApirevert_branchPOST /repositories/{repository}/branches/{branch}/revertrevert
CommitsApicommitPOST /repositories/{repository}/branches/{branch}/commitscreate commit
CommitsApiget_commitGET /repositories/{repository}/commits/{commitId}get commit
ConfigApiget_configGET /config
ExperimentalApiabort_presign_multipart_uploadDELETE /repositories/{repository}/branches/{branch}/staging/pmpu/{uploadId}Abort a presign multipart upload
ExperimentalApicomplete_presign_multipart_uploadPUT /repositories/{repository}/branches/{branch}/staging/pmpu/{uploadId}Complete a presign multipart upload request
ExperimentalApicreate_presign_multipart_uploadPOST /repositories/{repository}/branches/{branch}/staging/pmpuInitiate a multipart upload
ExperimentalApicreate_pull_requestPOST /repositories/{repository}/pullscreate pull request
ExperimentalApicreate_user_external_principalPOST /auth/users/{userId}/external/principalsattach external principal to user
ExperimentalApidelete_user_external_principalDELETE /auth/users/{userId}/external/principalsdelete external principal from user
ExperimentalApiexternal_principal_loginPOST /auth/external/principal/loginperform a login using an external authenticator
ExperimentalApiget_external_principalGET /auth/external/principalsdescribe external principal by id
ExperimentalApiget_pull_requestGET /repositories/{repository}/pulls/{pull_request}get pull request
ExperimentalApihard_reset_branchPUT /repositories/{repository}/branches/{branch}/hard_resethard reset branch
ExperimentalApilist_pull_requestsGET /repositories/{repository}/pullslist pull requests
ExperimentalApilist_user_external_principalsGET /auth/users/{userId}/external/principals/lslist user external policies attached to a user
ExperimentalApimerge_pull_requestPUT /repositories/{repository}/pulls/{pull_request}/mergemerge pull request
ExperimentalApists_loginPOST /sts/loginperform a login with STS
ExperimentalApiupdate_object_user_metadataPUT /repositories/{repository}/branches/{branch}/objects/stat/user_metadatarewrite (all) object metadata
ExperimentalApiupdate_pull_requestPATCH /repositories/{repository}/pulls/{pull_request}update pull request
ExternalApicreate_user_external_principalPOST /auth/users/{userId}/external/principalsattach external principal to user
ExternalApidelete_user_external_principalDELETE /auth/users/{userId}/external/principalsdelete external principal from user
ExternalApiexternal_principal_loginPOST /auth/external/principal/loginperform a login using an external authenticator
ExternalApiget_external_principalGET /auth/external/principalsdescribe external principal by id
ExternalApilist_user_external_principalsGET /auth/users/{userId}/external/principals/lslist user external policies attached to a user
HealthCheckApihealth_checkGET /healthcheck
ImportApiimport_cancelDELETE /repositories/{repository}/branches/{branch}/importcancel ongoing import
ImportApiimport_startPOST /repositories/{repository}/branches/{branch}/importimport data from object store
ImportApiimport_statusGET /repositories/{repository}/branches/{branch}/importget import status
InternalApicreate_branch_protection_rule_preflightGET /repositories/{repository}/branch_protection/set_allowed
InternalApicreate_commit_recordPOST /repositories/{repository}/commitscreate commit record
InternalApicreate_symlink_filePOST /repositories/{repository}/refs/{branch}/symlinkcreates symlink files corresponding to the given directory
InternalApidelete_repository_metadataDELETE /repositories/{repository}/metadatadelete repository metadata
InternalApidump_refsPUT /repositories/{repository}/refs/dumpDump repository refs (tags, commits, branches) to object store Deprecated: a new API will introduce long running operations
InternalApiget_auth_capabilitiesGET /auth/capabilitieslist authentication capabilities supported
InternalApiget_garbage_collection_configGET /config/garbage-collection
InternalApiget_lake_fs_versionGET /config/version
InternalApiget_metadata_objectGET /repositories/{repository}/metadata/object/{type}/{object_id}return a lakeFS metadata object by ID
InternalApiget_setup_stateGET /setup_lakefscheck if the lakeFS installation is already set up
InternalApiget_storage_configGET /config/storage
InternalApiget_usage_report_summaryGET /usage-report/summaryget usage report summary
InternalApiinternal_create_branch_protection_rulePOST /repositories/{repository}/branch_protection
InternalApiinternal_delete_branch_protection_ruleDELETE /repositories/{repository}/branch_protection
InternalApiinternal_delete_garbage_collection_rulesDELETE /repositories/{repository}/gc/rules
InternalApiinternal_get_branch_protection_rulesGET /repositories/{repository}/branch_protectionget branch protection rules
InternalApiinternal_get_garbage_collection_rulesGET /repositories/{repository}/gc/rules
InternalApiinternal_set_garbage_collection_rulesPOST /repositories/{repository}/gc/rules
InternalApipost_stats_eventsPOST /statisticspost stats events, this endpoint is meant for internal use only
InternalApiprepare_garbage_collection_commitsPOST /repositories/{repository}/gc/prepare_commitssave lists of active commits for garbage collection
InternalApiprepare_garbage_collection_uncommittedPOST /repositories/{repository}/gc/prepare_uncommitedsave repository uncommitted metadata for garbage collection
InternalApirestore_refsPUT /repositories/{repository}/refs/restoreRestore repository refs (tags, commits, branches) from object store. Deprecated: a new API will introduce long running operations
InternalApiset_garbage_collection_rules_preflightGET /repositories/{repository}/gc/rules/set_allowed
InternalApiset_repository_metadataPOST /repositories/{repository}/metadataset repository metadata
InternalApisetupPOST /setup_lakefssetup lakeFS and create a first user
InternalApisetup_comm_prefsPOST /setup_comm_prefssetup communications preferences
InternalApistage_objectPUT /repositories/{repository}/branches/{branch}/objectsstage an object's metadata for the given branch
InternalApiupload_object_preflightGET /repositories/{repository}/branches/{branch}/objects/stage_allowed
MetadataApiget_meta_rangeGET /repositories/{repository}/metadata/meta_range/{meta_range}return URI to a meta-range file
MetadataApiget_rangeGET /repositories/{repository}/metadata/range/{range}return URI to a range file
ObjectsApicopy_objectPOST /repositories/{repository}/branches/{branch}/objects/copycreate a copy of an object
ObjectsApidelete_objectDELETE /repositories/{repository}/branches/{branch}/objectsdelete object. Missing objects will not return a NotFound error.
ObjectsApidelete_objectsPOST /repositories/{repository}/branches/{branch}/objects/deletedelete objects. Missing objects will not return a NotFound error.
ObjectsApiget_objectGET /repositories/{repository}/refs/{ref}/objectsget object content
ObjectsApiget_underlying_propertiesGET /repositories/{repository}/refs/{ref}/objects/underlyingPropertiesget object properties on underlying storage
ObjectsApihead_objectHEAD /repositories/{repository}/refs/{ref}/objectscheck if object exists
ObjectsApilist_objectsGET /repositories/{repository}/refs/{ref}/objects/lslist objects under a given prefix
ObjectsApistat_objectGET /repositories/{repository}/refs/{ref}/objects/statget object metadata
ObjectsApiupdate_object_user_metadataPUT /repositories/{repository}/branches/{branch}/objects/stat/user_metadatarewrite (all) object metadata
ObjectsApiupload_objectPOST /repositories/{repository}/branches/{branch}/objects
PullsApicreate_pull_requestPOST /repositories/{repository}/pullscreate pull request
PullsApiget_pull_requestGET /repositories/{repository}/pulls/{pull_request}get pull request
PullsApilist_pull_requestsGET /repositories/{repository}/pullslist pull requests
PullsApimerge_pull_requestPUT /repositories/{repository}/pulls/{pull_request}/mergemerge pull request
PullsApiupdate_pull_requestPATCH /repositories/{repository}/pulls/{pull_request}update pull request
RefsApidiff_refsGET /repositories/{repository}/refs/{leftRef}/diff/{rightRef}diff references
RefsApifind_merge_baseGET /repositories/{repository}/refs/{sourceRef}/merge/{destinationBranch}find the merge base for 2 references
RefsApilog_commitsGET /repositories/{repository}/refs/{ref}/commitsget commit log from ref. If both objects and prefixes are empty, return all commits.
RefsApimerge_into_branchPOST /repositories/{repository}/refs/{sourceRef}/merge/{destinationBranch}merge references
RepositoriesApicreate_repositoryPOST /repositoriescreate repository
RepositoriesApidelete_gc_rulesDELETE /repositories/{repository}/settings/gc_rules
RepositoriesApidelete_repositoryDELETE /repositories/{repository}delete repository
RepositoriesApidump_statusGET /repositories/{repository}/dumpStatus of a repository dump task
RepositoriesApidump_submitPOST /repositories/{repository}/dumpBackup the repository metadata (tags, commits, branches) and save the backup to the object store.
RepositoriesApiget_branch_protection_rulesGET /repositories/{repository}/settings/branch_protectionget branch protection rules
RepositoriesApiget_gc_rulesGET /repositories/{repository}/settings/gc_rulesget repository GC rules
RepositoriesApiget_repositoryGET /repositories/{repository}get repository
RepositoriesApiget_repository_metadataGET /repositories/{repository}/metadataget repository metadata
RepositoriesApilist_repositoriesGET /repositorieslist repositories
RepositoriesApirestore_statusGET /repositories/{repository}/restoreStatus of a restore request
RepositoriesApirestore_submitPOST /repositories/{repository}/restoreRestore repository from a dump in the object store
RepositoriesApiset_branch_protection_rulesPUT /repositories/{repository}/settings/branch_protection
RepositoriesApiset_gc_rulesPUT /repositories/{repository}/settings/gc_rules
StagingApiget_physical_addressGET /repositories/{repository}/branches/{branch}/staging/backinggenerate an address to which the client can upload an object
StagingApilink_physical_addressPUT /repositories/{repository}/branches/{branch}/staging/backingassociate staging on this physical address with a path
TagsApicreate_tagPOST /repositories/{repository}/tagscreate tag
TagsApidelete_tagDELETE /repositories/{repository}/tags/{tag}delete tag
TagsApiget_tagGET /repositories/{repository}/tags/{tag}get tag
TagsApilist_tagsGET /repositories/{repository}/tagslist tags

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

basic_auth

  • Type: HTTP basic authentication

jwt_token

  • Type: Bearer authentication (JWT)

  • Type: API key
  • API key parameter name: internal_auth_session
  • Location:

oidc_auth

  • Type: API key
  • API key parameter name: oidc_auth_session
  • Location:

saml_auth

  • Type: API key
  • API key parameter name: saml_auth_session
  • Location:

Author

services@treeverse.io

Keywords

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