You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/09/22 07:38:17 UTC
[GitHub] [pulsar] tisonkun opened a new pull request, #17796: docs: Updating Python installation section
tisonkun opened a new pull request, #17796:
URL: https://github.com/apache/pulsar/pull/17796
cc @BewareMyPower @shibd @RobertIndie @Demogorgon314 @Anonymitaet
### Documentation
<!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
- [ ] `doc-required`
(Your PR needs to update docs and you will update later)
- [ ] `doc-not-needed`
(Please explain why)
- [x] `doc`
(Your PR contains doc changes)
- [ ] `doc-complete`
(Docs have been already added)
### Matching PR in forked repository
N/A
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] tisonkun commented on a diff in pull request #17796: docs: Updating Python installation section
Posted by GitBox <gi...@apache.org>.
tisonkun commented on code in PR #17796:
URL: https://github.com/apache/pulsar/pull/17796#discussion_r978214650
##########
site2/docs/client-libraries-python.md:
##########
@@ -9,29 +9,21 @@ import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
````
+You can use a Pulsar Python client to create producers, consumers, and readers.
-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. You can read the [API docs](/api/python) for the Python client.
-All the methods in producer, consumer, and reader of a Python client are thread-safe.
+## Installation
-pdoc-generated API docs for the Python client are available [here](/api/python).
+Use [pip](https://pip.pypa.io/) to install the latest version:
Review Comment:
Yes. And installing library via `pip` is the idiom in Python community. Although documenting how to build from source can help for hackers, this is currently impossible because of https://github.com/apache/pulsar/pull/17796#discussion_r977310599.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] tisonkun commented on a diff in pull request #17796: docs: Updating Python installation section
Posted by GitBox <gi...@apache.org>.
tisonkun commented on code in PR #17796:
URL: https://github.com/apache/pulsar/pull/17796#discussion_r977311588
##########
site2/docs/client-libraries-python.md:
##########
@@ -44,23 +36,10 @@ pip install 'pulsar-client[all]==@pulsar:version_number@'
Installation via PyPi is available for the following Python versions:
-Platform | Supported Python versions
-:--------|:-------------------------
-MacOS >= 11.0 | 3.7, 3.8, 3.9 and 3.10
-Linux (including Alpine Linux) | 3.7, 3.8, 3.9 and 3.10
-
-
-### Install from source
-
-To install the `pulsar-client` library by building from source, follow [instructions](client-libraries-cpp.md#compilation) and compile the Pulsar C++ client library. That builds the Python binding for the library.
-
-To install the built Python bindings:
-
-```shell
-git clone https://github.com/apache/pulsar
-cd pulsar/pulsar-client-cpp/python
-sudo python setup.py install
-```
Review Comment:
It's really complex to build the Python client "correctly" from source right now. See https://github.com/apache/pulsar/issues/17468.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] tisonkun commented on a diff in pull request #17796: docs: Updating Python installation section
Posted by GitBox <gi...@apache.org>.
tisonkun commented on code in PR #17796:
URL: https://github.com/apache/pulsar/pull/17796#discussion_r978214650
##########
site2/docs/client-libraries-python.md:
##########
@@ -9,29 +9,21 @@ import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
````
+You can use a Pulsar Python client to create producers, consumers, and readers.
-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. You can read the [API docs](/api/python) for the Python client.
-All the methods in producer, consumer, and reader of a Python client are thread-safe.
+## Installation
-pdoc-generated API docs for the Python client are available [here](/api/python).
+Use [pip](https://pip.pypa.io/) to install the latest version:
Review Comment:
Yes. And installing library via `pip` is the idiom in Python community. Although documenting how to build from source can help for hackers, this is currently complex because of https://github.com/apache/pulsar/pull/17796#discussion_r977310599.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] tisonkun commented on a diff in pull request #17796: docs: Updating Python installation section
Posted by GitBox <gi...@apache.org>.
tisonkun commented on code in PR #17796:
URL: https://github.com/apache/pulsar/pull/17796#discussion_r977315543
##########
site2/docs/client-libraries-python.md:
##########
@@ -9,29 +9,21 @@ import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
````
+You can use a Pulsar Python client to create producers, consumers, and readers.
-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. You can read the API docs for the Python client [here](/api/python).
Review Comment:
```suggestion
All the methods in producer, consumer, and reader of a Python client are thread-safe. You can read the [API docs](/api/python) for the Python client.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] tisonkun commented on a diff in pull request #17796: docs: Updating Python installation section
Posted by GitBox <gi...@apache.org>.
tisonkun commented on code in PR #17796:
URL: https://github.com/apache/pulsar/pull/17796#discussion_r977314727
##########
site2/docs/client-libraries-python.md:
##########
@@ -9,29 +9,21 @@ import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
````
+You can use a Pulsar Python client to create producers, consumers, and readers.
-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. You can read the API docs for the Python client are available [here](/api/python).
Review Comment:
```suggestion
All the methods in producer, consumer, and reader of a Python client are thread-safe. You can read the API docs for the Python client [here](/api/python).
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] tisonkun commented on a diff in pull request #17796: docs: Updating Python installation section
Posted by GitBox <gi...@apache.org>.
tisonkun commented on code in PR #17796:
URL: https://github.com/apache/pulsar/pull/17796#discussion_r978214357
##########
site2/docs/client-libraries-python.md:
##########
@@ -9,29 +9,21 @@ import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
````
+You can use a Pulsar Python client to create producers, consumers, and readers.
-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.
Review Comment:
I formerly move it to the build from source section since users need to know this technical detail there.
Later I remove the build from source section as described in https://github.com/apache/pulsar/pull/17796#discussion_r977310599.
This statement can be removed:
1. Users don't need to know the Python client is a wrapper of C++ client as they just use it.
2. It's not quite correct that we _can_ provide the same features. Some gule code is still required.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] tisonkun commented on a diff in pull request #17796: docs: Updating Python installation section
Posted by GitBox <gi...@apache.org>.
tisonkun commented on code in PR #17796:
URL: https://github.com/apache/pulsar/pull/17796#discussion_r977310599
##########
site2/docs/client-libraries-python.md:
##########
@@ -44,23 +36,10 @@ pip install 'pulsar-client[all]==@pulsar:version_number@'
Installation via PyPi is available for the following Python versions:
-Platform | Supported Python versions
-:--------|:-------------------------
-MacOS >= 11.0 | 3.7, 3.8, 3.9 and 3.10
-Linux (including Alpine Linux) | 3.7, 3.8, 3.9 and 3.10
-
-
-### Install from source
-
-To install the `pulsar-client` library by building from source, follow [instructions](client-libraries-cpp.md#compilation) and compile the Pulsar C++ client library. That builds the Python binding for the library.
-
-To install the built Python bindings:
-
-```shell
-git clone https://github.com/apache/pulsar
-cd pulsar/pulsar-client-cpp/python
-sudo python setup.py install
-```
Review Comment:
This is simply incorrect. We should update the doc in README.md under `pulsar-client-cpp` and add back this section to guide users there.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] BewareMyPower merged pull request #17796: docs: Updating Python installation section
Posted by GitBox <gi...@apache.org>.
BewareMyPower merged PR #17796:
URL: https://github.com/apache/pulsar/pull/17796
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] tisonkun commented on pull request #17796: docs: Updating Python installation section
Posted by GitBox <gi...@apache.org>.
tisonkun commented on PR #17796:
URL: https://github.com/apache/pulsar/pull/17796#issuecomment-1255964083
@Anonymitaet comments resolved. Could you give this patch another turn?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] Anonymitaet commented on a diff in pull request #17796: docs: Updating Python installation section
Posted by GitBox <gi...@apache.org>.
Anonymitaet commented on code in PR #17796:
URL: https://github.com/apache/pulsar/pull/17796#discussion_r978205991
##########
site2/docs/client-libraries-python.md:
##########
@@ -9,29 +9,21 @@ import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
````
+You can use a Pulsar Python client to create producers, consumers, and readers.
-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.
Review Comment:
Why removing `Pulsar Python client library is a wrapper over the existing [C++ client library](client-libraries-cpp.md).`? Does it provide more context for users?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] tisonkun commented on pull request #17796: docs: Updating Python installation section
Posted by GitBox <gi...@apache.org>.
tisonkun commented on PR #17796:
URL: https://github.com/apache/pulsar/pull/17796#issuecomment-1254655032
Preview should be almost the same (except style) with the render md version:
<img width="1058" alt="image" src="https://user-images.githubusercontent.com/18818196/191688851-71f07564-cf7b-4430-a76b-abbc623d6167.png">
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] Anonymitaet commented on a diff in pull request #17796: docs: Updating Python installation section
Posted by GitBox <gi...@apache.org>.
Anonymitaet commented on code in PR #17796:
URL: https://github.com/apache/pulsar/pull/17796#discussion_r978206760
##########
site2/docs/client-libraries-python.md:
##########
@@ -9,29 +9,21 @@ import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
````
+You can use a Pulsar Python client to create producers, consumers, and readers.
-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. You can read the [API docs](/api/python) for the Python client.
-All the methods in producer, consumer, and reader of a Python client are thread-safe.
+## Installation
-pdoc-generated API docs for the Python client are available [here](/api/python).
+Use [pip](https://pip.pypa.io/) to install the latest version:
Review Comment:
Is this the only way to install a Python client?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org