Python Module for Investing Snippets
Pandas extensions and utility classes for stock and investment analysis.
Installation
pip install pyinvestingsnippets
Examples and Documentation
Please see detailed examples under the examples
directory and read the documentation here
Develop
First install the required venv and tox
python3 -m venv .venv
source .venv/bin/activate
pip install tox
On osx with Big Sur there is an issue with installing cython! Due to that, you can
docker run --rm -v $(PWD):/app --workdir=/app -it --entrypoint=sh python:3.8
Run tox test and lint
tox
Install the package locally
pip install .tox/dist/pyinvestingsnippets-<version>.zip
Run examples
python3 -m venv .venvtest
source .venvtest/bin/activate
pip install -r requirements.txt
pip install -r examples/requirements.txt
python examples/matplotlib_report.py
If on OSX set env var to
OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
Release
On master change the version in pyinvestingsnippets/__init__.py
git commit -am "v<VERSION>"
git tag -a v0.0.3
git push origin --tags
git push -u
tox -e release