Paul-Guerra / tubular

Convert youtube feeds into podcasts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Data service

The data serves as the main repository for state across the system

# container start
./start.sh

# initialize database
mysql -u root -h 127.0.0.1 < tubular/data_store/init.sql

Use mysql tools to create .mylogin.cnf

mysql_config_editor set --login-path=tubular --host=127.0.0.1 --user=tubular --password

now you can connect from host via

mysql --login-path=tubular

optionally, you can create an unencrypted .my.cnf file and leave it in your home directory. If you do so make sure permissions on the file are scoped to only the user who needs it. You can now login w/o the --login-path argument, like so

mysql -h 127.0.0.1

Initilize migrations Edit alembic.ini to use the correct db DSN for the sqlalchemy url then run

alembic upgrade head

Running Tests

env PYTHONPATH=$PYTHONPATH:$(pwd)/tubular python tests/crawler/crawl_test.py

Executing a service

env PYTHONPATH=$PYTHONPATH:$(pwd)/tubular python tubular/crawler/crawl.py

About

Convert youtube feeds into podcasts


Languages

Language:Python 95.2%Language:Mako 2.5%Language:Shell 2.2%