Skip to main content

Error correction

Project description

๐Ÿ™ Sigan - Very simple CLI slack alarm manager ๐Ÿ™

๊ฐ„๋‹จํ•œ CLI๋ฅผ ํ†ตํ•ด ์•Œ๋žŒ์„ ์„ค์ •ํ•  ์ˆ˜ ์žˆ๋Š” ํŽธ๋ฆฌํ•œ ์•ฑ์ž…๋‹ˆ๋‹ค. ๊ฐ„๋‹จํ•œ ๋ช…๋ น์œผ๋กœ Slack์— ์•Œ๋žŒ์„ ๋งŒ๋“ค์–ด ๋ณด์„ธ์š”!.

๐Ÿ›Ž Current Version 0.1.19

Upgrade with pip install sigan --upgrade

๐Ÿš€ Installation & Settings

๋จผ์ € ์•„๋ž˜ ๋ฒ„ํŠผ ๋งํฌ๋ฅผ ํ†ตํ•ด slack app์„ ๋‹ค์šด๋กœ๋“œ ๋ฐ›์•„์•ผ ํ•ฉ๋‹ˆ๋‹ค. (๋งํฌ ์šฐ์ธก ์ƒ๋‹จ์— ์„ค์น˜ํ•˜์‹ค ์›Œํฌ์ŠคํŽ˜์ด์Šค๋ฅผ ์„ ํƒํ•˜์‹ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.)

Add to Slack

์•„์ง slack ์ธก์˜ ์ •์‹ ์Šน์ธ ๋˜์ง€์•Š์•˜์ง€๋งŒ ์ถ”ํ›„ ์ •์‹ ์Šน์ธ์„ ๋ฐ›์„ ๊ฒƒ์ž…๋‹ˆ๋‹ค. ํ•ดํ‚น ํ”„๋กœ๊ทธ๋žจ์ด ์žˆ๋Š” ๊ฒƒ์€ ์•„๋‹ˆ๋‹ˆ ์˜คํ•ด ์•ˆํ•˜์…”๋„ ๋ฉ๋‹ˆ๋‹ค! ><

๋งํฌ๋ฅผ ํ†ตํ•ด Sigan Slack APP์„ ๋‹ค์šด ๋ฐ›์œผ์…จ๋‹ค๋ฉด ์•„๋ž˜์™€ ๊ฐ™์ด ๋ฉ”์‹œ์ง€๊ฐ€ ๋„์ฐฉํ•ฉ๋‹ˆ๋‹ค. ๋ฉ”์‹œ์ง€์—์„œ team id๊ฐ€ ๋„์ฐฉํ–ˆ๋Š”์ง€ ํ™•์ธํ•ด์ฃผ์‹œ๊ณ  ๋ณต์‚ฌํ•ด์ฃผ์„ธ์š”! ![[register message.png]]

๋จผ์ € python์ด 3.9 ๋ฒ„์ „ ์ด์ƒ์ธ์ง€ ํ™•์ธํ•ด์ฃผ์„ธ์š”. ์ดํ›„ ์•„๋ž˜์˜ ์ปค๋งจ๋“œ๋ฅผ ํ„ฐ๋ฏธ๋„์— ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.

pip install sigan

์„ค์น˜๊ฐ€ ๋๋‚ฌ๋‹ค๋ฉด ์•„๋ž˜์˜ ์ปค๋งจ๋“œ๋กœ ๋“ฑ๋ก์„ ์ง„ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

sigan register

๊ทธ๋Ÿฌ๋ฉด team id๋ฅผ ์ž…๋ ฅํ•˜๋ผ๋Š” ๋ฌธ๊ตฌ๊ฐ€ ๋‚˜์˜ค๊ณ  ์ด์ „์— ๋ณต์‚ฌํ•ด๋‘์—ˆ๋˜ team id๋ฅผ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.

์˜ฌ๋ฐ”๋ฅธ team id๋ฅผ ์ž…๋ ฅํ–ˆ๋‹ค๋ฉด ๋“ฑ๋ก์ด ์™„๋ฃŒ๋˜์—ˆ๋‹ค๋Š” ๋ฉ”์‹œ์ง€๊ฐ€ DM์œผ๋กœ ๋„์ฐฉํ•ฉ๋‹ˆ๋‹ค.

์ด์ œ ๋ชจ๋“  ์ค€๋น„๋Š” ๋งˆ์ณค์Šต๋‹ˆ๋‹ค! ํ•˜์ง€๋งŒ ์ œํ•œ ์‚ฌํ•ญ์ด ๋ช‡๊ฐ€์ง€๋งŒ ํ™•์ธํ•ด์ฃผ์„ธ์š”!

