News Signals
Check out this colab notebook to see some of the things you can do with the news-signals library.
Quickstart
Install news-signals in a new environment
conda create -n test-signals-pypi python=3.8
conda activate test-signals-pypi
pip install news-signals
Look at a sample dataset
Do pip install jupyter in your environment to run this code
in a jupyter notebook or in ipython, or just type python in your terminal.
from news_signals.signals_dataset import SignalsDataset
# nasdaq100 sample dataset
dataset_url = 'https://drive.google.com/uc?id=150mfU2YA4ScfTlJvO6Duzto4aT_Q7K3D'
dataset = SignalsDataset.load(dataset_url)
Now try:
import matplotlib.pyplot as plt
fig = dataset.plot()
plt.show()
Installation from source
Install news-signals in a new environment
Run conda create -n news-signals python=3.8 if you're using Anaconda, alternatively python3.8 -m venv news-signals or similar.
Note python>=3.8 is required.
source activate news-signals
git clone https://github.com/AYLIEN/news-signals-datasets.git
cd news-signals-datasets
pip install -r requirements.txt
pip install -e . # install in editable mode
make test # run tests
Generating a new Dataset
python bin/generate_dataset.py \
--start 2022/01/01 \
--end 2022/02/01 \
--input-csv resources/test/nasdaq100.small.csv \
--id-field "Wikidata ID" \
--name-field "Wikidata Label" \
--output-dataset-dir sample_dataset_output
Transform a Dataset
python bin/transform_dataset.py \
--input-dataset-dir sample_dataset_output \
--config resources/default_transform_config.json
This adds anomaly scores, summary headlines and Wikimedia pageviews to each signal in a dataset (specified in config file).
Metadata
Release files for news-signals 0.1.8
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 |
|---|---|---|---|---|
| news-signals-0.1.8.tar.gz | 923.0 kB | Without provenance | Details for news-signals-0.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| news_signals-0.1.8-py3-none-any.whl | Python 3 | none | any | Details for news_signals-0.1.8-py3-none-any.whl |
Total release size: 972.3 kB
Release files / news-signals-0.1.8.tar.gz
| Download URL | news-signals-0.1.8.tar.gz |
|---|---|
| Size | 923.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1d10c0faf6cf3f9620c1fc15b56917a9c1aceed22fa479753dfd9f6d7ffba74
|
|
BLAKE2b-256 checksum How to use checksums |
73102c412516df7ba4c19814bb163fcca8390bd87ff71efc447efe1fb608a2c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / news_signals-0.1.8-py3-none-any.whl
| Download URL | news_signals-0.1.8-py3-none-any.whl |
|---|---|
| Size | 49.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c7e8e41333f954e6d8d9025a870c01bb0dd379e75501ad8260b813b30a855595
|
|
BLAKE2b-256 checksum How to use checksums |
d46a67da4c0e51113227aadabb494982981b257685045b2986ab9cd2ca3c9f87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for news-signals 0.1.8
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.