Skip to main content
# discovery-client

[![CircleCI](https://circleci.com/gh/tomwei7/discovery-client.svg?style=svg)](https://circleci.com/gh/tomwei7/discovery-client)
[![PyPI version](https://badge.fury.io/py/python-discovery-client.svg)](https://badge.fury.io/py/python-discovery-client)

python client for discovery https://github.com/bilibili/discovery only support python3.

### Install

```bash
pip install python-discovery-client
```

### Usage

```python
from discovery import config_from_env, Client


# register instance
client = Client(config_from_env('127.0.0.1:7771')) # use you discovery domain
client.register('your app name', ['http://127.0.0.1:8000'])

# watch instance
def watch_callback(instances):
print('instance change: %s', instances)

client.watch('your app name', watch_callback)

client.stop()
```


Metadata

Release files for python-discovery-client 0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-discovery-client 0.5
File Size Uploaded
python-discovery-client-0.5.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-discovery-client 0.5
File Interpreter ABI Platform
python_discovery_client-0.5-py3-none-any.whl Python 3 none any Details

Total release size: 11.9 kB

Release files / python-discovery-client-0.5.tar.gz

Download URL python-discovery-client-0.5.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a1c505cedbe4fa5302ec285a78106aeca1cc4b821c20947651d8828ba46efbb0
BLAKE2b-256 checksum
How to use checksums
2a931c0d9e5475ed79dabbe705d64d474a72cca95d78dbf71c57eec256b1776b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.1

Release files / python_discovery_client-0.5-py3-none-any.whl

Download URL python_discovery_client-0.5-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5faed61404f02f3fb4278437723bcda8fb28095628fa3dd6d1f523c72af67dd
BLAKE2b-256 checksum
How to use checksums
4356b7d49e4ea77194861f8018398c265544ec8623bb7101002502f5e10af3e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.1

Release history Release notifications | RSS feed

This release

0.5 This release

2 release files

0.4

2 release files

0.3

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page