ty2huang / squirrels

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Squirrels

Squirrels is an API framework for creating APIs that generate sql queries & dataframes dynamically from query parameters.

Setup

First, install the library and all dependencies in a separate virtual environment.

pip install pipenv
pipenv install -e .

Then, to activate your virtual environment, either change the python interpretor to the new virtual environment that was just created in you IDE and restart your terminal (preferred), or run:

pipenv shell

To confirm that the setup worked, run this to show the help page for all squirrels CLI commands:

squirrels -h

Testing

python setup.py pytest

Features Roadmap

  • Provide a squirrels init CLI to create a squirrels project from scratch including sample files for squirrels.yaml, parameters.py, functions.py, database_view.sql.j2, selections.cfg, sample_lu_data.csv, and .gitignore
  • Allow for database views as python files
  • Introduce single-select and multi-select widgets for group bys
  • Provide a squirrels unit-test CLI to perform unit tests from a tests folder

About

License:MIT License


Languages

Language:Python 85.3%Language:JavaScript 10.1%Language:CSS 2.1%Language:HTML 1.5%Language:Jinja 1.0%