Python client library for Raystack services
Project description
Raystack Proton Python
Python client library for Raystack services, generated from Protocol Buffer definitions.
PyPI: https://pypi.org/project/raystack-proton/
Installation
pip install raystack-proton
This will automatically install the required dependencies:
connect-python>=0.5.0- Connect RPC clientgoogleapis-common-protos>=1.50.0- Common Google API typesgrpcio>=1.50.0- gRPC runtimeprotobuf>=4.21.0,<7.0.0- Protocol Buffer runtime
Usage
This library uses Connect RPC for communication with Raystack services.
Synchronous Client
from raystack.frontier.v1beta1 import admin_connect, admin_pb2
# Create client
admin_client = admin_connect.AdminServiceClientSync("http://localhost:8082")
# Make request with authentication headers
request = admin_pb2.CheckFederatedResourcePermissionRequest(
subject="user:<user-id>",
resource="app/organization:<org-id>",
permission="get"
)
response = admin_client.check_federated_resource_permission(
request,
headers={"Authorization": "<auth-token>"}
)
print(f"Has permission: {response.status}")
Async Client
import asyncio
from raystack.frontier.v1beta1 import admin_connect, admin_pb2
async def check_permission():
admin_client = admin_connect.AdminServiceClient("http://localhost:8082")
request = admin_pb2.CheckFederatedResourcePermissionRequest(
subject="user:<user-id>",
resource="app/organization:<org-id>",
permission="get"
)
response = await admin_client.check_federated_resource_permission(
request,
headers={"Authorization": "<auth-token>"}
)
print(f"Has permission: {response.status}")
# Run the async function
asyncio.run(check_permission())
Development
Building
make build
Or using Python:
python3 build.py build
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file raystack_proton-2026.4.7.55721-py3-none-any.whl.
File metadata
- Download URL: raystack_proton-2026.4.7.55721-py3-none-any.whl
- Upload date:
- Size: 287.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
479bd0359fb2657b1a3807eedb0db608ad1f136864a8c28404c7bb26ea71e9de
|
|
| MD5 |
df9b53f68c52a5651eacb6c0c8ca0f6f
|
|
| BLAKE2b-256 |
f929208ae4144d205484c553d53d0b519ddc49b28498c17cc48fe789e94a8179
|