Giter VIP home page Giter VIP logo

chzzk_py's Introduction

chzzk_py's People

Contributors

gunyu1019 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

netchive

chzzk_py's Issues

[Feat] Consider data-model

Describe the new feature

Set up data-model for chzzk service

TODO

  • Set-up DataModel
    • Base Model (ChzzkModel)
    • Live Detail (/service/v2/channels/{channel_id}/live-detail)
    • Live Status (/polling/v2/channels/{channel_id}/live-status)
    • Chat Access Token (/nng_main/v1/chats/access-token?channelId={channel_id}&chatType=STREAMING)
    • User Status (/nng_main/v1/user/getUserStatus)

Addition Context

  1. Developed for chatting with websockets, python
  2. Based on aiohttp, pydantic and async-client-decorator

[Feat] Chat with chzzk-live

Describe the new feature

Consider chatting client

TODO

  • Class ChatClient
    • connect method (websocket)
    • event listener
    • event listener with wait_for method
    • send_chat method
    • history method
  • Class Gateway(ChzzkWebsocket)
    • poll_event method to receive data
    • send_ping method
    • send_pong method
    • Websocket Keep-Alive
    • send_chat method
    • recent_chat method (IDK.. I think message history)
  • Class State(Alias)? to parse data from websocket.
    • hook from Gateway and dispatch to Client
    • parse_chat method
    • parse_donation method
    • parse_resent_chat method
    • parse_notice method
    • parse_blind method
    • parse_penalty method
    • parse_event method

Addition Context

  • Related issue #2

[Feat] Consider HTTP Client

Describe the new feature

Set up Client and HTTP Client to use chzzk live streaming service.

TODO

  • Consider HTTP Client (base_url = https://api.chzzk.naver.com/)
    • live_status method
    • live_detail method
  • Consider HTTP Client (base_url = https://comm-api.game.naver.com)
    • get_user_status method
    • _chat_access_token(Alias) method
  • Consider Client to manage two HTTP Client.
  • login_able and require_login decorating function

Addition Context

  • Related issue #1

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.