Giter Site home page Giter Site logo

asmaier / cookiecutter-ds-mini Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 157 KB

Cookiecutter template to initiate a minimal Python data science project

Jupyter Notebook 99.05% Python 0.95%
cookiecutter data-science poetry-python python cookiecutter-data-science cookiecutter-template

cookiecutter-ds-mini's Introduction

Cookiecutter DS Mini

This is a Cookiecutter template that can be used to initiate a minimal Python data science project with a minimal set of tools for development and testing. It supports the following features:

Quickstart

First you need to install poetry and cookiecutter:

Linux, Windows

$ pip install pipx
$ pipx install poetry cookiecutter

Homebrew on Mac OS X

$ brew install poetry cookiecutter

Then navigate to the directory in which you want to create a project directory, and run the following commands

$ cookiecutter https://github.com/asmaier/cookiecutter-ds-mini.git

Afterwards your project directory is ready. It will have the following structure

{{ cookiecutter.project_name }}/
├── README.md
├── data
│   └── iris.csv
├── notebooks
│   └── example.ipynb
├── pyproject.toml
├── src
│   └── {{ cookiecutter.project_slug }}
│       ├── resources
│       │   └── .gitkeep
│       ├── __init__.py
│       └── utils.py
└── tests
    ├── resources
    │   └── .gitkeep
    └── test_utils.py

The datarepository is meant for all kinds of data which you might analyse or explore with jupyter notebooks in the notebooks directory. The code for your python package goes into the src/{{ cookiecutter.project_slug }} directory. The tests for your code go into the tests directory. Your package and test repository hold a resources directory which is meant for static resources like images, test files, ... which your package or tests might need.

Just change into the newly created directory and install the dependencies

$ cd <project_name>
$ poetry install

You are now ready to start developing. To create your first jupyter notebooks just do

$ poetry run jupyter lab

That's all Folks! For more information also have a look at the README.md created for your project.

Acknowledgements

This project is inspired by

cookiecutter-ds-mini's People

Contributors

asmaier avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.