Skip to main content

Send KakaoTalk messages to your own chat from the command line

Project description

kakaome

카카오톡 나에게 보내기 REST API를 사용하는 작은 Python CLI입니다.

비공식 프로젝트이며 Kakao Corp.와 제휴하거나 Kakao가 보증하는 제품이 아닙니다.

설치

pipx install kakaome

개발 버전은 프로젝트 디렉터리에서 다음과 같이 실행할 수 있습니다.

uv sync
uv run kakaome --help

Kakao Developers 설정

  1. 앱에서 카카오 로그인을 활성화합니다.
  2. Redirect URI로 http://127.0.0.1:8765/callback을 등록합니다.
  3. 동의 항목에서 **카카오톡 메시지 전송 (talk_message)**을 활성화합니다.
  4. 메시지 링크에 사용할 도메인을 제품 링크 > 웹 도메인에 등록합니다.

REST API 키와 기본 링크를 저장하고 최초 한 번 로그인합니다.

kakaome configure --rest-api-key YOUR_KEY --default-link https://example.com
kakaome auth

Client Secret 기능을 활성화한 앱은 --client-secret도 지정합니다.

사용

kakaome send "배치 작업이 완료되었습니다."
kakaome send "결과 보기" --link https://example.com/report
kakaome send "오늘의 결과" --image-url https://example.com/result.png

카카오 기본 텍스트 템플릿은 링크를 필수로 요구하고 최대 200자까지 지원합니다. --image-url은 인터넷에서 공개 접근 가능한 이미지여야 합니다. PDF나 ZIP 같은 로컬 파일을 카카오톡 첨부파일로 직접 업로드하는 기능은 공식 나에게 보내기 REST API에서 지원하지 않습니다.

설정과 OAuth 토큰은 Windows의 %APPDATA%\kakaome\config.json 또는 다른 운영체제의 ~/.config/kakaome/config.json에 저장됩니다. 경로는 KAKAOME_CONFIG 환경 변수로 바꿀 수 있습니다.

배포 빌드

uv build
uv run twine check dist/*

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

kakaome-0.1.0.tar.gz (39.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kakaome-0.1.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file kakaome-0.1.0.tar.gz.

File metadata

  • Download URL: kakaome-0.1.0.tar.gz
  • Upload date:
  • Size: 39.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for kakaome-0.1.0.tar.gz
Algorithm Hash digest
SHA256 23fa87635a07093b171b1019981bb81ad4f099afed97bb1b2eb165de157c7988
MD5 f7053d4c2af93a9a9183ce88b26db5a1
BLAKE2b-256 84dd27949126bc5985247ab71e51dbec4d32147251ab615622123867c0d5599c

See more details on using hashes here.

File details

Details for the file kakaome-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: kakaome-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for kakaome-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b392a9a50e3c66f3ff03204f57d801038ea70f33a36d601b2dbc6cfd5c3d4601
MD5 e4fb625145425f5becdf9cfc6f32bf7c
BLAKE2b-256 62331d9069ba44215de62edef5e22b77b685de0fd0ef66b74406810420e79b8a

See more details on using hashes here.

Supported by

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