Skip to content

Commit

Permalink
v0.1.6
Browse files Browse the repository at this point in the history
- sync (WibuAPI) and async (AsyncWibuAPI)
- add pypi and npm package search
- add novel (novelupdates search, noveltoon search, chapter list, and read chapter)
- add chatbot ai (bard and gpt)
- some bug fix

telegram bot -> https://wibuapibot.t.me
support chat -> https://ybotssupport.t.me
updates channel -> https://spreadnetworks.t.me
  • Loading branch information
zYxDevs authored Sep 13, 2023
2 parents d90dbc3 + e9ecf23 commit c55b14f
Show file tree
Hide file tree
Showing 6 changed files with 720 additions and 77 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/telegram-notifier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Notify on Telegram

on:
fork:
push:
release:
issue_comment:
types: created
watch:
types: started
pull_request_review_comment:
types: created
pull_request:
types: [opened, closed, reopened]
issues:
types: [opened, pinned, closed, reopened]
jobs:
notify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Notify the commit on Telegram.
uses: EverythingSuckz/github-telegram-notify@main
with:
bot_token: '${{ secrets.BOT_TOKEN }}'
chat_id: '${{ secrets.CHAT_ID }}'
topic_id: '${{ secrets.TOPIC_ID }}'
21 changes: 13 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

setuptools.setup(
name="wibuapi",
version="0.1.5",
description="Official Python Wrapper for Wibu API.",
version="0.1.6",
description="Official Sync and Async Python Wrapper for Wibu API.",
long_description=long_description,
long_description_content_type="text/markdown",
license="MIT",
author="Yoga Pranata",
author_email="yoga@zyxdevs.eu.org",
url="https://github.com/zYxDevs/wibu-api-py",
url="https://wibu-api.eu.org",
packages=setuptools.find_packages(),
keywords=[
"wibu",
Expand All @@ -29,7 +29,7 @@
"jdrama",
"jav",
"music",
"booru",
"novel",
"api",
"ip",
"terabox",
Expand All @@ -43,11 +43,16 @@
"facebook",
"youtube",
],
project_urls={
"Source": "https://github.com/zYxDevs/wibu-api-py",
"Funding": "https://github.com/sponsors/zYxDevs",
"Documentation": "https://wibu-api.eu.org/redoc",
"Bug Tracker": "https://github.com/zYxDevs/wibu-api-py/issues",
"Changelog": "https://github.com/zYxDevs/wibu-api-py/releases",
},
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand All @@ -60,6 +65,6 @@
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
],
install_requires=["requests"],
python_requires=">=3.6",
install_requires=["requests", "aiohttp"],
python_requires=">=3.8",
)
1 change: 1 addition & 0 deletions wibuapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@

from .wibuapi import WibuAPI
from .zyxdevs import Etc
from .wibuapi_async import AsyncWibuAPI
11 changes: 11 additions & 0 deletions wibuapi/utils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# (c) 2022-2023 Yoga Pranata a.k.a zYxDevs
# This file contains utilities for wibuapi.

import aiohttp


async def getwibu(url: str, timeout: int):
async with aiohttp.ClientSession() as session:
async with session.get(url, timeout=timeout) as response:
response.raise_for_status()
return await response.json()
Loading

0 comments on commit c55b14f

Please sign in to comment.