# Python Rackspace Service Registry client
A Python client for Rackspace Service Registry.
# License
This library is distributed under the [Apache license](http://www.apache.org/licenses/LICENSE-2.0.html).
# Usage
```Python
from service_registry import Client
RACKSPACE_USERNAME = 'username'
RACKSPACE_KEY = 'api key'
client = Client(RACKSPACE_USERNAME, RACKSPACE_KEY)
```
## Services
Create a service with a heartbeat timeout of 10:
```Python
service_id = 'my-service-1'
payload = {'metadata': {'key': 'value'}}
heartbeat_timeout = 10
client.services.create(service_id, heartbeat_timeout, payload)
```
Heartbeat a service:
```Python
service_id = 'my-service-1'
token = 'returned-heartbeat-token'
client.services.heartbeat(service_id, token)
```
A Python client for Rackspace Service Registry.
# License
This library is distributed under the [Apache license](http://www.apache.org/licenses/LICENSE-2.0.html).
# Usage
```Python
from service_registry import Client
RACKSPACE_USERNAME = 'username'
RACKSPACE_KEY = 'api key'
client = Client(RACKSPACE_USERNAME, RACKSPACE_KEY)
```
## Services
Create a service with a heartbeat timeout of 10:
```Python
service_id = 'my-service-1'
payload = {'metadata': {'key': 'value'}}
heartbeat_timeout = 10
client.services.create(service_id, heartbeat_timeout, payload)
```
Heartbeat a service:
```Python
service_id = 'my-service-1'
token = 'returned-heartbeat-token'
client.services.heartbeat(service_id, token)
```
Metadata
Release files for service-registry 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| service-registry-0.2.0.tar.gz | 11.1 kB | Details |
Release files / service-registry-0.2.0.tar.gz
| Download URL | service-registry-0.2.0.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
62f2225d6dcf0c37dcefe8ece94f4b90a013942c2b7478729cb5e7c664f10281
|
|
BLAKE2b-256 checksum How to use checksums |
b419c6c33489f89ee2b747eb404b2ad93b3b78b849b49aed2c5cd0f69c806544
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |