aloutfi / flexit

a python package for exploring netflix data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

platform-version formatter flexit-ci

flexit

This package represents the persistence and business logic layers for flexit. It utilizes SQLAlchemy for database transactions and Pydantic for data transfer objects.

The project uses poetry for packaging functionality and pytest for its tests.

Installation

As a dependency

You can install flexit as you would any other python package.

pip install https://github.com/aloutfi/flexit/raw/main/dist/flexit-1.0.0-py3-none-any.whl

Then, add the DATABASE_URL as an environment variable.

Development

  • Install python dependencies: poetry install
  • copy environment variables so you can safely add secrets if necessary: cp settings.ini.in settings.ini
  • build the database: make build
    • You can rebuild the database with make rebuild

If you do not wish to use the Makefile...

If you do not wish to use the Makefile, you can configure local setup via docker-compose

docker-compose up

Set the DATABASE_URL in the settings.ini file if you are not using the docker-compose setup.

Finally, load the initial data into the database:

python -c 'from flexit.config import init_db; init_db(True)'

About

a python package for exploring netflix data.


Languages

Language:Python 71.7%Language:Jupyter Notebook 27.5%Language:Makefile 0.9%