Skip to content
This repository has been archived by the owner on Dec 9, 2020. It is now read-only.

(incomplete)

License

Apache-2.0, Unknown licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
Unknown
LICENSE-MIT
Notifications You must be signed in to change notification settings

jeremyBanks/stack.chat

 
 

Repository files navigation

stack.chat

stack.chat is an unofficial Python 3 library and command-line tool for Stack Exchange chat.

Links

Installation

Using your Python 3 package manager of choice:

pip3 install stack.chat

For Contributors

Contributors who clone this repo can install our dev packages with pipenv:

pip install pipenv
pipenv install --dev

Basic Usage

CLI

The default config uses a temporary in-memory database and requires your Stack Exchange credentials to be provided through environment variables. We can see this by checking the current config with stack.chat config.

$ stack.chat config
# the default config should appear

Instead, we'll want to use stack.chat init --global to remember our credentials and create a persistent local database.

$ stack.chat init --global
# TODO: what happens here?
# seeding database...

$ stack.chat config
#

We can confirm it worked with TODO:

$ stack.chat whoami --server=se

You can read the latest messages in a chat room with stack.chat tail.

$ stack.chat tail --server=se --room=1
# TODO

Certain common parameters, such as --server and --room, will be saved and used as the default if you omit that parameter the next time it's required for a command. TODO

$ stack.chat tail --since-last --follow
#
^C

Let's TODO!

$ stack.chat send "hello, world"
#

More details are available from the application itself.

$ stack.chat help

Python

The Python interface is not yet stable.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache License, Version 2.0, shall be dual licensed as above, without any additional terms or conditions.

Contributors

Please see the Git commit history or this list on GitHub.

About

(incomplete)

Resources

License

Apache-2.0, Unknown licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
Unknown
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.7%
  • Other 1.3%