Skip to main content

PushDeer for Python

Project description

pypushdeer

PushDeer SDK for Python.

install

pip install pypushdeer

Usage:

1. Use pushdeer default server

from pypushdeer import PushDeer

pushdeer = PushDeer(pushkey="your_push_key")
pushdeer.send_text("hello world", desp="optional description")
pushdeer.send_markdown("# hello world", desp="**optional** description in markdown")
pushdeer.send_image("https://github.com/easychen/pushdeer/raw/main/doc/image/clipcode.png")
pushdeer.send_image(
    "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVQYV2NgYAAAAAMAAWgmWQ0AAAAASUVORK5CYII=")

2. Use self-hosted server

from pypushdeer import PushDeer

pushdeer = PushDeer(server="https://your-server-here", pushkey="your_push_key")

3. Use unique configuration for each message

from pypushdeer import PushDeer

pushdeer = PushDeer()
pushdeer.send_text("hello world", server="some_server", pushkey="some_key")

TODO:

  • unit test
  • exception handling
  • arguments validate

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pypushdeer-0.0.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

pypushdeer-0.0.3-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file pypushdeer-0.0.3.tar.gz.

File metadata

  • Download URL: pypushdeer-0.0.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pypushdeer-0.0.3.tar.gz
Algorithm Hash digest
SHA256 8b8e35595a45c4c6247a19761f471c9d5b5c8cad6c5b8e8076c8ca486f29bff6
MD5 525c6ce88c45d8af645ae904c5bcce2c
BLAKE2b-256 b70cb9ff1a3bef64eed4f8b4ca78e3f495c86e2c2900240c37fdb1ed3bf8443b

See more details on using hashes here.

File details

Details for the file pypushdeer-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pypushdeer-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pypushdeer-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d17317a8109715b6446bb61bc66535e33831b9c8f1be9eddc303d22657cef0c9
MD5 39713c20a07dcfda38467fd0c00be34d
BLAKE2b-256 73dc044f0b7187b5d12ba8aaaf677463c6cb3e3d03849c606cb9486c879dd43c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page