# Space Blocks Permissions Server SDK for Python
This is the Python server SDK for Space Blocks Permissions.
## Usage
Required Python version: 3.8 or later.
The package is published to the official Python Package Index (https://pypi.org/project/spaceblocks-permissions-server).
It can be installed with:
```bash
pip install spaceblocks-permissions-server
```
To get started, import the package and create an instance of the `PermissionsClient`:
```python
from spaceblocks_permissions_server import (
PermissionsClient,
ClientAuthenticationOptions
)
client = PermissionsClient(
'<SPACE_BLOCKS_PERMISSIONS_URL>',
ClientAuthenticationOptions(
api_key='<YOUR_API_KEY>',
client_id='<YOUR_CLIENT_ID>',
client_secret='<YOUR_CLIENT_SECRET>'
)
)
client.permission_api.check_permissions(...)
```
The code above uses a client ID and secret to issue an access token,
but a custom token can also be provided by using the `TokenAuthenticationOptions` instead.
Additionally, the client takes further options via a `SpaceBlocksClientOptions` as the third parameter.
Documentation for the platform and APIs are available here: https://docs.spaceblocks.cloud/permissions
A simple example can be found here: https://github.com/wemogy/spaceblocks-sample-helloworld/tree/main/python
Raw data
{
"_id": null,
"home_page": "https://spaceblocks.cloud",
"name": "spaceblocks-permissions-server",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.8",
"maintainer_email": null,
"keywords": "space blocks, permissions, rbac",
"author": "Space Blocks Team",
"author_email": "hello@spaceblocks.cloud",
"download_url": "https://files.pythonhosted.org/packages/b7/70/b7f3173339849e2d6cdad0cd87d6c56fa6b4f0c960eb7cac59da4bdffca5/spaceblocks_permissions_server-2.12.1.tar.gz",
"platform": null,
"description": "# Space Blocks Permissions Server SDK for Python\n\nThis is the Python server SDK for Space Blocks Permissions.\n\n## Usage\n\nRequired Python version: 3.8 or later.\n\nThe package is published to the official Python Package Index (https://pypi.org/project/spaceblocks-permissions-server).\n\nIt can be installed with:\n\n```bash\npip install spaceblocks-permissions-server\n```\n\nTo get started, import the package and create an instance of the `PermissionsClient`:\n\n```python\nfrom spaceblocks_permissions_server import (\n PermissionsClient,\n ClientAuthenticationOptions\n)\n\nclient = PermissionsClient(\n '<SPACE_BLOCKS_PERMISSIONS_URL>',\n ClientAuthenticationOptions(\n api_key='<YOUR_API_KEY>',\n client_id='<YOUR_CLIENT_ID>',\n client_secret='<YOUR_CLIENT_SECRET>'\n )\n)\n\nclient.permission_api.check_permissions(...)\n```\n\nThe code above uses a client ID and secret to issue an access token,\nbut a custom token can also be provided by using the `TokenAuthenticationOptions` instead.\nAdditionally, the client takes further options via a `SpaceBlocksClientOptions` as the third parameter.\n\nDocumentation for the platform and APIs are available here: https://docs.spaceblocks.cloud/permissions\n\nA simple example can be found here: https://github.com/wemogy/spaceblocks-sample-helloworld/tree/main/python\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Server SDK for Space Blocks Permissions, a permissions-as-a-service platform for developers",
"version": "2.12.1",
"project_urls": {
"Documentation": "https://docs.spaceblocks.cloud/permissions",
"Homepage": "https://spaceblocks.cloud"
},
"split_keywords": [
"space blocks",
" permissions",
" rbac"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "20c75cb266377ca83ce848b6080a9f005339e8134bb3f6856b241baf57fee17e",
"md5": "ce2af4b4b696296f9e9ffce114e0a363",
"sha256": "cab5fa952538bf5be7bae00270014871dd41ca384ae2206230d8393911429bd5"
},
"downloads": -1,
"filename": "spaceblocks_permissions_server-2.12.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ce2af4b4b696296f9e9ffce114e0a363",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8",
"size": 61710,
"upload_time": "2025-08-05T13:34:13",
"upload_time_iso_8601": "2025-08-05T13:34:13.702091Z",
"url": "https://files.pythonhosted.org/packages/20/c7/5cb266377ca83ce848b6080a9f005339e8134bb3f6856b241baf57fee17e/spaceblocks_permissions_server-2.12.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b770b7f3173339849e2d6cdad0cd87d6c56fa6b4f0c960eb7cac59da4bdffca5",
"md5": "79e7c57392abbdaa562b0b27c59a6c11",
"sha256": "5f4c8e6f0bb44151169d6cf52cf39ceb864c576de2bfb9901e49954f58ac66c2"
},
"downloads": -1,
"filename": "spaceblocks_permissions_server-2.12.1.tar.gz",
"has_sig": false,
"md5_digest": "79e7c57392abbdaa562b0b27c59a6c11",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8",
"size": 31076,
"upload_time": "2025-08-05T13:34:15",
"upload_time_iso_8601": "2025-08-05T13:34:15.714546Z",
"url": "https://files.pythonhosted.org/packages/b7/70/b7f3173339849e2d6cdad0cd87d6c56fa6b4f0c960eb7cac59da4bdffca5/spaceblocks_permissions_server-2.12.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-05 13:34:15",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "spaceblocks-permissions-server"
}