kamidana(jinja2 cli) slack additonal.
Project description
yurumikuji
kamidana slack additonal
Usage
$ pip install yurumikuji
$ echo "SLACK_TOKEN=<your token>" > .env
$ kamidana --additionals=yurumikuji.yurumikuji sample/profile.j2
https://secure.gravatar.com/avatar/a7614593f3f6f46b73da348c89beba81.jpg?s=512&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-512.png
https://secure.gravatar.com/avatar/a7614593f3f6f46b73da348c89beba81.jpg?s=512&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-512.png
active
sample/profile.j2
{{ ("srz_zumix" | slack_user_id | slack_user_info).profile.image_512 }}
{{ ("srz_zumix" | slack_user_id | slack_user_profile).image_512 }}
{{ "srz_zumix" | slack_user_id | slack_user_presence }}
Features
Filter
name | usage | detail | slack required scope |
---|---|---|---|
slack_user_id | <user_name> | slack_user_id | user name|real_name|display_name|email to user_id | users:read |
search_slack_user_id | [<user_names>] | slack_user_id | Find user_id from multiple search candidates (user name|real_name|display_name|email) | users:read |
slack_user_presence | <user_id> | slack_user_presence | get user presence | users:read |
slack_user_info | <user_id> | slack_user_info | get user info | users:read |
slack_user_profile | <user_id> | slack_user_profile | get user profile | users.profile:read |
slack_user_info_by_email | <user_email> | slack_user_info_by_email | get user info | users:read.email |
slack_usergroup_id | <usergroup_name> | slack_usergroup_id | usergroup name to usergroup_id | usergroups:read |
slack_usergroup_member_ids | <usergroup_id> | slack_usergroup_member_ids | get usergroup member user ids | usergroups:read |
slack_usergroup_member_infos | <usergroup_id> | slack_usergroup_member_infos | get usergroup member user info | usergroups:read |
slack_usergroup_member_infos | <usergroup_id> | slack_usergroup_member_infos | get usergroup member user info | usergroups:read |
slack_search | <search_query> | slack_search | search message | search:read |
mention | <user_or_usergroup_id> | mention | get user or group mention text | |
mention_menber | <user_id> | mention | get mention text | |
mention_group | <usergroup_id> | mention | get group mention text |
Globals
name | usage | detail | slack required scope |
---|---|---|---|
slack_users_name | slack_users_name | list users name | users:read |
slack_user_groups | slack_user_groups | list user groups | usergroups:read |
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
yurumikuji-0.6.1.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for yurumikuji-0.6.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c6ebe3ba8d80c6bb3dc22e253c51856d63ced31ffb3ccc1341ae114e8f07353 |
|
MD5 | ae4604f5f566955334b251be7580a525 |
|
BLAKE2b-256 | 0021d70650020240b9f107892abee7ae312c83071210438d9b69b90ecf4b9d78 |