ajf-live-re-wire
is a Python project designed to reorganize the WWOZ Livewire. It uses web scraping to gather and process data from the WWOZ Livewire website.
- Python 3.11.10
- recommended: use
pyenv
- recommended: use
pipenv
pyenv
is a simple, powerful tool for managing multiple versions of Python. Follow the instructions below to installpyenv
on your system.- Check out this project for an automated installation via Ansible.
# Install dependencies
sudo apt-get update
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \
libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev \
python-openssl git
# Install pyenv
curl https://pyenv.run | bash
# Add pyenv to bash so that it loads every time you open a terminal
echo -e '\n# Pyenv Configuration' >> ~/.bashrc
echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init --path)"' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
source ~/.bashrc
pyenv install 3.11.10
pyenv global 3.11.10
pipenv
is a tool that aims to bring the best of all packaging worlds (bundled, development, and deployment) to the Python world. It automatically creates and manages a virtual environment for your projects, as well as adds/removes packages from your Pipfile as you install/uninstall packages.
pip install pipenv
git clone https://github.com/aaronfeingold/ajf-live-re-wire.git
cd ajf-live-re-wire
pipenv shell
pipenv install
python main.py
Ensure the PYTHONPATH is set
PYTHONPATH=. pytest tests/test_main.py
- TBD: Github Pipeline Under Construction
chmod +x CICD/scripts/build_and_update_lambda
./CICD/scripts/build_and_update_lambda