service-registry 0.2.0
pip install service-registry==0.2.0
Latest version
Released:
Python client for Rackspace Service Registry.
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache License (2.0)
- Author: Rackspace Hosting, Inc.
Classifiers
- Development Status
- Framework
- Programming Language
Project description
# 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)
```
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache License (2.0)
- Author: Rackspace Hosting, Inc.
Classifiers
- Development Status
- Framework
- Programming Language
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 Distribution
File details
Details for the file service-registry-0.2.0.tar.gz
.
File metadata
- Download URL: service-registry-0.2.0.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
62f2225d6dcf0c37dcefe8ece94f4b90a013942c2b7478729cb5e7c664f10281
|
|
MD5 |
2d9ff205f5073f3baffbbdc71a33f5af
|
|
BLAKE2b-256 |
b419c6c33489f89ee2b747eb404b2ad93b3b78b849b49aed2c5cd0f69c806544
|