Passim.Client¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Passim.Client(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A shared client.
- classmethod new()¶
- Returns:
a new
Passim.Client- Return type:
Creates a new client.
New in version 0.1.0.
- get_carbon_saving()¶
- Returns:
kgs of CO₂e
- Return type:
Gets the carbon saving from using this project.
New in version 0.1.6.
- get_download_saving()¶
- Returns:
bytes
- Return type:
Gets the total number of bytes saved from using this project.
New in version 0.1.6.
- get_items()¶
- Raises:
- Returns:
items, or
Nonefor error- Return type:
Get items currently published by the daemon.
New in version 0.1.0.
- get_name()¶
-
Gets the daemon name.
New in version 0.1.6.
- get_status()¶
- Returns:
the
Passim.Status- Return type:
Gets the daemon status.
New in version 0.1.2.
- get_uri()¶
-
Gets the daemon URI.
New in version 0.1.6.
- get_version()¶
-
Gets the daemon version.
New in version 0.1.0.
- load()¶
- Raises:
- Returns:
Truefor success- Return type:
Loads properties from the passim daemon.
New in version 0.1.0.
- publish(item)¶
- Parameters:
item (
Passim.Item) – aPassim.Item- Raises:
- Returns:
Truefor success- Return type:
Connects to the remote server.
New in version 0.1.0.