Custom Emoji manager command-line for Mattermost 😎
Project description
mmemoji
Custom Emoji manager command-line for Mattermost 😎
Features:
- Create custom Emojis
- Delete custom Emojis
Coming soon:
- List custom Emojis
- Search custom Emojis
- Export custom Emojis
Installation
pip install mmemoji
mmemoji --help
(Requires Python >=3.4)
Usage example
Let's take the Party Parrot Emojis as an example.
- First, clone the Git repository or retrieve an archive of it:
git clone https://github.com/jmhobbs/cultofthepartyparrot.com.git
cd cultofthepartyparrot.com
- Then you'll need your Mattermost credentials. You can either pass them to
mmemojiwith the arguments--url/--login-id/--passwordor via environment variables, for example:
export MM_URL='http://127.0.0.1:8065/api/v4'
export MM_LOGIN_ID='user-1@sample.mattermost.com'
export MM_PASSWORD='user-1'
- Finally, run
mmemojito import all the parrots:
mmemoji create --no-clobber {parrots,guests}/hd/*.gif {parrots,guests}/*.gif
Notes:
- Here we rely on shell globbing to select all Emoji from the directories.
- Specifying the
hddirectories first with--no-clobberensures these Emojis are created first and not overwritten by their lower quality counterpart.
Development
- You can clone this repository and install the project in editable mode:
pip install -e .
- You'll find a script to create a local Docker test instance under
tests/:
./tests/scripts/setup.sh
- You can run the test suite with:
python setup.py test
- And last thing, you can install the pre-commit hooks to help with the formatting of your code.
pre-commit install
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
mmemoji-0.1.0.tar.gz
(7.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
mmemoji-0.1.0-py3-none-any.whl
(21.5 kB
view details)
File details
Details for the file mmemoji-0.1.0.tar.gz.
File metadata
- Download URL: mmemoji-0.1.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed7374e6000c0e04880c35412c860c06b8610f1f5435f255e9675d21f568e00d
|
|
| MD5 |
7e9c4a93676b4b30a36850099c206504
|
|
| BLAKE2b-256 |
b57e1fe5d0bbd583161196f9aa2fa66a0866e3233cbcb318a029ab58c5f94a31
|
File details
Details for the file mmemoji-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mmemoji-0.1.0-py3-none-any.whl
- Upload date:
- Size: 21.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e8ac46ac41481c0470ce8b56f3bac50742c7cf6e70343984b37bc75705151d0
|
|
| MD5 |
4237a64415ece4e7292fcf442fce1766
|
|
| BLAKE2b-256 |
4e36e338bb27c745483e631d8cc96e11c309467fb5537a5ec1384b564ddcd5be
|