๐Ÿš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more โ†’
Socket
Book a DemoInstallSign in
Socket

twip-api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twip-api

Parses the things provided by twip such as donation, follow

1.0.0
PyPI
Maintainers
1

Twip

PyPI version Downloads Downloads

์ด ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋Š” Twip์˜ ๊ณต์‹ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๊ฐ€ ์•„๋‹ˆ๋ฉฐ, Twip์—์„œ ์ŠคํŠธ๋ฆฌ๋จธ๋“ค์—๊ฒŒ ์ œ๊ณตํ•˜๋Š” Alert Box๋ฅผ ์ด์šฉํ•ด์„œ ๋„๋„ค์ด์…˜, ํŒ”๋กœ์šฐ, ํ˜ธ์ŠคํŒ… ๋“ฑ์˜ ์ด๋ฒคํŠธ์— ๋Œ€ํ•ด์„œ ๊ฐ„ํŽธํ•˜๊ฒŒ ๋Œ€์‘ํ•˜๊ธฐ ์œ„ํ•ด์„œ ๋งŒ๋“ค์–ด์กŒ์Šต๋‹ˆ๋‹ค.

๐Ÿ“ฅ ์„ค์น˜

pip install twip-api

โœ๏ธ Example

from twip import Twip, Donate, Follow, Subscribe, Hosting, Cheer, Sound, Slotmachine

class MyTwip(Twip):
    def on_ready(self):
        print("Twip is ready!")

    def on_donate(self, donate: Donate):
        print(donate)

    def on_follow(self, follow: Follow):
        print(follow)

    def on_subscribe(self, subscribe: Subscribe):
        print(subscribe)

    def on_hosting(self, hosting: Hosting):
        print(hosting)

    def on_cheer(self, cheer: Cheer):
        print(cheer)

    def on_sound(self, sound: Sound):
        print(sound)

if __name__ == "__main__":
    myTwip = MyTwip()
    myTwip.run("your alert box id", "your twip api token")

๋” ๋งŽ์€ ์˜ˆ์ œ๋Š” Github example.py ์—์„œ ํ™•์ธํ•˜์„ธ์š”.

๐Ÿ”ฅ Events

  • on_ready : ํŠธ์œ•๊ณผ ์ฒ˜์Œ์œผ๋กœ ์—ฐ๊ฒฐ๋˜์—ˆ์„ ๋•Œ
  • on_donate : ํ›„์›, ์˜์ƒํ›„์›, ์Šฌ๋กฏ๋จธ์‹ (๋ฃฐ๋ ›)
  • on_subscribe : ๊ตฌ๋…
  • on_hosting : ํ˜ธ์ŠคํŒ…
  • on_cheer : ๋น„ํŠธ
  • on_follow : ํŒ”๋กœ์šฐ
  • on_sound : ์†Œ๋ฆฌ

๐Ÿ“– Version

  • 0.0.7 : ์‚ฌ์šด๋“œ ์ด๋ฒคํŠธ๊ฐ€ ์—†์„ ๋•Œ ๋ฐœ์ƒํ•˜๋˜ ๋ฒ„๊ทธ ์ˆ˜์ •
  • 0.0.8 : api key๋ฅผ ์ง์ ‘ ์ž…๋ ฅ ๋ฐ›๋„๋ก ์ˆ˜์ • (#1)
  • 0.0.8.1 : ํ† ํฐ ํฌ๋กค๋ง ์˜ต์…˜ ์ถ”๊ฐ€ (#1)
  • 0.0.8.2 : ํ•จ์ˆ˜ ์ด๋ฆ„ ๊ด€๋ จ ๋ฒ„๊ทธ ์ˆ˜์ •
  • 0.0.9 : on_ready ์ด๋ฒคํŠธ ์ถ”๊ฐ€
  • 0.0.9.1 : ํฌ๋กค๋ง๋œ ํ† ํฐ์ด ์œ ํšจ๊ธฐ๊ฐ„์ด ์ง€๋‚œ ํ›„์—๋„ ๊ณ„์†ํ•ด์„œ ์‚ฌ์šฉ๋˜๋˜ ๋ฒ„๊ทธ ์ˆ˜์ •
  • 1.0.0 : ํƒ€์ž… ํžŒํŠธ ์ถ”๊ฐ€ ๋ฐ ๊ตฌ์กฐ ๊ฐœํŽธ

๐Ÿ•ฎ License

๊ธฐํƒ€๋ฌธ์˜

Keywords

twip

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts