===================================
This library integrates server side Backplane clients with the Backplane server protocol (https://github.com/janrain/janrain-backplane-2).
Installation
============
```shell
pip install backplane2-pyclient
```
Usage
=====
You should have client credentials for a Backplane server, with a bus provisioned for your use. If you have admin access to a backplane server, the following steps will get you set up:
1. Provision a client (/v2/provision/client/update)
2. Provision a bus (/v2/provision/bus/update)
3. Grant client access to bus (/v2/provision/grant/add)
For more information see the [Backplane server readme](https://github.com/janrain/janrain-backplane-2/blob/master/README20.md).
Example:
```python
import backplane
from backplane import ClientCredentials, Client, Message, channel_from_scope
backplane.debug() # Enable debugging output
client_credentials = ClientCredentials('https://backplane1.janrainbackplane.com', 'client id', 'secret')
client = Client(client_credentials, True, 'bus:mybusname')
access_token = client.get_regular_token('mybusname')
channel = channel_from_scope(access_token.scope)
message = Message('mybusname', channel, 'test', 'payload', True)
client.post_message(message)
# Poll server for messages
message_wrapper = None
while True:
# connect to Backplane server for 20 seconds at a time
message_wrapper = client.get_messages(message_wrapper, 20)
...
```
Metadata
Release files for backplane2-pyclient 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| backplane2-pyclient-0.2.tar.gz | 8.0 kB | Without provenance | Details for backplane2-pyclient-0.2.tar.gz |
Release files / backplane2-pyclient-0.2.tar.gz
| Download URL | backplane2-pyclient-0.2.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d63cae12d7c70ea8cdd8548c6369089514790989249c226e226d8e7fff1bc412
|
|
BLAKE2b-256 checksum How to use checksums |
f50c4af6c8d58806f0af620e88ed6f9851a3be28c2d54f50ecfe88e1148c2ec5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for backplane2-pyclient 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.