[](https://travis-ci.org/IBM-Bluemix/service-discovery-client-python)
This is the source code for bluemix-service-discovery, a pip package that serves as a client to Python apps attempting to interact with the Bluemix Service Discovery service.
## How To Use
1. Open a terminal and run
```bash
pip install bluemix-service-discovery
```
2. Import the package wherever you want to register your service or lookup a service in the registry.
```python
from bluemix_service_discovery.service_publisher import ServicePublisher
publisher = ServicePublisher('test-service', 300, 'UP',
'https://test-service.mybluemix.net', 'http',
tags=['test'])
```
```python
import json
from bluemix_service_discovery.service_locator import ServiceLocator
services = json.loads(locator.get_services()).get('instances')
```
## Example app
To see how to use this client in your app please check out the [Logistics Wizard](https://github.com/IBM-Bluemix/logistics-wizard) demo. You will want to pay attention to [server/web/\_\_init\_\_.py](https://github.com/IBM-Bluemix/logistics-wizard/blob/master/server/web/__init__.py) for a service registration and [server/utils.py](https://github.com/IBM-Bluemix/logistics-wizard/blob/master/server/utils.py) for a service lookup example.
## More Info
[Service Discovery](https://console.ng.bluemix.net/catalog/services/service-discovery/)
[Documentation](https://console.ng.bluemix.net/docs/services/ServiceDiscovery/index.html)
## License
See [License.txt](License.txt) for license information.
Metadata
Release files for bluemix-service-discovery 0.0.1
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 |
|---|---|---|---|---|
| bluemix-service-discovery-0.0.1.tar.gz | 5.3 kB | Without provenance | Details for bluemix-service-discovery-0.0.1.tar.gz |
Release files / bluemix-service-discovery-0.0.1.tar.gz
| Download URL | bluemix-service-discovery-0.0.1.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
62db6924cbe2e32571a8e546bc543f4162fd9570db46e1b22bdc05468b76e97e
|
|
BLAKE2b-256 checksum How to use checksums |
c3d1fee8e7e0cc3cd376c7684ca7bce7d420fa997c6b77a795115a07316daaa3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for bluemix-service-discovery 0.0.1
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.