Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

newsdash

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

newsdash

NewsDash is a fast and reliable Python wrapper for the News API that simplifies accessing the latest news articles from around the world.

  • 0.1.1a0
  • PyPI
  • Socket score

Maintainers
1

NewsDash

NewsDash

Python 3.9-3.11 License: MIT Code style: black GitHub stars GitHub last commit


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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc