GithubHelp home page GithubHelp logo

python_api_client's Introduction

Calcbench Client

A Python client for Calcbench's API.

Calcbench normalizes the data XBRL tagged accounting metrics in the 10-K and 10-Q documents public companies file the with SEC. If you are spending a lot of time on Edgar and know some Python this package might make your life easier.

Get a free two week Calcbench trial @ https://www.calcbench.com/join.

Your Calcbench username (your email) and Calcbench password are your credentials for this package.

See examples @ https://www.calcbench.com/home/api

To install the client with pip use:

pip install git+git://github.com/calcbench/python_api_client.git

To set your credentials either set CALCBENCH_USERNAME and CALCBENCH_PASSWORD environment variables or call:

calcbench.set_credentials({calcbench_username}, {calcbench_password})

To get normalized data call normalized_dataframe, for instance:

calcbench.normalized_dataframe(company_identifiers=['msft', 'ibm'], metrics=['revenue', 'assets'], start_year=2010, start_period=1, end_year=2014, end_period=4)

To get 'As Reported' statements, call as_reported_raw, for instance:

calcbench.as_reported('msft', 'income')

To get breakout/segments call breakouts_raw, for instance:

calcbench.breakouts_raw(company_identifiers=['MSFT', 'AXP'], metrics=['operatingSegmentRevenue', 'operatingSegmentAssets'])

Company identifiers, tickers in most cases, can be retrieved by Standard Industrial Classification (SIC) code or index, for instance

calcbench.tickers(index='DJIA')

Search for footnotes/disclosures, for instance to search for "going concern" in coal company filings:

coal_companies = cb.tickers(SIC_codes=[1200])

cb.text_search(company_identifiers=coal_companies, full_text_search_term='"going concern"', year=2015, period=0)

This is a work in progress. Let me know if you have suggestions or encounter bugs, [email protected].

Credit

https://github.com/calcbench/python_api_client/commit/6c2312525fa365acc91bd8e979037fc2492845f3 https://github.com/someben

python_api_client's People

Contributors

andrewkittredge avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.