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.

Files for tenform, version 0.1.5
Filename, size File type Python version Upload date Hashes
Filename, size tenform-0.1.5-py2.py3-none-any.whl (4.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size tenform-0.1.5.tar.gz (110.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page