asknews-0.9.2


توضیحات

Python SDK for AskNews
ویژگی مقدار
سیستم عامل -
نام فایل asknews-0.9.2
نام asknews
نسخه کتابخانه 0.9.2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده Emergent Methods <contact@emergentmethods.ai>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/asknews/
مجوز MIT
# AskNews Python SDK ![Static Badge](https://img.shields.io/badge/python-3.8%20%7C%203.9%20%7C%203.10%20%7C%203.11%20%7C%203.12%20%7C%203.13-blue?style=flat-square) Python SDK for the AskNews API. ## Installation ```bash pip install asknews ``` ## Usage ```python from asknews_sdk import AskNewsSDK ask = AskNewsSDK( api_key="<YOUR API KEY>" scopes=["news", "chat", "stories", "analytics"] ) query = "Effect of fed policy on tech sector" # prompt-optimized string ready to go for any LLM: news_context = ask.news.search_news(query).as_string ``` And you will have a prompt-optimized string ready to go for any LLM. The API doesn't stop there, explore a wide range of endpoints: - /stories, high level event tracking and state of the art article clustering - /forecasts, industry leading forecasting on any real-time event - /analytics, time-series data on finance and politics - /deepnews, a deep research agent that can explore the new knowledge graph, X, Reddit, Google, Wikipedia and more to build forecasts, reports, analytics, and anything else your system may need. - /graph, build any news knowledge graph imaginable from the largest news graph on the planet - /websearch, search the web and get back an LLM distillation of all the relevant web pages Find full details at the [AskNews API documentation](https://docs.asknews.app). ## Support Join our [Discord](https://discord.gg/2Yw66XXEhY) to see what other people are building, and to get support with your projects.


نیازمندی

مقدار نام
- asgiref>=3.7.2
- crontab>=1.0.1
- cryptography<46.0.5,>=40.0.0
- httpx<0.29.0,>=0.27.2
- orjson>=3.9.10
- pydantic[email]>=2.10.4


زبان مورد نیاز

مقدار نام
>=3.8 Python


نحوه نصب


نصب پکیج whl asknews-0.9.2:

    pip install asknews-0.9.2.whl


نصب پکیج tar.gz asknews-0.9.2:

    pip install asknews-0.9.2.tar.gz