โš ๏ธ Restrictions

  • ์ตœ๋Œ€ 120์ผ ํ›„์˜ ๋ฉ”์‹œ์ง€ ์˜ˆ์•ฝ์„ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

  • ๋™์ผํ•œ ์ฑ„๋„์— 5๋ถ„ ์ด๋‚ด์— ๊ฒŒ์‹œํ•  30๊ฐœ ์ด์ƒ์˜ ๋ฉ”์‹œ์ง€๋ฅผ ์˜ˆ์•ฝํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.

  • ์„ค์ •๋œ ์•Œ๋žŒ์ด 5๋ถ„ ์ด๋‚ด์— ์ „์†ก๋  ๊ฒฝ์šฐ ์‚ญ์ œ๊ฐ€ ๋ถˆ๊ฐ€๋Šฅํ•˜๋‹ค๋Š” ์—๋Ÿฌ๋ฅผ ๋ฐœ์ƒ์‹œํ‚ต๋‹ˆ๋‹ค.

  • ์ด๋Š” ๊ณต์‹๋ฌธ์„œ์—์„œ๋Š” 1๋ถ„ ์ด๋‚ด๋ผ๊ณ  ์•ˆ๋‚ด๋˜์–ด ์žˆ์ง€๋งŒ ๋ฒ„๊ทธ๋กœ ์ธํ•œ ๊ฒƒ์ธ์ง€ API์—์„  "OK"๋ฅผ ๋ฐ˜ํ™˜ํ•˜์ง€๋งŒ ๋ฐฑ๊ทธ๋ผ์šด๋“œ์—์„œ ์‹คํŒจํ•ฉ๋‹ˆ๋‹ค.

  • Sigan bot์€ ํ•˜๋‚˜์˜ slack workspace์—์„œ๋งŒ ๋™์ž‘ํ•ฉ๋‹ˆ๋‹ค.

    • ๋งŒ์•ฝ ๋‹ค๋ฅธ slack workspace์—์„œ ์ด์šฉํ•˜์‹œ๋ ค๋ฉด ์ƒ๋‹จ์˜ App to Slack ๋ฒ„ํŠผ ๋งํฌ๋ฅผ ํ†ตํ•ด ์ƒˆ๋กœ์šด slack workspace์— ์„ค์น˜ํ•˜๊ณ  ๋‹ค์‹œ sigan register๋ฅผ ์ง„ํ–‰ํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.
    • ๋˜ํ•œ ๊ธฐ์กด slack workspace์— ์žˆ๋˜ sigan bot์„ ์ œ๊ฑฐํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.

๐Ÿ‘จโ€๐Ÿ’ป Commands

0. Information

์ „๋ฐ˜์ ์ธ command์˜ ์ •๋ณด๋ฅผ ์•Œ๊ณ  ์‹ถ๋‹ค๋ฉด ์•„๋ž˜์˜ ์ปค๋งจ๋“œ๋กœ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

sigan --help

๋”์šฑ ๊ตฌ์ฒด์ ์ธ command์˜ ์ •๋ณด๋ฅผ ์•Œ๊ณ  ์‹ถ๋‹ค๋ฉด ์•„๋ž˜์˜ ์ปค๋งจ๋“œ๋กœ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

sigan <command name> --help 

sigan CLI์˜ ๋ฒ„์ „์€ ์•„๋ž˜์˜ ์ปค๋งจ๋“œ๋กœ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

sigan --version

1. add command

sigan add <content> [-d | --deadline <deadline date>] [-t | --time <notification date> [-i | --interval <day of the week>] [-b | --before <Set confirm alarm date x days before deadline>]] [-c | --channel <Select slack channel>]

1.1 add command rule < content >

  • <content> ํ•„์ˆ˜์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค.
  • ๋งŒ์•ฝ content์— ๊ณต๋ฐฑ์ด ์žˆ๋‹ค๋ฉด "" ์„ ์‚ฌ์šฉํ•ด์„œ ์ž…๋ ฅํ•ด์ฃผ์„ธ์š”. ๊ณต๋ฐฑ์ด ์—†๋‹ค๋ฉด ""์„ ์ƒ๋žตํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

