Code Monkey home page Code Monkey logo

kakaowork-py's Introduction

kakaowork-py's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

kakaowork-py's Issues

Make a PR template

Need to create a news fragment, explain the changes and make unit tests for the changes.

Documentation via Sphinx

Generate docs skeletons via Sphinx.
And create pages like flask, requests, etc.
Finally, create gh-pages, readthebooks or etc. automatically.

Handling undefined model attributes

An exception occurs when an undefined field is added to any model.

$ poetry run kakaowork -k $(cat ~/kakaoworkbot-appkey) users list
Traceback (most recent call last):
...
TypeError: __new__() got an unexpected keyword argument 'display_name'

Support CLI

Examples

$ KAKAOWORK_APP_KEY=your_app_key kakaowork users list # or, kakaowork --app-key=your_app_key users list
1  name1  ...
2 name2 ...

$ KAKAOWORK_APP_KEY=your_app_key kakaowork users list -o json # or, kakaowork --app-key=your_app_key users list -o json
[
  {"id": 1, "name": "name1", ...},
  {"id": 2, "name": "name2", ...}
]

Fix rtd build error

Perhaps it's because the dependency resolution didn't work properly...

https://readthedocs.org/projects/kakaowork-py/builds/14243283/

Running Sphinx v4.1.1

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/kakaowork-py/envs/latest/lib/python3.7/site-packages/sphinx/config.py", line 327, in eval_config_file
    exec(code, namespace)
  File "/home/docs/checkouts/readthedocs.org/user_builds/kakaowork-py/checkouts/latest/docs/conf.py", line 18, in <module>
    from kakaowork import __version__  # noqa: E402
  File "/home/docs/checkouts/readthedocs.org/user_builds/kakaowork-py/checkouts/latest/kakaowork/__init__.py", line 8, in <module>
    from kakaowork.client import (Kakaowork, AsyncKakaowork)
  File "/home/docs/checkouts/readthedocs.org/user_builds/kakaowork-py/checkouts/latest/kakaowork/client.py", line 5, in <module>
    import aiosonic
  File "/home/docs/checkouts/readthedocs.org/user_builds/kakaowork-py/envs/latest/lib/python3.7/site-packages/aiosonic/__init__.py", line 31, in <module>
    import chardet
ModuleNotFoundError: No module named 'chardet'

Singular command and alias

Only can use plural command now. (ex) messages
So need to support singular command and alias (ex) message, msg

Support asyncio

implements async (coroutines) API. Refer asyncio

I use the aiosonic package to solve this issue because it has fewer dependencies and supports Python 3.6 or higher.

Add AsyncKakaowork in the client module using the same API of Kakaowork except the async keyword.

Create examples

Needs to create examples for users.

Contents

  • Querying something (sync/async)
  • Sending a message with blocks using blockkit and blockkitbuilder (sync/async)
  • Extending a reactive callback

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.