Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Python Tests PyPI version Total alerts Language grade: Python

Maintainer: @RustyBower

sopel-stocks

sopel-stocks is an stock lookup plugin for Sopel

Installing

If possible, use pip to install this plugin. Below are example commands; you might need to add sudo and/or call a different pip (e.g. pip3) depending on your system and environment. Do not use setup.py install; Sopel won't be able to load the plugin correctly.

Published release

pip install sopel-modules.stocks

From source

# Clone the repo, then run this in /path/to/sopel-stocks
pip install .

Configuring

You can automatically configure this plugin using the sopel configure --plugins command.

However, if you want or need to configure this plugin manually, you will need to define the following in ~/.sopel/default.cfg

[stocks]
api_key = API_KEY
provider = finnhub (or alphavantage/iexcloud)

Requirements

API Key (from 1 of the following providers)

https://www.alphavantage.co/support/#api-key
https://iexcloud.io/console/tokens
https://finnhub.io/dashboard (recommended)

Python Requirements

requests
sopel

Usage

.stock msft
<sopel> MSFT $123.37 1.6 (1.31%)⬆

.stock aapl amzn goog
<sopel> AAPL $150.83 -2.51 (-1.64%)⬇
<sopel> AMZN $97.06 -5.38 (-5.25%)⬇
<sopel> GOOG $90.445 -4.215 (-4.45%)⬇

Metadata

Release files for sopel-modules.stocks 1.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sopel-modules.stocks 1.2.4
File Size Uploaded Provenance
sopel_modules_stocks-1.2.4.tar.gz 6.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for sopel-modules.stocks 1.2.4
File Interpreter ABI Platform
sopel_modules.stocks-1.2.4-py3-none-any.whl Python 3 none any Details

Total release size: 14.4 kB

Release files / sopel_modules_stocks-1.2.4.tar.gz

Download URL sopel_modules_stocks-1.2.4.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ebe1386df576bd33da548c9c4a9706f2a7e0dcc84feeaa39e50160e1ae772faa
BLAKE2b-256 checksum
How to use checksums
ce246ac99dbe909417cac340ee4b0bfbb92909ccf3390bad20a1cda1593ec447
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release files / sopel_modules.stocks-1.2.4-py3-none-any.whl

Download URL sopel_modules.stocks-1.2.4-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d776e8aaa8a4faf017d5c4782f804cd3c172a9c9b89b3815c4bdd012bac455e3
BLAKE2b-256 checksum
How to use checksums
fe4fd037854d68ffef1484542ecd04e01a127abcffba82ae03c3fd8dbe2ed0b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Security for sopel-modules.stocks 1.2.4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page