Python SDK for BearyChat
Requirements
Python: 2.7/3.5
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
Metadata
Release files for bearychat 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bearychat-0.4.1.tar.gz | 8.5 kB | Without provenance | Details for bearychat-0.4.1.tar.gz |
Release files / bearychat-0.4.1.tar.gz
| Download URL | bearychat-0.4.1.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d6268ee5e8eeec149861b89f71a159fc039b183ece540018a0a4bc8b7d2795d0
|
|
BLAKE2b-256 checksum How to use checksums |
a43a7ef60639dfbc53afeb77162868c6e5a1c2eed6044481fade2828c138c877
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for bearychat 0.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.