newsdata-client
Python client for Newsdata API
Installation
Install using pip:
pip install newsdata-client
Usage
Import the client class into your project, and initialize using the api_key.
from newsdata_client import NewsDataClient
news_client = NewsDataClient(api_key="pub_XXXXXXXXXXX")
Endpoints
There are four endpoint functions you can use. You can add keyword arguments for parameters you like. You can read this for more detail on the parameters available for all the endpoints
# Latest news endpoint
response = news_client.latest()
# Crypto related news endpoint
response = news_client.crypto()
# News archive endpoint, for this endpoint you will have to
# give atleast one parameter, otherwise it will raise NewsDataException
response = news_client.archive(category=["technology"])
# News sources endpoint
response = news_client.sources()
License
This project in under MIT License
Metadata
Release files for newsdata-client 0.1.0
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 |
|---|---|---|---|---|
| newsdata_client-0.1.0.tar.gz | 3.9 kB | Without provenance | Details for newsdata_client-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| newsdata_client-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for newsdata_client-0.1.0-py3-none-any.whl |
Total release size: 10.1 kB
Release files / newsdata_client-0.1.0.tar.gz
| Download URL | newsdata_client-0.1.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b8e841de2c3e03712327d4dfae198d11bd334e508c934f60bfcf9e68d1d4d7bd
|
|
BLAKE2b-256 checksum How to use checksums |
8a03fdc55a68df58998a10f204a4626e69200d298d6df93c03070ddb24ae49f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.17
|
Release files / newsdata_client-0.1.0-py3-none-any.whl
| Download URL | newsdata_client-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f27b9f6630f48bb6ef5d800e59254c6e844ed5bff182010854a06a83593edb1c
|
|
BLAKE2b-256 checksum How to use checksums |
01fd428747f3f7823ae1c656f8c6e7220f1fe8ae45280d998f108d6656280d93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.17
|
Security for newsdata-client 0.1.0
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.