RPython package that utilizes requests and regex to make digging through the SEC database eand analyzing 10 forms easy.
Project description
tenform
Python package that utilizes requests and regex to make digging through the SEC database and analyzing 10 forms easy.
Usage
>>> from tenform.tenform import stock
>>> import pandas as pd
>>> import os, webbrowser
>>> s = stock('F')
>>> print(s.get_ticker)
<bound method stock.get_ticker of <Stock F>>
>>> l = s.tenk_links('2016-01-01','2018-01-01')
>>> print(l[0])
https://www.sec.gov/Archives/edgar/data/37996/000003799617000013/f1231201610-k.htm
>>> IncStmt = s.tenk_IS('2017-01-01', '2018-01-01')
>>> path = os.path.abspath('temp.html')
>>> url = 'file://' + path
>>> with open(path, 'w') as f:
>>> f.write(IncStmt)
>>> webbrowser.open(url)
>>> os.remove('temp.html')
Functions
stock(ticker)
tenk_links(start_date=’YYYY-MM-DD’, end_date=’YYYY-MM-DD’)
tenk_IS(start_date=’YYYY-MM-DD’, end_date=’YYYY-MM-DD’)
tenq_links(start_date=’YYYY-MM-DD’, end_date=’YYYY-MM-DD’)
tenq_IS(start_date=’YYYY-MM-DD’, end_date=’YYYY-MM-DD’)
License
Free software: MIT license
Documentation: https://tenform.readthedocs.io.
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0 (2018-07-12)
First release on PyPI.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for tenform-0.1.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 473187675e07ee75ccad593443d45d7198f9bf7ccf600f20b8a4a8484b5e12ca |
|
MD5 | 9c3ce8ff74ac176b72c5199179b36ac4 |
|
BLAKE2b-256 | f16db4dd4188641b628b7b3e58b220534d393c48d8978e66d46171daf50b034c |