Skip to main content

Pyshbullet v1.1.50

Pyshbullet is a async-based API wrapper for the Pushbullet API service.

Example usage:

import pyshbullet
import asyncio
import os
client = pyshbullet.APIClient(TOKEN)
async def main():
  userobj = await client.get_current_user()
  print(userobj.created)
  pushesobj = await client.get_push_history(limit=2)
  print([message.sent.strftime('%m-%d-%Y') for message in pushesobj])
  chats = await client.list_chats()
  print([chat.created.strftime('%m-%d-%Y') for chat in chats])
  print([chat.chatting_with.name for chat in chats if chat.chatting_with != None])
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
@client.event
async def on_message(message):
  print(f"Message sent: {message.sent.strftime('%m-%d-%Y')}")
  print(f'Message content: {message.content}')
  print(f'Message type: {message.type}')
  print(f'Message image url: {message.image_url}')
  print(f'Message file url: {message.file_url}')
  print(f'Message author: {message.author.name}')
  print(f'Message author email: {message.author.email}')
@client.event
async def on_run():
  print('Started running.')
client.run()

Replace TOKEN with your Pushbullet API token.

The code above gets the user associated with the API token, and will listen to the websocket. Once a new message is sent, it prints out the data of the message.

Documentation will be added in the future.

Release files for pyshbullet 1.1.50

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyshbullet 1.1.50
File Size Uploaded
pyshbullet-1.1.50.tar.gz 28.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyshbullet 1.1.50
File Interpreter ABI Platform
pyshbullet-1.1.50-py3-none-any.whl Python 3 none any Details

Total release size:71.0 kB

Release files / pyshbullet-1.1.50.tar.gz

Download URL pyshbullet-1.1.50.tar.gz
Size 28.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4c8500ed26279d61a3e339fd876824acd74b9a7b8e012ea88a6638fc1d6725d6
BLAKE2b-256 checksum
How to use checksums
958756fbb50b270f96de353d489aad5af016961a91d0a84ffed7eaae55ef5a20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.8.0 tqdm/4.61.0 CPython/3.8.10

Release files / pyshbullet-1.1.50-py3-none-any.whl

Download URL pyshbullet-1.1.50-py3-none-any.whl
Size 43.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c44c87d6385f09d591dfc852a64c2a7cfc2679cb09c09d34e0fe208453a084d
BLAKE2b-256 checksum
How to use checksums
b5926127375b09a994127a46b8ab8bf36d4fb56fb689d5f7e86f78c794316626
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.8.0 tqdm/4.61.0 CPython/3.8.10

Release history Release notifications | RSS feed

This release

1.1.50 This release

2 release files

1.0.10

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page