Skip to content

speakeasy-sdks/infisical-python-sdk

Repository files navigation

Open Source SecretOps

The Open Source, end-to-end, easy to use tool that lets you securely sync secrets and configs across your team, devices, and infrastructure

SDK Installation

pip install infisical

SDK Example Usage

import infisical
from infisical.models import operations, shared

s = infisical.Infisical(
    security=shared.Security(
        bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE",
    ),
)


req = operations.DeleteOrgMembershipsRequest(
    membership_id="corrupti",
    organization_id="provident",
)
    
res = s.organizations.delete_membership(req)

if res.membership is not None:
    # handle response

Available Resources and Operations

organizations

  • delete_membership - Delete organization membership
  • list_membership - List organization memberships
  • update_membership - Update organization membership

secrets

  • list_versions - Get secret versions
  • rollback_versions - Rollback secret versions
  • create - Create secret
  • delete - Delete secrets
  • list - List secrets
  • update - Update secrets

user

  • my_organization - Get current user organizations
  • my_user - Get current user

workspaces

  • delete_membership - Delete workspace membership
  • list_keys - Get workspace encrypted key
  • list_logs - Get workspace logs
  • list_membership - Get workspace memberships
  • list_snapshots - List workspace snapshots
  • list_workspace - List organization workspaces
  • rollback_snapshots - Rollback workspace secret snapshots
  • update_membership - Update workspace membership

SDK Generated by Speakeasy