Skip to main content

kakaowork-py

(Unofficial) Kakaowork Python client

PyPI PyPI - Python Version Downloads GitHub Documentation Status CI codecov

Table of Contents

Prerequisites

  • Python >= 3.7

Installation

Use the package manager pip to install kakaowork-py

pip install kakaowork

If you want to use CLI, install with the extras 'cli'

pip install kakaowork[cli]

Usages

from kakaowork import Kakaowork


def main():
  client = Kakaowork(app_key="your_app_key")
  r = client.users.list(limit=10)  # get a response of users using limit
  print(r.users)
  while r.cursor:  # loop until it does not to exist
    print(r.users)
    r = client.users.list(cursor=r.cursor)  # get a response of users using cursor

if __name__ == '__main__':
  main()
import asyncio

from kakaowork import AsyncKakaowork


async def main():
    client = AsyncKakaowork(app_key="your_app_key")
    r = await client.users.list(limit=10)  # get a response of users using limit
    print(r.users)
    while r.cursor:  # loop until it does not to exist
        print(r.users)
        r = await client.users.list(cursor=r.cursor)  # get a response of users using cursor

if __name__ == '__main__':
    loop = asyncio.get_event_loop()
    loop.run_until_complete(main())

If you have installed it with the extras 'cli', you can use the command line below in your shell.

$ kakaowork --help
Usage: kakaowork [OPTIONS] COMMAND [ARGS]...

Options:
  -k, --app-key TEXT
  --help              Show this message and exit.

Commands:
  bots
  conversations
  departments
  messages
  spaces
  users

$ kakaowork -k <your_app_key> bots info
ID:     1
Name:   Test
Status: activated

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

Copyright (c) 2021 Sung-Kyu Yoo.

This project is MIT license.

Release files for kakaowork 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kakaowork 0.8.0
File Size Uploaded
kakaowork-0.8.0.tar.gz 19.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kakaowork 0.8.0
File Interpreter ABI Platform
kakaowork-0.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 39.2 kB

Release files / kakaowork-0.8.0.tar.gz

Download URL kakaowork-0.8.0.tar.gz
Size 19.2 kB
Tags Source
SHA-256 checksum
How to use checksums
efba26eab7af9766c685277d36ec96c16a8fd2a6bbb693d77f7ddbca111cdafd
BLAKE2b-256 checksum
How to use checksums
02e264de5333e88cb342de7b6499acbd6558b9854085f8b01c39d33f9ff2112c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.10.1 Linux/5.11.0-1022-azure

Release files / kakaowork-0.8.0-py3-none-any.whl

Download URL kakaowork-0.8.0-py3-none-any.whl
Size 20.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4bb5f202a1ee61574d35f99958861cf88a0d3ad9572d9ae38154e2e23237a4db
BLAKE2b-256 checksum
How to use checksums
3a944e31aaa931f0829c8deca4a12b387a69eab407c193105e9999a128aa6eb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.10.1 Linux/5.11.0-1022-azure

Release history Release notifications | RSS feed

This release

0.8.0 This release

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page