A Python3 API for talking to Stack Exchange chat.
- Supported Python versions (tests run by Github Actions): 3.7, 3.8, 3.9, 3.10, 3.11, 3.12
- Unclear versions (not run on Github Actions as Github no longer supports them): 2.7 (sic), 3.4, 3.5, 3.6
pip install chatexchange
pulls in the following libraries:
- BeautifulSoup (
pip install beautifulsoup4
) - Requests (
pip install requests
) - python-websockets for the experimental websocket listener
(
pip install websocket-client
). This module is optional; without it,initSocket()
from SEChatBrowser will not work.
The package has a number of additional development requirements; install them with
pip install chatexchange[dev]
or .[dev]
if you are in the top directory of a local copy of the source.
make install-dependencies
will install the necessary Python package dependencies into your current environment (active virtualenv or system site packages)make test
will run the testsmake run-example
will run the example scriptmake
will run the above three in order
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.