Skip to main content

SDK for BearyChat

Project description

@BearyChat Build Status Development Status Documentation Status

Documentation

Requirements

Installation

Use pip to install bearychat SDK.

$ pip install bearychat

or for development:

$ git clone https://github.com/bearyinnovative/bearychat.py.git
$ cd bearychat.py
$ python setup.py install

Examples

Incoming

from bearychat import incoming

def main():
    data = {
        "text": "hello, **world**",
        "markdown": True,
        "notification": "Hello, BearyChat in Notification",
        "channel": "testing"
    }

    resp = incoming.send(
        "https://hook.bearychat.com/=bw52O/incoming/token",
        data)

    print(resp.status_code)
    print(resp.text)


if __name__ == "__main__":
    main()

Real Time Message

BearyChat SDK DOES NOT provide rtm loop, you should implement it with your favorite websocket library.

A reference implmenetation can be found at examples/rtm_loop.py

Development

OpenAPI Client Building

$ ./scripts/gen_api.py > bearychat/openapi/_api.py

License

MIT

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

bearychat-0.4.1.tar.gz (8.5 kB view details)

Uploaded Source

File details

Details for the file bearychat-0.4.1.tar.gz.

File metadata

  • Download URL: bearychat-0.4.1.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bearychat-0.4.1.tar.gz
Algorithm Hash digest
SHA256 d6268ee5e8eeec149861b89f71a159fc039b183ece540018a0a4bc8b7d2795d0
MD5 dcec119a2d1945c9f40a38ab52e52270
BLAKE2b-256 a43a7ef60639dfbc53afeb77162868c6e5a1c2eed6044481fade2828c138c877

See more details on using hashes here.

Supported by

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