NativeNativeTwistedTornadoAsyncioPythonFeatures Matrix for PubNub Python V4 SDK

 

These docs are for PubNub 4.0 for Python V4 which is our latest and greatest! For the docs of the older versions of the SDK, please check PubNub 3.0 for Python, PubNub 3.0 for Python-Tornado and PubNub 3.0 for Python-Twisted.

If you have questions about the PubNub for Python SDK, please contact us at support@pubnub.com.

NameDescription
GrantThis function establishes access permissions for PubNub Access Manager (PAM) by setting the read or write attributes.
Root permissions for the Access ManagerWhen you init with secret key, you get root permissions for the Access Manager. With this feature you don't have to grant access to your servers to access channel data. The servers get all access on all channels.
NameDescription
Add ChannelsAdd channel to a channel group.
List Channels In Channel GroupList all channels of a channel group.
Remove ChannelsRemove channel from channel group.
Remove Channels GroupsRemove channel groups.
NameDescription
Add Device To ChannelsEnables push notifications on provided set of channels.
List Channels From DeviceList all channels on which push notification has been enabled.
Remove DeviceDisable push notifications from all channels which is registered.
Remove Device From ChannelsDisable push notifications on provided set of channels.
NameDescription
Objects API Add MembersSupports the Remove Members method of the Objects API
Objects API Create SpaceSupports the Create Space method of the Objects API
Objects API Create UserSupports the Create User method of the Objects API
Objects API Delete SpaceSupports the Delete Space method of the Objects API
Objects API Delete UserSupports the Delete User method of the Objects API
Objects API Get MembersSupports the Get Members method of the Objects API
Objects API Get MembershipsSupports the Get Memberships method of the Objects API
Objects API Get SpaceSupports the Get Space method of the Objects API to retrieve a specific space
Objects API Get SpacesSupports the Get Spaces method of the Objects API
Objects API Get UserSupports the Get User method of the Objects API to retrieve a specific user
Objects API Get UsersSupports the Get Users method of the Objects API
Objects API Join SpacesSupports the Join Spaces method of the Objects API
Objects API Leave SpacesSupports the Leave Spaces method of the Objects API
Objects API Update MembersSupports the Update Members method of the Objects API
Objects API Update MembershipsSupports the Update Memberships method of the Objects API
Objects API Update SpaceSupports the Update Space method of the Objects API
Objects API Update UserSupports the Update User method of the Objects API
NameDescription
Get StateGet state is used to get the key/value pairs specific to a subscriber uuid.
HeartbeatTimeout events are triggered when the server does not hear a hearbeat from the client within a default timeout time of 280 seconds.
Here NowObtain information about the current state of a channel including a list of unique user-ids currently subscribed to the channel and the total occupancy count of the channel.
Set StateSet state is used to set key/value pairs specific to a subscriber uuid.
Where NowObtain information about the current list of a channels to which a uuid is subscribed to.
NameDescription
FireFire method used for publishing. When a message is sent using fire, it will not be replicated to other Points of Presence, it will remain at the originating Point of Presence, and is not eligible for archiving via the Storage and Playback feature.
Publish AsynchronouslyPublish the message asynchronously.
Publish RAW JSONPublish JSON as is.
Publish using GETPublish using HTTP GET
Publish with MetadataPublish extra meta with the request used for Message Filtering.
Store FlagAbility to skip message from storage.
NameDescription
Send a SignalHas support to send a Signal
NameDescription
CountSpecifies the number of historical messages to return.
Count of Messages on ChannelsThe API is a history based API that simply does a mostly normal history operation but instead of returning the messages in a channel it returns the count of messages. Without actually calling history on those channels this API gives you the ability to say if there are messages in the chat channel you can go look at further.
Include TimetokenWhether event dates time tokens should be included in response or not.
ReverseTraverse the timeline in reverse starting with the oldest message first.
Start EndTime token delimiting the start/end of time slice (exclusive) to pull messages from.
NameDescription
Objects API Membership events listenerHas support to listen to Membership Events from Objects API
Objects API Space events listenerHas support to listen to Space Events from Objects API
Objects API User events listenerHas support to listen to User Events from Objects API
Publisher UUIDHas the publisher UUID of the published message.
Signal ListenerHas support to listen to Signal messages
Subscribe to channel groupsAbility to subscribe to channel groups.
Subscribe to channelsAbility to subscribe to channels.
Subscribe to presence channel groupsAbility to subscribe to presence channel groups.
Subscribe to presence channelsAbility to subscribe to presence channels.
Subscribe with timetokenSubscribe with timetoken.
Wildcard subscribeWildcard subscribes allow the client to subscribe to multiple channels using wildcard. E.g., if you subscribe to a.* you will get all messages for a.b, a.c, a.x. The wildcarded * portion refers to any portion of the channel string name after the dot (.).
NameDescription
TimeThis function will return a 17 digit precision Unix epoch from the server.