Skip to content

Slacki is a python package for reading and posting in slack groups.

License

Notifications You must be signed in to change notification settings

erdogant/slacki

Repository files navigation

slacki

Python PyPI Version License Github Forks GitHub Open Issues Project Status Downloads Downloads

Slacki is Python package for reading and posting in slack groups.

Star this repo if you like it! ⭐️

Installation

  • Install slacki from PyPI (recommended). slacki is compatible with Python 3.6+ and runs on Linux, MacOS X and Windows.
  • A new environment can be created as following:
conda create -n env_slacki python=3.8
conda activate env_slacki
pip install slacki

Import slacki package

from slacki import slacki

Example:

# Import library
from slacki import slacki

from slacki import slacki
sc = slacki(channel='new_channel', token='xoxp-123234234235-123234234235-123234234235-adedce74748c3844747aed48499bb')

# Get some info about the channels
channels = sc.get_channels()

# Get some info about the users
users = sc.get_users()

# Send messages
queries=['message 1','message 2']
sc.post(queries)

# Snoozing
sc.snooze(minutes=1)

# Post file
sc.post_file(file='./data/slack.png', title='Nu ook met figuren uploaden :)')

# listen (retrieve only last message)
out = sc.retrieve_posts(n=3, retrieve_names=True)

Citation

Please cite slacki in your publications if this is useful for your research. Here is an example BibTeX entry:

@misc{erdogant2020slacki,
  title={slacki},
  author={Erdogan Taskesen},
  year={2020},
  howpublished={\url{https://github.com/erdogant/slacki}},
}

References

Maintainer

  • Erdogan Taskesen, github: erdogant
  • Contributions are welcome.
  • If you wish to buy me a Coffee for this work, it is very appreciated :)

About

Slacki is a python package for reading and posting in slack groups.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published