A Python desktop application that pulls data from Yahoo Finance (through Yahoo Query Language (YQL)). Data is stored in a database (new data overwrites the old) and is displayed in a window via PyQt.
Please make sure that these are installed:
- Python 2.7.x
- Python virtualenv
- alembic
- requests
-
Download and unzip the files into a folder.
-
Ensure that pip is installed. For Windows users, see here for instructions.
- If you will have multiple versions of Python, check out how to install and configure and how to use pip with another version of Python.
-
Ensure that the
virtualenv
module for Python is installed. Typepip freeze
into terminal and check ifvirtualenv
is listed.- If it is, update it to the most recent version by typing
sudo pip install --upgrade virtualenv
. - If not, simply type into terminal
sudo pip install virtualenv
for Linux and OSX users, orpip install virtualenv
for Windows users,pip2.7 install virtualenv
if you have multiple versions.
- If it is, update it to the most recent version by typing
-
Create a virtual environment. Type into terminal
virtualenv venv
without the brackets,virtualenv --python=[path/to/python/python.exe] venv
if you have multiple versions. -
Activate the virtual environment. For Linux users, type into terminal
. venv/bin/activate
. For Windows users, typevenv\Scripts\activate
. -
Retrieve all the requirements. Run
pip install -e .
to automatically install the needed dependencies. -
Install PySide GUI. Run
pip install --use-wheel -U pyside
. -
Initialize alembic. Run
alembic init alembic
to initialize alembic. -
Create the database. Run
python db_create.py
to create your database with the name specified in config.py. -
Start the server. Run
python run.py
and enjoy.
If you change your database name, change sqlalchemy.url in alembic.ini to point to your database.