Change location of constants and dependencies
This commit is contained in:
parent
87fa53f6f8
commit
6849078d88
|
@ -1,3 +1,3 @@
|
||||||
*/__pycache__
|
**/__pycache__
|
||||||
Design.org
|
Design.org
|
||||||
data/*.json
|
data/*.json
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue