PyTwits is a REST-API Wrapper for the Social Trading Network StockTwits. Written in Python it enables the user to easily interact with StockTwits REST-API.
Installation
pip install PyTwits
Example Usage
Following example finds AAPL symbol and prints symbol label and title.
import pytwits
def main():
stocktwits = pytwits.StockTwits()
symbols = stocktwits.search(path='search/symbols', q='AAPL')
aapl = symbols[0]
print("Symbol: {} - Title: {}".format(aapl.symbol, aapl.title))
if __name__ == '__main__':
main()
Output
Symbol: AAPL - Title: Apple Inc.
Documentation
Documentation consists of examples for every API entry point. See docs/examples folder.
License
MIT
Metadata
Release files for PyTwits 1.0.1
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 |
|---|---|---|---|---|
| PyTwits-1.0.1.tar.gz | 5.6 kB | Without provenance | Details for PyTwits-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PyTwits-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for PyTwits-1.0.1-py3-none-any.whl |
Total release size: 13.1 kB
Release files / PyTwits-1.0.1.tar.gz
| Download URL | PyTwits-1.0.1.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f7de0f248dbed9afc43674935cb506dd9e6850603daf0e08ab3c0dcb8d68fd4c
|
|
BLAKE2b-256 checksum How to use checksums |
787b9c7787389343ca337b22bfa1f8904dfcf7bf0f7b20345f47c216067b53f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
|
Release files / PyTwits-1.0.1-py3-none-any.whl
| Download URL | PyTwits-1.0.1-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b7b4d480cfe60671a996bc69e63dbee546f7689e39a4d934ca4c4ac445ca95c7
|
|
BLAKE2b-256 checksum How to use checksums |
a9a7ec2487fa83324550a77ade4d532c4e42f9442c7069c18a7ccc35c4f0abd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
|
Security for PyTwits 1.0.1
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.