Skip to main content

RPython package that utilizes requests and regex to make digging through the SEC database eand analyzing 10 forms easy.

Project description

tenform

https://img.shields.io/pypi/v/tenform.svg https://travis-ci.com/tyfal/tenform.svg Documentation Status

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')
images/tenk_IS.png

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

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

tenform-0.1.5.tar.gz (110.8 kB view hashes)

Uploaded Source

Built Distribution

tenform-0.1.5-py2.py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page