Browse Source

wip: clickify

Vera Sativa 5 months ago
parent
commit
8da8ebfd65

+ 2
- 2
.dvc/config

@@ -1,4 +1,4 @@
-['remote "storage"']
-    url = gs://escuelita-pjud
+[core]
+    remote = origin
 ['remote "origin"']
     url = https://dagshub.com/Escuelita/DataAnalytic-PJUD.dvc

+ 96
- 0
.gitignore

@@ -0,0 +1,96 @@
+# Byte-compiled / optimized / DLL files
+__pycache__/
+*.py[cod]
+
+# C extensions
+*.so
+
+# Distribution / packaging
+.Python
+env/
+build/
+develop-eggs/
+dist/
+downloads/
+eggs/
+.eggs/
+lib/
+lib64/
+parts/
+sdist/
+var/
+*.egg-info/
+.installed.cfg
+*.egg
+
+# PyInstaller
+#  Usually these files are written by a python script from a template
+#  before PyInstaller builds the exe, so as to inject date/other infos into it.
+*.manifest
+*.spec
+
+# Installer logs
+pip-log.txt
+pip-delete-this-directory.txt
+
+# Unit test / coverage reports
+htmlcov/
+.tox/
+.coverage
+.coverage.*
+.cache
+nosetests.xml
+coverage.xml
+*.cover
+
+# Translations
+*.mo
+*.pot
+
+# Django stuff:
+*.log
+
+# Sphinx documentation
+docs/_build/
+
+# PyBuilder
+target/
+
+# DotEnv configuration
+.env
+
+# Database
+*.db
+*.rdb
+
+# Pycharm
+.idea
+
+# VS Code
+.vscode/
+
+# Spyder
+.spyproject/
+
+# Jupyter NB Checkpoints
+.ipynb_checkpoints/
+
+# exclude data from source control by default
+/data/external/
+/data/interim/
+/data/processed/
+/data/raw/Chile/
+/data/raw/Penta/
+
+# Mac OS-specific storage files
+.DS_Store
+
+# vim
+*.swp
+*.swo
+
+# Mypy cache
+.mypy_cache/
+/data/raw/dict_countries.xlsx
+/notebooks/Archived/1.2-Paula-data_concatenated_dask.ipynb
+/notebooks/Archived

+ 4
- 0
README.md

@@ -55,3 +55,7 @@ Project Organization
 --------
 
 <p><small>Project based on the <a target="_blank" href="https://drivendata.github.io/cookiecutter-data-science/">cookiecutter data science project template</a>. #cookiecutterdatascience</small></p>
+
+
+## Instalación
+```pip install -e .```

+ 8
- 2
setup.py

@@ -1,10 +1,16 @@
 from setuptools import find_packages, setup
 
 setup(
-    name='src',
-    packages=find_packages(),
+    name='pjud',
+    packages=find_packages(where="src"),
+    package_dir={"": "src"},
     version='0.1.0',
     description='Este proyecto busca analizar los datos abiertos del Poder Judicial de Chile.',
     author='escuelita-chilota',
     license='MIT',
+    entry_points={
+        'console_scripts': [
+            'pjud=pjud.cli:main',
+        ],
+    },
 )

src/__init__.py → src/pjud/__init__.py

src/__pycache__/__init__.cpython-37.pyc → src/pjud/__pycache__/__init__.cpython-37.pyc

src/data/.gitkeep → src/pjud/cli.py

src/features/.gitkeep → src/pjud/data/.gitkeep

src/data/.ipynb_checkpoints/cleandata-checkpoint.py → src/pjud/data/.ipynb_checkpoints/cleandata-checkpoint.py

src/data/.ipynb_checkpoints/make_dataset-checkpoint.py → src/pjud/data/.ipynb_checkpoints/make_dataset-checkpoint.py

src/data/.ipynb_checkpoints/transformdata-checkpoint.py → src/pjud/data/.ipynb_checkpoints/transformdata-checkpoint.py

src/data/__init__.py → src/pjud/data/__init__.py

src/data/__pycache__/__init__.cpython-37.pyc → src/pjud/data/__pycache__/__init__.cpython-37.pyc

src/data/__pycache__/clean_data.cpython-37.pyc → src/pjud/data/__pycache__/clean_data.cpython-37.pyc

src/data/__pycache__/cleandata.cpython-37.pyc → src/pjud/data/__pycache__/cleandata.cpython-37.pyc

src/data/__pycache__/funciones.cpython-37.pyc → src/pjud/data/__pycache__/funciones.cpython-37.pyc

src/data/__pycache__/transformdata.cpython-37.pyc → src/pjud/data/__pycache__/transformdata.cpython-37.pyc

src/data/cleandata.py → src/pjud/data/cleandata.py

src/features/__init__.py → src/pjud/data/jurisdicciones.py

src/data/make_dataset.py → src/pjud/data/make_dataset.py

src/data/transformdata.py → src/pjud/data/transformdata.py

src/models/.gitkeep → src/pjud/features/.gitkeep

src/models/__init__.py → src/pjud/features/__init__.py

src/features/build_features.py → src/pjud/features/build_features.py

src/visualization/.gitkeep → src/pjud/models/.gitkeep

src/visualization/__init__.py → src/pjud/models/__init__.py

src/models/predict_model.py → src/pjud/models/predict_model.py

src/models/train_model.py → src/pjud/models/train_model.py

src/visualization/visualize.py → src/pjud/visualization/.gitkeep

+ 0
- 0
src/pjud/visualization/__init__.py

+ 0
- 0
src/pjud/visualization/visualize.py