library for analyzing company financial documents
Project description
|PyPI version| |Travis-CI|
**DIY-FilingsResearch** is a library for analyzing complex company financial documents from the comfort of your own computer.
Installation
------------
The easiest way to install DIY-FilingsResearch is with pip
::
sudo pip install DIY-FilingsResearch
Made sure your **sys.path** is correct. Note it is currently just a collection of scripts.
Requirements
------------
- Python >= 2.7 or >= 3.3
DIY-FilingsResearch relies on `PyLucene <http://lucene.apache.org/pylucene/>`__.
For installation directions see the `wiki <https://github.com/greedo/DIY-FilingsResearch/wiki/PyLucene-installation-guide>`__.
Initialization
--------------
To start using the library, first import ``Ingestor`` and ``Edgar``
::
from ingestor import Ingestor, Edgar
``Edgar`` (US) and ``Sedar`` (Canada) are currently supported. Note however that the flows are a bit different.
See the note at the bottom about the ``Sedar`` flow.
Simple Download Workflow
-----------------------
First specific what kind of files using the new ``Edgar`` basic object
::
ingestor = Ingestor()
edgar = Edgar("xbrl")
``xbrl`` or ``html`` are currently supported
Then pass ``ingest_stock()`` with a stock ticker to ingest and a directory to store the downloaded docs into
``file_downloader()``
::
ingestor.file_downloader(edgar.ingest_stock("AAPL"), downloaded_docs_directory)
See the `wiki <https://github.com/greedo/DIY-FilingsResearch/wiki/Using-the-document-ingestor#sedar-download-workflow-note>`__
for a special note on ``Sedar`` parsing.
Testing
-------
To run the unit tests, you need pytest
::
pip install pytest
Once you have that, ``cd`` into the root directory of this repo and
::
py.test --tb=line -vs
License
-------
::
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the license.
.. |PyPI version| image:: https://badge.fury.io/py/DIY-FilingsResearch.png
:target: http://badge.fury.io/py/DIY-FilingsResearch
.. |Travis-CI| image:: https://travis-ci.org/greedo/DIY-FilingsResearch.png?branch=master
:target: https://travis-ci.org/greedo/DIY-FilingsResearch
**DIY-FilingsResearch** is a library for analyzing complex company financial documents from the comfort of your own computer.
Installation
------------
The easiest way to install DIY-FilingsResearch is with pip
::
sudo pip install DIY-FilingsResearch
Made sure your **sys.path** is correct. Note it is currently just a collection of scripts.
Requirements
------------
- Python >= 2.7 or >= 3.3
DIY-FilingsResearch relies on `PyLucene <http://lucene.apache.org/pylucene/>`__.
For installation directions see the `wiki <https://github.com/greedo/DIY-FilingsResearch/wiki/PyLucene-installation-guide>`__.
Initialization
--------------
To start using the library, first import ``Ingestor`` and ``Edgar``
::
from ingestor import Ingestor, Edgar
``Edgar`` (US) and ``Sedar`` (Canada) are currently supported. Note however that the flows are a bit different.
See the note at the bottom about the ``Sedar`` flow.
Simple Download Workflow
-----------------------
First specific what kind of files using the new ``Edgar`` basic object
::
ingestor = Ingestor()
edgar = Edgar("xbrl")
``xbrl`` or ``html`` are currently supported
Then pass ``ingest_stock()`` with a stock ticker to ingest and a directory to store the downloaded docs into
``file_downloader()``
::
ingestor.file_downloader(edgar.ingest_stock("AAPL"), downloaded_docs_directory)
See the `wiki <https://github.com/greedo/DIY-FilingsResearch/wiki/Using-the-document-ingestor#sedar-download-workflow-note>`__
for a special note on ``Sedar`` parsing.
Testing
-------
To run the unit tests, you need pytest
::
pip install pytest
Once you have that, ``cd`` into the root directory of this repo and
::
py.test --tb=line -vs
License
-------
::
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the license.
.. |PyPI version| image:: https://badge.fury.io/py/DIY-FilingsResearch.png
:target: http://badge.fury.io/py/DIY-FilingsResearch
.. |Travis-CI| image:: https://travis-ci.org/greedo/DIY-FilingsResearch.png?branch=master
:target: https://travis-ci.org/greedo/DIY-FilingsResearch
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
Close
Hashes for DIY-FilingsResearch-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ea36115c1d67adc943ff3d5ee8ce79723724c04ec22b6d4fe92f118138ec847 |
|
MD5 | 525d343bad6ebedc1013df7c74af9cf9 |
|
BLAKE2b-256 | 5128a52a0162fcc84de4cce55fdbe8d047eb33d2e3fb34bb867dcd6d73d04267 |