Initial commit

This commit is contained in:
isms 2015-10-30 15:09:43 -04:00
commit 004f0635a4
8 changed files with 111 additions and 0 deletions

77
.gitignore vendored Normal file
View File

@ -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/

2
README.md Normal file
View File

@ -0,0 +1,2 @@
cookiecutter-data-science
-------------------------

4
cookiecutter.json Normal file
View File

@ -0,0 +1,4 @@
{
"project_name": "project_name",
"repo_name": "{{ cookiecutter.project_name|replace(' ', '_') }}",
}

View File

@ -0,0 +1,7 @@
.PHONY: clean data
data:
python src/make_dataset.py
clean:
find . -name "*.pyc" -exec rm {} \;

View File

@ -0,0 +1 @@
## {{ cookiecutter.repo_name }}

View File

@ -0,0 +1 @@
click

View File

@ -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()