Kagi API Python Wrapper
Project description
PyKagi
Installation
pip install PyKagi --upgrade
Usage
Universal Summarizer API
from PyKagi import UniversalSummarizer
API_KEY = "your api key"
US = UniversalSummarizer(API_KEY)
method = "POST"
url = "https://namu.wiki/w/Midjourney"
engine = "agnes"
target_language = "KO"
cache = True
result = US.summarize(
method = method,
url = url,
engine = engine,
target_language = target_language,
cache = cache
)
result
Search API
from PyKagi import Search
API_KEY = "your api key"
S = Search(API_KEY)
query = "Steve Jobs"
limit = 10
result = S.search(
query=query,
limit=limit
)
result
Contributors
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PyKagi-0.0.1.tar.gz
(7.0 kB
view hashes)
Built Distribution
PyKagi-0.0.1-py3-none-any.whl
(7.6 kB
view hashes)