This release is a pre-release and may not be stable for production use.
NewsDash
NewsDash is a fast and reliable Python wrapper for the News API that simplifies accessing the latest news articles from around the world. 📰
Made by: NaviTheCoderboi
!!! note "Note" This is a WIP library, please report bugs if you find one
Features
- Fast performance: This API wrapper is designed to be fast and efficient, allowing users to retrieve news articles quickly and easily.
- Reliable functionality: The wrapper uses best practices to ensure reliable functionality and accuracy in retrieving news articles from the API.
- Easy-to-use interface: The API wrapper has an intuitive interface that makes it easy for developers to interact with the API and retrieve news articles without having to worry about the details of the underlying protocol.
- Built with aiohttp: The wrapper is built using the popular aiohttp library, which provides high-performance asynchronous HTTP client/server for asyncio and Python. This means the wrapper takes advantage of the latest and greatest in async programming techniques to provide fast and efficient performance.
- Customizable functionality: The wrapper has a range of customization options, allowing developers to tailor their use of the API to their specific needs.
- Flexible data handling: The wrapper is designed to handle a wide variety of data formats, allowing developers to work with the data in the way that best suits their needs.
- Well-documented: The wrapper has clear and comprehensive documentation, making it easy for developers to get up and running quickly and troubleshoot any issues that may arise.
Installation
python -m pip install newsdash
Examples
- with client
from newsdash import NewsDash
import asyncio
cl = NewsDash("your_api_key")
async def get_news():
print(await cl.get_everything(query="tech",pageSize=5))
print(await cl.get_top_headlines(query="Microsoft"))
print(await cl.get_sources(country="in",language="en"))
asyncio.run(get_news())
- with async context manager
from newsdash import NewsDash
import asyncio
async def main():
async with NewsDash("api_key") as nd:
print(await nd.get_everything(query="apple"))
asyncio.run(main())
Important urls
Metadata
Release files for newsdash 0.1.1a0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| newsdash-0.1.1a0.tar.gz | 8.2 kB | Without provenance | Details for newsdash-0.1.1a0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| newsdash-0.1.1a0-py3-none-any.whl | Python 3 | none | any | Details for newsdash-0.1.1a0-py3-none-any.whl |
Total release size: 16.5 kB
Release files / newsdash-0.1.1a0.tar.gz
| Download URL | newsdash-0.1.1a0.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d87c874deba219af784ed0fc0e7565179541ee73f75b50305db4c6ee6a4c7f29
|
|
BLAKE2b-256 checksum How to use checksums |
8e812cd45195d0909440e05f984b2b33a88bedf16d75e858aa06f81efd668e62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.11.3 Linux/5.15.0-1036-azure
|
Release files / newsdash-0.1.1a0-py3-none-any.whl
| Download URL | newsdash-0.1.1a0-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3478665bc0798b80021a56c46bc864d415b70e960962d2325edbe518c7c4fb7d
|
|
BLAKE2b-256 checksum How to use checksums |
a9ba050264dd5ca1fcbbe40ba27e8aa1672689ec8cfb5c718c9b9b6ab534218b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.11.3 Linux/5.15.0-1036-azure
|
Security for newsdash 0.1.1a0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.