You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by hj...@apache.org on 2021/08/09 07:25:13 UTC
[pulsar] branch master updated: [Docs]Update docs for Client
libraries Python (#10984)
This is an automated email from the ASF dual-hosted git repository.
hjf pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new 9311f7f [Docs]Update docs for Client libraries Python (#10984)
9311f7f is described below
commit 9311f7fa1e852169ac3c2d51090053834a3fc8be
Author: fengtao1998 <37...@users.noreply.github.com>
AuthorDate: Mon Aug 9 15:24:34 2021 +0800
[Docs]Update docs for Client libraries Python (#10984)
* Update client-libraries-python.md
* Update site2/docs/client-libraries-python.md
Co-authored-by: Anonymitaet <50...@users.noreply.github.com>
* Update client-libraries-python.md
* Update client-libraries-python.md
* Update site2/docs/client-libraries-python.md
Co-authored-by: Anonymitaet <50...@users.noreply.github.com>
Co-authored-by: Jennifer Huang <47...@users.noreply.github.com>
---
site2/docs/client-libraries-python.md | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/site2/docs/client-libraries-python.md b/site2/docs/client-libraries-python.md
index 24808b6..49c75b4 100644
--- a/site2/docs/client-libraries-python.md
+++ b/site2/docs/client-libraries-python.md
@@ -4,7 +4,7 @@ title: Pulsar Python client
sidebar_label: Python
---
-Pulsar Python client library is a wrapper over the existing [C++ client library](client-libraries-cpp.md) and exposes all of the [same features](/api/cpp). You can find the code in the [`python` subdirectory](https://github.com/apache/pulsar/tree/master/pulsar-client-cpp/python) of the C++ client code.
+Pulsar Python client library is a wrapper over the existing [C++ client library](client-libraries-cpp.md) and exposes all of the [same features](/api/cpp). You can find the code in the [Python directory](https://github.com/apache/pulsar/tree/master/pulsar-client-cpp/python) of the C++ client code.
All the methods in producer, consumer, and reader of a Python client are thread-safe.
@@ -12,7 +12,7 @@ All the methods in producer, consumer, and reader of a Python client are thread-
## Install
-You can install the [`pulsar-client`](https://pypi.python.org/pypi/pulsar-client) library either via [PyPi](https://pypi.python.org/pypi), using [pip](#installation-using-pip), or by building the library from source.
+You can install the [`pulsar-client`](https://pypi.python.org/pypi/pulsar-client) library either via [PyPi](https://pypi.python.org/pypi), using [pip](#installation-using-pip), or by building the library from [source](https://github.com/apache/pulsar/tree/master/pulsar-client-cpp).
### Install using pip
@@ -62,7 +62,7 @@ The complete Python API reference is available at [api/python](/api/python).
## Examples
-You can find a variety of Python code examples for the `pulsar-client` library.
+You can find a variety of Python code examples for the [pulsar-client](/pulsar-client-cpp/python) library.
### Producer example
@@ -151,7 +151,7 @@ while True:
In addition to subscribing a consumer to a single Pulsar topic, you can also subscribe to multiple topics simultaneously. To use multi-topic subscriptions, you can supply a regular expression (regex) or a `List` of topics. If you select topics via regex, all topics must be within the same Pulsar namespace.
-The following is an example.
+The following is an example:
```python
import re
@@ -405,5 +405,5 @@ This section provides step-by-step instructions on how to use the end-to-end enc
This is from the consumer side.
```
- Received msg 'b'encryption message'' id = '(0,0,-1,-1)'
+ Received msg 'encryption message' id = '(0,0,-1,-1)'
```