asknews-0.9.2
0.9.2
0.9.1
0.9.0
0.8.0
0.7.9
0.7.8
0.7.7
0.7.58
0.7.57
0.7.56
0.7.55
0.7.54
0.7.53
0.7.52
0.7.51
0.7.50
0.7.5
0.7.49
0.7.48
0.7.47
0.7.46
0.7.45
0.7.44
0.7.43
0.7.42
0.7.41
0.7.40
0.7.4
0.7.39
0.7.38
0.7.37
0.7.36
0.7.35
0.7.34
0.7.33
0.7.32
0.7.31
0.7.30
0.7.3
0.7.29
0.7.28
0.7.27
0.7.26
0.7.25
0.7.24
0.7.23
0.7.22
0.7.21
0.7.20
0.7.2
0.7.19
0.7.18
0.7.17
0.7.16
0.7.15
0.7.14
0.7.13
0.7.12
0.7.11
0.7.10
0.7.1
0.7.0
0.6.9
0.6.8
0.6.7
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.11
0.6.10
0.6.1
0.6.0
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.0
0.3.9
0.3.8
0.3.7
0.3.6
0.3.5
0.3.4
0.3.13
0.3.12
0.3.11
0.3.10
0.13.9
0.13.8
0.13.7
0.13.6
0.13.5
0.13.4
0.13.3
0.13.2
0.13.19
0.13.18
0.13.17
0.13.16
0.13.15
0.13.14
0.13.13
0.13.12
0.13.11
0.13.10
0.13.1
0.13.0
0.12.5
0.12.4
0.12.3
0.12.2
0.12.1
0.12.0
0.11.9
0.11.8
0.11.7
0.11.6
0.11.5
0.11.4
0.11.32
0.11.31
0.11.30
0.11.3
0.11.29
0.11.28
0.11.27
0.11.26
0.11.25
0.11.24
0.11.23
0.11.22
0.11.21
0.11.20
0.11.2
0.11.19
0.11.18
0.11.17
0.11.16
0.11.15
0.11.14
0.11.13
0.11.12
0.11.11
0.11.10
0.11.1
0.11.0
0.10.4
0.10.3
0.10.2
0.10.1
0.10.0
توضیحات
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

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