{"action":"created","issue":{"url":"https://api.github.com/repos/apache/pulsar/issues/2033","repository_url":"https://api.github.com/repos/apache/pulsar","labels_url":"https://api.github.com/repos/apache/pulsar/issues/2033/labels{/name}","comments_url":"https://api.github.com/repos/apache/pulsar/issues/2033/comments","events_url":"https://api.github.com/repos/apache/pulsar/issues/2033/events","html_url":"https://github.com/apache/pulsar/issues/2033","id":335945900,"node_id":"MDU6SXNzdWUzMzU5NDU5MDA=","number":2033,"title":"Python pulsar-client lacks multi-topic support","user":{"login":"georgewilk01","id":13733050,"node_id":"MDQ6VXNlcjEzNzMzMDUw","avatar_url":"https://avatars2.githubusercontent.com/u/13733050?v=4","gravatar_id":"","url":"https://api.github.com/users/georgewilk01","html_url":"https://github.com/georgewilk01","followers_url":"https://api.github.com/users/georgewilk01/followers","following_url":"https://api.github.com/users/georgewilk01/following{/other_user}","gists_url":"https://api.github.com/users/georgewilk01/gists{/gist_id}","starred_url":"https://api.github.com/users/georgewilk01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgewilk01/subscriptions","organizations_url":"https://api.github.com/users/georgewilk01/orgs","repos_url":"https://api.github.com/users/georgewilk01/repos","events_url":"https://api.github.com/users/georgewilk01/events{/privacy}","received_events_url":"https://api.github.com/users/georgewilk01/received_events","type":"User","site_admin":false},"labels":[{"id":430401260,"node_id":"MDU6TGFiZWw0MzA0MDEyNjA=","url":"https://api.github.com/repos/apache/pulsar/labels/component/documentation","name":"component/documentation","color":"1d76db","default":false},{"id":399568955,"node_id":"MDU6TGFiZWwzOTk1Njg5NTU=","url":"https://api.github.com/repos/apache/pulsar/labels/type/question","name":"type/question","color":"0e8a16","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-06-26T18:45:20Z","updated_at":"2018-11-04T16:44:14Z","closed_at":"2018-09-19T21:45:44Z","author_association":"NONE","body":"#### Expected behavior\r\n\r\nAccording to documentation, post 1.7 API supports multi-topic subscriptions via regx and list. \r\n\r\n#### Actual behavior\r\n\r\nI am unable to subscribe to a limited list of topics in my namespace using python client for pulsar with regx.\r\n\r\n#### Steps to reproduce\r\n\r\nPost message using command line as follows:\r\n`bin/pulsar-client produce my-topic.1   --messages \"user created\"`\r\n\r\nSubscribe consumer written in python as follows:\r\n```\r\nimport pulsar\r\n\r\nmsg_address = \"pulsar://localhost:6650/\" \r\n\r\nclient = pulsar.Client(msg_address)\r\nconsumer = client.subscribe('my-topic.*', 'my-subscription')\r\n\r\nwhile True:\r\n    msg = consumer.receive(timeout_millis=30000)\r\n    print(\"Received message '{}' id='{}'\".format(msg.data(), msg.message_id()))\r\n    consumer.acknowledge(msg)\r\n\r\nclient.close()\r\n```\r\n\r\n#### System configuration\r\n**Pulsar version**: apache-pulsar-2.0.1-incubating\r\n"},"comment":{"url":"https://api.github.com/repos/apache/pulsar/issues/comments/435685227","html_url":"https://github.com/apache/pulsar/issues/2033#issuecomment-435685227","issue_url":"https://api.github.com/repos/apache/pulsar/issues/2033","id":435685227,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTY4NTIyNw==","user":{"login":"merlimat","id":62500,"node_id":"MDQ6VXNlcjYyNTAw","avatar_url":"https://avatars2.githubusercontent.com/u/62500?v=4","gravatar_id":"","url":"https://api.github.com/users/merlimat","html_url":"https://github.com/merlimat","followers_url":"https://api.github.com/users/merlimat/followers","following_url":"https://api.github.com/users/merlimat/following{/other_user}","gists_url":"https://api.github.com/users/merlimat/gists{/gist_id}","starred_url":"https://api.github.com/users/merlimat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/merlimat/subscriptions","organizations_url":"https://api.github.com/users/merlimat/orgs","repos_url":"https://api.github.com/users/merlimat/repos","events_url":"https://api.github.com/users/merlimat/events{/privacy}","received_events_url":"https://api.github.com/users/merlimat/received_events","type":"User","site_admin":false},"created_at":"2018-11-04T16:44:14Z","updated_at":"2018-11-04T16:44:14Z","author_association":"CONTRIBUTOR","body":"@Vanlightly the `subscribe()` method can take a list of topics or a regex in the new version: http://pulsar.apache.org/api/python/#pulsar.Client.subscribe "}}
{"actor":{"display_login":"merlimat"}}