Process data from atx-database
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash ./Miniconda3-latest-Linux-x86_64.sh
brew cask install anaconda
export PATH="/usr/local/anaconda3/bin:$PATH"
git clone https://github.com/algotradeX/atx-data-processor.git
conda create -n atx-dp-env python=3.7
To activate this environment, use
$ conda activate atx-dp-env
To deactivate an active environment, use
$ conda deactivate
conda activate atx-dp-env
pip install -r requirements.txt
pip freeze > requirements.txt
python atx_data_processor_master.py
started atx-data-processor mongo connector {}
started atx-data-processor server {}
* Serving Flask app "atxdataprocessor.server" (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
* Running on http://0.0.0.0:8420/ (Press CTRL+C to quit)
black src/ atx_data_processor_master.py
flake8 src/ atx_data_processor_master.py
Install the git hooks defined in the pre-commit file by running the following in the terminal:
pre-commit install
If this is an already existing project you may want to go ahead and format all the files. You can do this by running the following in the terminal:
pre-commit run --all-files
This will run all the git hooks you've installed against all files. At this point you can review the messages and make corrections as necessary. You can re-run the command until there are no longer any warnings.
Finally, commit all the new changes! From now on when you stage files to be committed only those will be formatted and linted by black and flake8.