Client Module#

class pypufferblow.client.Client(options: ClientOptions)[source]#

The pufferblow client object.

This class provides methods to interact with the pufferblow API, including user and channel management.

users[source]#

The Users object for managing users.

Type:

Users

channels[source]#

The Channels object for managing channels.

Type:

Channels

Example

>>> from pypufferblow.client import Client, ClientOptions
>>> client_options = ClientOptions(
...    host="localhost",
...    port=7575,
...    username="user1",
...    password="SUPER_SERCRET_PASSWORD"
... )
>>> client = Client(client_options)
channels() Channels[source]#

Create a Channels object for communicating with the channels routes.

Returns:

The Channels object for managing channels.

Return type:

Channels

users() Users[source]#

Create a Users object for communicating with the users routes.

Returns:

The Users object for managing users.

Return type:

Users

class pypufferblow.client.ClientOptions(user: UserModel | None = None, **kwargs)[source]#

ClientOptions class used for managing the Client object options.

to_channels_options() ChannelsOptions[source]#

Convert to ChannelsOptions object.

Returns:

The ChannelsOptions object.

Return type:

ChannelsOptions

to_users_options() UsersOptions[source]#

Convert to a UsersOptions object.

Returns:

The UserOptions object.

Return type:

UserOptions