# yurumikuji
[![PyPI version](https://badge.fury.io/py/yurumikuji.svg)](https://badge.fury.io/py/yurumikuji)
[![Python Versions](https://img.shields.io/pypi/pyversions/wandbox_api.svg)](https://pypi.org/project/yurumikuji/)
[kamidana][] slack additonal
## Usage
```sh
$ 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
```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|
[kamidana]:https://github.com/podhmo/kamidana
Raw data
{
"_id": null,
"home_page": "https://github.com/srz-zumix/yurumikuji/",
"name": "yurumikuji",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "Slack, Jinja2",
"author": "srz_zumix",
"author_email": "zumix.cpp@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/d7/a1/de437b43013b25cf69c17b332cb54f9c29e4d9f2928b8bcd10d0a2297dc8/yurumikuji-0.6.1.tar.gz",
"platform": "any",
"description": "# yurumikuji\n\n[![PyPI version](https://badge.fury.io/py/yurumikuji.svg)](https://badge.fury.io/py/yurumikuji)\n[![Python Versions](https://img.shields.io/pypi/pyversions/wandbox_api.svg)](https://pypi.org/project/yurumikuji/)\n\n[kamidana][] slack additonal\n\n## Usage\n\n```sh\n$ pip install yurumikuji\n$ echo \"SLACK_TOKEN=<your token>\" > .env\n$ kamidana --additionals=yurumikuji.yurumikuji sample/profile.j2\nhttps://secure.gravatar.com/avatar/a7614593f3f6f46b73da348c89beba81.jpg?s=512&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-512.png\nhttps://secure.gravatar.com/avatar/a7614593f3f6f46b73da348c89beba81.jpg?s=512&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-512.png\nactive\n```\n\nsample/profile.j2\n\n```j2\n{{ (\"srz_zumix\" | slack_user_id | slack_user_info).profile.image_512 }}\n{{ (\"srz_zumix\" | slack_user_id | slack_user_profile).image_512 }}\n{{ \"srz_zumix\" | slack_user_id | slack_user_presence }}\n```\n\n## Features\n\n### Filter\n\n|name|usage|detail|slack required scope|\n|:--|:--|:--|:--|\n|slack_user_id|\\<user_name\\> \\| slack_user_id |user name\\|real_name\\|display_name\\|email to user_id|users:read|\n|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|\n|slack_user_presence|\\<user_id\\> \\| slack_user_presence |get user presence|users:read|\n|slack_user_info|\\<user_id\\> \\| slack_user_info |get user info|users:read|\n|slack_user_profile|\\<user_id\\> \\| slack_user_profile |get user profile|users.profile:read|\n|slack_user_info_by_email|\\<user_email\\> \\| slack_user_info_by_email |get user info|users:read.email|\n|slack_usergroup_id|\\<usergroup_name\\> \\| slack_usergroup_id |usergroup name to usergroup_id|usergroups:read|\n|slack_usergroup_member_ids|\\<usergroup_id\\> \\| slack_usergroup_member_ids |get usergroup member user ids|usergroups:read|\n|slack_usergroup_member_infos|\\<usergroup_id\\> \\| slack_usergroup_member_infos |get usergroup member user info|usergroups:read|\n|slack_usergroup_member_infos|\\<usergroup_id\\> \\| slack_usergroup_member_infos |get usergroup member user info|usergroups:read|\n|slack_search|\\<search_query\\> \\| slack_search | search message |search:read|\n|mention|\\<user_or_usergroup_id\\> \\| mention | get user or group mention text ||\n|mention_menber|\\<user_id\\> \\| mention | get mention text ||\n|mention_group|\\<usergroup_id\\> \\| mention | get group mention text ||\n\n### Globals\n\n|name|usage|detail|slack required scope|\n|:--|:--|:--|:--|\n|slack_users_name| slack_users_name | list users name |users:read|\n|slack_user_groups| slack_user_groups | list user groups |usergroups:read|\n\n[kamidana]:https://github.com/podhmo/kamidana\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "kamidana(jinja2 cli) slack additonal.",
"version": "0.6.1",
"project_urls": {
"Homepage": "https://github.com/srz-zumix/yurumikuji/"
},
"split_keywords": [
"slack",
" jinja2"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0021d70650020240b9f107892abee7ae312c83071210438d9b69b90ecf4b9d78",
"md5": "ae4604f5f566955334b251be7580a525",
"sha256": "2c6ebe3ba8d80c6bb3dc22e253c51856d63ced31ffb3ccc1341ae114e8f07353"
},
"downloads": -1,
"filename": "yurumikuji-0.6.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ae4604f5f566955334b251be7580a525",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 5684,
"upload_time": "2024-06-20T04:33:37",
"upload_time_iso_8601": "2024-06-20T04:33:37.487841Z",
"url": "https://files.pythonhosted.org/packages/00/21/d70650020240b9f107892abee7ae312c83071210438d9b69b90ecf4b9d78/yurumikuji-0.6.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d7a1de437b43013b25cf69c17b332cb54f9c29e4d9f2928b8bcd10d0a2297dc8",
"md5": "5ce9c1d179a54f4f12f9912d00f71199",
"sha256": "c93e2095b5325209ec793f54cf9506585c2c30de58107ed648568c63f5f5c064"
},
"downloads": -1,
"filename": "yurumikuji-0.6.1.tar.gz",
"has_sig": false,
"md5_digest": "5ce9c1d179a54f4f12f9912d00f71199",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4371,
"upload_time": "2024-06-20T04:33:39",
"upload_time_iso_8601": "2024-06-20T04:33:39.269804Z",
"url": "https://files.pythonhosted.org/packages/d7/a1/de437b43013b25cf69c17b332cb54f9c29e4d9f2928b8bcd10d0a2297dc8/yurumikuji-0.6.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-20 04:33:39",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "srz-zumix",
"github_project": "yurumikuji",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "markupsafe",
"specs": []
},
{
"name": "jinja2",
"specs": [
[
">=",
"3.1"
]
]
},
{
"name": "kamidana",
"specs": [
[
">=",
"0.10"
]
]
},
{
"name": "slack_sdk",
"specs": []
},
{
"name": "python-dotenv",
"specs": []
}
],
"tox": true,
"lcname": "yurumikuji"
}