isms
9 years ago
commit
004f0635a4
8 changed files with 111 additions and 0 deletions
@ -0,0 +1,77 @@
|
||||
# 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 |
||||
|
||||
# Media |
||||
serraview/media/ |
||||
|
||||
# Pycharm |
||||
.idea |
||||
|
||||
# IPython NB Checkpoints |
||||
.ipynb_checkpoints/ |
||||
|
||||
# exclude data |
||||
data/ |
||||
|
@ -0,0 +1,4 @@
|
||||
{ |
||||
"project_name": "project_name", |
||||
"repo_name": "{{ cookiecutter.project_name|replace(' ', '_') }}", |
||||
} |
@ -0,0 +1,7 @@
|
||||
.PHONY: clean data |
||||
|
||||
data: |
||||
python src/make_dataset.py
|
||||
|
||||
clean: |
||||
find . -name "*.pyc" -exec rm {} \;
|
@ -0,0 +1 @@
|
||||
## {{ cookiecutter.repo_name }} |
@ -0,0 +1,19 @@
|
||||
# -*- coding: utf-8 -*- |
||||
import click |
||||
import logging |
||||
|
||||
|
||||
@click.command() |
||||
@click.argument('input_filepath', type=str) |
||||
@click.argument('output_filepath', type=str) |
||||
def main(input_filepath, output_filepath): |
||||
logger = logging.getLogger(__name__) |
||||
logger.info('making final data set from raw data') |
||||
|
||||
|
||||
if __name__ == '__main__': |
||||
log_fmt = '%(asctime)s - %(name)s - %(levelname)s - %(message)s' |
||||
logging.basicConfig(level=logging.INFO, format=log_fmt) |
||||
|
||||
main() |
||||
|
Loading…
Reference in new issue