1.2 add command rule < deadline >

  • -d | --deadline <deadline date> ์„ ํƒ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค.
  • Deadline์„ ์„ค์ •ํ•œ ๊ฒฝ์šฐ notification time๊ณผ ๋ณ„๊ฐœ๋กœ deadline ํ•˜๋ฃจ ์ „์— ํ™•์ธ(confirm) ์•Œ๋žŒ์„ ๋ณด๋ƒ…๋‹ˆ๋‹ค.
    • ๋งŒ์•ฝ deadline ํ•˜๋ฃจ ์ „๋ง๊ณ  ๋‹ค๋ฅธ ๋‚ ๋กœ ์„ค์ •ํ•˜๊ณ  ์‹ถ๋‹ค๋ฉด -b | --before ์ปค๋งจ๋“œ๋กœ deadline๋ณด๋‹ค ๋ฉฐ์น  ์ „์— ํ™•์ธ ์•Œ๋žŒ์„ ๋ณด๋‚ผ์ง€ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    • Deadline์„ ์„ค์ •ํ•˜์ง€ ์•Š๋Š”๋‹ค๋ฉด ํ™•์ธ ์•Œ๋žŒ์„ ๋ณด๋‚ด์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

1.3 add command rule < notification time >

  • -t | --time <notification date> ์–ด๋Š์ •๋„ ์„ ํƒ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค.
  • ์‹œ๊ฐ„์„ ์„ค์ •ํ•˜์ง€ ์•Š๊ณ  ๋‚ ์งœ๋งŒ ์ž…๋ ฅํ–ˆ์„ ๊ฒฝ์šฐ default ๊ฐ’์ธ 09:00 ๋กœ ์„ค์ •๋ฉ๋‹ˆ๋‹ค.
  • ์‹œ๊ฐ„๋งŒ ์ž…๋ ฅํ•œ ๊ฒฝ์šฐ -i | --interval ์ปค๋งจ๋“œ๋กœ ๋ฐ˜๋ณต ์ฃผ๊ธฐ๋ฅผ ์„ค์ •ํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.
    • ex) sigan add "notification setting" -t 12:10 -i thu

1.4 add command rule < interval >

  • -i | --interval <day of the week> ์–ด๋Š์ •๋„ ์„ ํƒ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค.
  • 2๊ฐœ ์ด์ƒ์˜ ์š”์ผ์— ๋ฐ˜๋ณตํ•ด์„œ ์•Œ๋žŒ์„ ๋ณด๋‚ด๊ณ  ์‹ถ๋‹ค๋ฉด ""๋ฅผ ์ด์šฉํ•ด ์—ฌ๋Ÿฌ ์š”์ผ์„ ์„ ํƒํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    • ex) sigan add "interval setting" -t 15:00 -i "mon fri"
  • ์•Œ๋žŒ์˜ ๋‚ ์งœ์™€ ์‹œ๊ฐ„ ๋ชจ๋‘ ์ž…๋ ฅํ–ˆ์„ ๊ฒฝ์šฐ interval ์ปค๋งจ๋“œ๋Š” ์‚ฌ์šฉํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.

1.5 add command rule < before >

  • -b | --before <Set confirm alarm date x days before deadline> ์„ ํƒ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค.
    • ex) sigan add "before test" -d 10/20 -t 14:00 -i mon -b 3

1.6 add command rule < channel >

  • -c | --channel <Select slack channel> ์„ ํƒ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค.
  • ์ฑ„๋„์„ ์„ ํƒํ•˜๊ธฐ ์œ„ํ•ด์„  ๋จผ์ € ํ•ด๋‹น ์ฑ„๋„์— Sigan bot์„ ์ดˆ๋Œ€ํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.
    • Sigan bot์ด ์ดˆ๋Œ€๋œ ์ฑ„๋„์˜ ์ด๋ฆ„์„ ์ž…๋ ฅํ•˜๊ณ  ์•Œ๋žŒ์„ ์„ค์ •ํ•œ๋ฉด ํ•ด๋‹น ์ฑ„๋„์— ์•Œ๋žŒ์„ ์ „์†กํ•ฉ๋‹ˆ๋‹ค.
  • ์ฑ„๋„์„ ์„ ํƒํ•˜์ง€ ์•Š์œผ๋ฉด Sigan bot์˜ DM์œผ๋กœ ์•Œ๋žŒ์„ ์ „์†กํ•ฉ๋‹ˆ๋‹ค.

2. show command

show command๋กœ ์•Œ๋žŒ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

sigan show

3. delete command

delete command๋กœ ๊ธฐ์กด ์•Œ๋žŒ์„ ์‚ญ์ œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

sigan delete <alarm_id> [-y | --yes]

