Merge pull request #71 from duhenglucky/ctypes_docs
docs(readme) fix the pypi link to rocketmq-client-python
diff --git a/README.md b/README.md
index fb8809f..033feca 100644
--- a/README.md
+++ b/README.md
@@ -1,15 +1,15 @@
-# rocketmq-python
+# rocketmq-client-python
[![Build Status](https://travis-ci.org/apache/rocketmq-client-python.svg?branch=master)](https://travis-ci.org/apache/rocketmq-client-python)
[![codecov](https://codecov.io/gh/apache/rocketmq-client-python/branch/ctypes/graph/badge.svg)](https://codecov.io/gh/apache/rocketmq-client-python/branch/ctypes)
-[![PyPI](https://img.shields.io/pypi/v/rocketmq.svg)](https://pypi.org/project/rocketmq)
+[![PyPI](https://img.shields.io/pypi/v/rocketmq-client-python.svg)](https://pypi.org/project/rocketmq-client-python)
RocketMQ Python client, based on [rocketmq-client-cpp](https://github.com/apache/rocketmq-client-cpp), supports Linux and macOS
## Installation
```bash
-pip install rocketmq
+pip install rocketmq-client-python
```
## Usage
@@ -20,10 +20,7 @@
from rocketmq.client import Producer, Message
producer = Producer('PID-XXX')
-producer.set_namesrv_domain('http://onsaddr-internet.aliyun.com/rocketmq/nsaddr4client-internet')
-# For ip and port name server address, use `set_namesrv_addr` method, for example:
-# producer.set_namesrv_addr('127.0.0.1:9887')
-producer.set_session_credentials('XXX', 'XXXX', 'ALIYUN') # No need to call this function if you don't use Aliyun.
+producer.set_namesrv_addr('127.0.0.1:9876')
producer.start()
msg = Message('YOUR-TOPIC')
@@ -48,10 +45,7 @@
consumer = PushConsumer('CID_XXX')
-consumer.set_namesrv_domain('http://onsaddr-internet.aliyun.com/rocketmq/nsaddr4client-internet')
-# For ip and port name server address, use `set_namesrv_addr` method, for example:
-# consumer.set_namesrv_addr('127.0.0.1:9887')
-consumer.set_session_credentials('XXX', 'XXXX', 'ALIYUN') # No need to call this function if you don't use Aliyun.
+consumer.set_namesrv_addr('127.0.0.1:9876')
consumer.subscribe('YOUR-TOPIC', callback)
consumer.start()
diff --git a/setup.py b/setup.py
index d6a3bf9..a1abd68 100755
--- a/setup.py
+++ b/setup.py
@@ -63,8 +63,8 @@
cmdclass['install'] = InstallPlatlib
setup(
- name='rocketmq',
- version='0.5.0',
+ name='rocketmq-client-python',
+ version='0.5.0-rc1',
author='apache.rocketmq',
author_email='dev@rocketmq.apache.org',
packages=find_packages(exclude=('tests', 'tests.*')),