Change location of constants and dependencies

This commit is contained in:
coolneng 2020-06-10 23:29:56 +02:00
parent 87fa53f6f8
commit 6849078d88
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
6 changed files with 9 additions and 5 deletions

2
.gitignore vendored
View File

@ -1,3 +1,3 @@
*/__pycache__ **/__pycache__
Design.org Design.org
data/*.json data/*.json

View File

@ -1,6 +1,6 @@
from json import load from json import load
from pandas import json_normalize, DataFrame from pandas import json_normalize, DataFrame
from .constants import FILES, COLUMNS from constants import FILES, COLUMNS
def open_json(dataset) -> dict: def open_json(dataset) -> dict:

View File

@ -1,6 +1,6 @@
from json import dump from json import dump
from requests import get from requests import get
from .constants import FILES, URL from constants import FILES, URL
def format_url(dataset) -> str: def format_url(dataset) -> str:

View File

@ -7,8 +7,9 @@ pkgs.mkShell {
# Dependencies # Dependencies
pandas pandas
requests requests
flask starlette
altair altair
folium
pytest pytest
# Development tools # Development tools
black black

View File

@ -1,5 +1,8 @@
from app.constants import files from constants import FILES, DATASETS, URL
from app.preprocessing import create_dataframe from app.preprocessing import create_dataframe
from app.request_datasets import request_dataset
from pandas import DataFrame
from requests import get
from os import remove from os import remove