-y | --yes ๋กœ ์•Œ๋žŒ์„ ์‚ญ์ œํ•  ๋•Œ ํ™•์ธ ๋ฌธ๊ตฌ๋ฅผ ํ‘œ์‹œํ•˜์ง€ ์•Š์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋งŒ์•ฝ ์„ค์ •ํ•˜์ง€ ์•Š๋Š”๋‹ค๋ฉด ์•Œ๋žŒ์„ ์‚ญ์ œํ•  ๋•Œ ํ™•์ธ ๋ฌธ๊ตฌ๊ฐ€ ์ถœ๋ ฅ๋ฉ๋‹ˆ๋‹ค.

4. chcnt command

chcnt command๋กœ ๊ธฐ์กด ์•Œ๋žŒ์˜ content๋ฅผ ๋ณ€๊ฒฝํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

sigan chcnt <alarm_id> <content>

ex) sigan chcnt 1 "test content change"

5. chdl command

chdl command๋กœ ๊ธฐ์กด ์•Œ๋žŒ์˜ deadline์„ ๋ณ€๊ฒฝํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

sigan chdl <alarm_id> <deadline>

ex) sigan chdl 1 12/25, sigan chdl 1 "2023/12/25"

๊ธฐ์กด ์•Œ๋žŒ์˜ notification time๋ณด๋‹ค ๋” ๋น ๋ฅธ deadline์€ ์„ค์ •ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.

6. chdate command

chdate command๋กœ ๊ธฐ์กด ์•Œ๋žŒ์˜ notification time์„ ๋ณ€๊ฒฝํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

sigan chdate <alarm_id> <date>
  • ์‹œ๊ฐ„๋งŒ ๋ณ€๊ฒฝํ•˜๋Š” ๊ฒฝ์šฐ
    • ex) sigan chdate 1 -d 15:00
  • ๋‚ ์งœ๋งŒ ๋ณ€๊ฒฝํ•˜๋Š” ๊ฒฝ์šฐ
    • ex) sigan chdate 1 10/24, sigan chdate 1 "2023/10/24"
  • ๋‚ ์งœ์™€ ์‹œ๊ฐ„ ๋ชจ๋‘ ๋ณ€๊ฒฝํ•˜๋Š” ๊ฒฝ์šฐ
    • ex) sigan chdate 1 "2023/12/10 15:00"

7. chinv command

chinv command๋กœ ๊ธฐ์กด ์•Œ๋žŒ์˜ interval์„ ๋ณ€๊ฒฝํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

sigan chinv <alarm_id> <interval>

ex) sigan chinv 1 wed

๐Ÿ†• Future Updates

  1. ๊ตฌ๊ธ€ ์บ˜๋ฆฐ๋”์™€์˜ ์—ฐ๋™
  2. Slack slash command์™€์˜ ์—ฐ๋™

๐Ÿšฎ Uninstalling

์ง„์งœ ์„ค๋งˆ ํ˜น์‹œ๋‚˜ ์ฒœ์žฌ์ง€๋ณ€์˜ ์ด์œ ๋กœ ์‚ญ์ œํ•˜๋ ค๊ณ  ํ•˜์‹ ๋‹ค๋ฉด ์•„๋ž˜์˜ command๋กœ ์‚ญ์ œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.....

pip uninstall sigan

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

sigan-0.1.20.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

sigan-0.1.20-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file sigan-0.1.20.tar.gz.

File metadata

  • Download URL: sigan-0.1.20.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.9.6 Windows/10

File hashes

Hashes for sigan-0.1.20.tar.gz
Algorithm Hash digest
SHA256 2e781a38a6cd2703a8b0793cee0e54306b564b97b09e8705ac39d5d2d608c5e7
MD5 de5b599af730fab50152c4e7ea566ace
BLAKE2b-256 537ee6505280dc518d41836243de1e890a89e0474b9b82c9682e1da1703d90d4

See more details on using hashes here.

File details

Details for the file sigan-0.1.20-py3-none-any.whl.

File metadata

  • Download URL: sigan-0.1.20-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.9.6 Windows/10

File hashes

Hashes for sigan-0.1.20-py3-none-any.whl
Algorithm Hash digest
SHA256 0c169a26578a75e70d046ad5b7287e3ad68e37ec6b5cf3c8140b0b3abdb0d925
MD5 6606aff3e2584fbccee38764c07d7a80
BLAKE2b-256 e86b452e02cd8f853c4a0d0fe98e2f62a24fe49b63be6664e7303991255cf95b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page