Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: v0.9.9
- Package version: 1.0.0
- Generator version: 7.8.0-SNAPSHOT
- Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://github.com/Permify/permify/issues
Python 3.7+
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/Permify/permify-python.git(you may need to run pip with root permission: sudo pip install git+https://github.com/Permify/permify-python.git)
Then import the package:
import permifyInstall 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 permifyExecute pytest to run the tests.
Please follow the installation procedure and then run the following:
import permify
from permify import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:3476
# See configuration.py for a list of all supported configuration parameters.
configuration = permify.Configuration(
host = "http://localhost:3476"
)
# Enter a context with an instance of the API client
with permify.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = permify.BundleApi(api_client)
tenant_id = 'tenant_id_example' # str | Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes.
body = permify.BundleDeleteBody() # BundleDeleteBody |
try:
# delete bundle
api_response = api_instance.bundle_delete(tenant_id, body)
print("The response of BundleApi->bundle_delete:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling BundleApi->bundle_delete: %s\n" % e)All URIs are relative to http://localhost:3476
- AbstractType
- Any
- Argument
- Attribute
- AttributeDefinition
- AttributeFilter
- AttributeReadRequestMetadata
- AttributeReadResponse
- AttributeType
- BundleDeleteBody
- BundleDeleteResponse
- BundleReadBody
- BundleReadResponse
- BundleRunResponse
- BundleWriteBody
- BundleWriteResponse
- CheckBody
- CheckResult
- CheckedExpr
- Child
- Comprehension
- ComputedAttribute
- ComputedUserSet
- Constant
- Context
- ContextAttribute
- CreateList
- CreateStruct
- DataBundle
- DataChange
- DataChangeOperation
- DataChanges
- DataDeleteBody
- DataDeleteResponse
- DataWriteBody
- DataWriteRequestMetadata
- DataWriteResponse
- DeleteRelationshipsBody
- Entity
- EntityDefinition
- EntityDefinitionReference
- EntityFilter
- Entry
- ExpandLeaf
- ExpandTreeNode
- ExpandTreeNodeOperation
- Expr
- ExprCall
- FunctionType
- Ident
- Leaf
- ListType
- LookupEntityBody
- LookupEntityStreamBody
- LookupSubjectBody
- MapType
- PartialWriteBody
- Partials
- PermissionCheckRequestMetadata
- PermissionCheckResponse
- PermissionCheckResponseMetadata
- PermissionDefinition
- PermissionExpandBody
- PermissionExpandRequestMetadata
- PermissionExpandResponse
- PermissionLookupEntityRequestMetadata
- PermissionLookupEntityResponse
- PermissionLookupEntityStreamResponse
- PermissionLookupSubjectRequestMetadata
- PermissionLookupSubjectResponse
- PermissionSubjectPermissionRequestMetadata
- PermissionSubjectPermissionResponse
- PrimitiveType
- ReadAttributesBody
- ReadRelationshipsBody
- RelationDefinition
- RelationReference
- RelationshipDeleteResponse
- RelationshipReadRequestMetadata
- RelationshipReadResponse
- RelationshipWriteRequestMetadata
- RelationshipWriteResponse
- Rewrite
- RewriteOperation
- RuleDefinition
- RunBundleBody
- SchemaDefinition
- SchemaDefinitionReference
- SchemaList
- SchemaListBody
- SchemaListResponse
- SchemaPartialWriteRequestMetadata
- SchemaPartialWriteResponse
- SchemaReadBody
- SchemaReadRequestMetadata
- SchemaReadResponse
- SchemaWriteBody
- SchemaWriteResponse
- Select
- SourceInfo
- Status
- StreamResultOfPermissionLookupEntityStreamResponse
- StreamResultOfWatchResponse
- Subject
- SubjectFilter
- SubjectPermissionBody
- Subjects
- Tenant
- TenantCreateRequest
- TenantCreateResponse
- TenantDeleteResponse
- TenantListRequest
- TenantListResponse
- Tuple
- TupleFilter
- TupleSet
- TupleToUserSet
- V1Call
- V1Expand
- V1Operation
- V1alpha1Reference
- V1alpha1Type
- Values
- WatchBody
- WatchResponse
- WellKnownType
- WriteRelationshipsBody
Authentication schemes defined for the API:
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header
