Browse Source

Initial commit

main
isms 9 years ago
commit
004f0635a4
  1. 77
      .gitignore
  2. 2
      README.md
  3. 4
      cookiecutter.json
  4. 7
      {{ cookiecutter.repo_name }}/Makefile
  5. 1
      {{ cookiecutter.repo_name }}/README.md
  6. 1
      {{ cookiecutter.repo_name }}/requirements.txt
  7. 0
      {{ cookiecutter.repo_name }}/src/__init__.py
  8. 19
      {{ cookiecutter.repo_name }}/src/make_dataset.py

77
.gitignore vendored

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

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

4
cookiecutter.json

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

7
{{ cookiecutter.repo_name }}/Makefile

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

1
{{ cookiecutter.repo_name }}/README.md

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

1
{{ cookiecutter.repo_name }}/requirements.txt

@ -0,0 +1 @@
click

0
{{ cookiecutter.repo_name }}/src/__init__.py

19
{{ cookiecutter.repo_name }}/src/make_dataset.py

@ -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…
Cancel
Save