Browse Source

Keep /src/data/ where scripts are

main
Peter Bull 9 years ago
parent
commit
3f706d9239
  1. 2
      {{ cookiecutter.repo_name }}/.gitignore
  2. 0
      {{ cookiecutter.repo_name }}/src/data/.gitkeep
  3. 23
      {{ cookiecutter.repo_name }}/src/data/make_dataset.py

2
{{ cookiecutter.repo_name }}/.gitignore vendored

@ -70,5 +70,5 @@ target/
.ipynb_checkpoints/
# exclude data from source control by default
data/
/data/

0
{{ cookiecutter.repo_name }}/src/data/.gitkeep

23
{{ cookiecutter.repo_name }}/src/data/make_dataset.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
import click
import logging
@click.command()
@click.argument('input_filepath', type=click.Path(exists=True))
@click.argument('output_filepath', type=click.Path())
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)
project_dir = os.path.join(os.path.dirname(__file__), os.pardir)
dotenv_path = os.path.join(project_dir, '.env')
dotenv.load_dotenv(dotenv_path)
main()
Loading…
Cancel
Save