GithubHelp home page GithubHelp logo

drkostas / starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yngtodd/starter

3.0 1.0 0.0 250 KB

A starter template for Python packages

License: Apache License 2.0

Python 70.50% Makefile 29.50%

starter's Introduction

Starter

GitHub license

Table of Contents

About

A cookiecutter template for Python packages.

Getting Started

These instructions will help you generate a new python project/package from the cookiecutter template.

There are 2 ways to use this template:

  1. Just open a command line and run:
cookiecutter https://github.com/drkostas/starter.git

You have to have cookiecutter installed first of course. If you don't, run: pip install cookiecutter~=1.7.2 first

  1. Clone this repository and follow the next steps

Prerequisites

You need to have a machine with Python > 3.6 and any Bash based shell (e.g. zsh) installed.

$ python3.8 -V
Python 3.8.5

$ echo $SHELL
/usr/bin/zsh

Installing

All the installation steps are being handled by the Makefile.

Just execute the following command and fill in the project variables that will be requested:

$ make install

To delete the cookiecutter directory run:

$ make clean

TODO

Read the TODO to see the current task list.

Built With

  • Cookie - A command-line utility that creates projects from cookiecutters (project templates)

License

This project is licensed under the Apache License - see the LICENSE file for details.

Acknowledgments

starter's People

Contributors

drkostas avatar yngtodd avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

starter's Issues

Personalize this project

  • Merge .gitignore files
  • Add argparse instead of argh
  • Add your Configuration class for yml support
  • Add sample unit tests using the unittest library
  • Merge the 2 setup.py files
  • Add your Makefile
  • Add .circleci file
  • Modify the cli
  • Add timeit
  • Add your colorized log class
  • Create Example class containing AbstractClass
  • Create a Readme file
  • Recalibrate all of the above appropriately

Improve abstraction and fine-tune readme, makefile

  • Change Makefile to echo the name of env after install
  • Put quote in the env file values. Do the same for the packages
  • Change the Makefile based on the addition you made on other projects
  • Make top-level inits more abstract (for cookiecutter)
  • Configurable python_requires and classifiers in setup.py
  • Change the readme and makefile to use env=venv or conda
  • Change the acknowledgments

Make timeit a separate package

  • Make timeit a separate module to be imported by others, because if you import them
    from main, and the main imports them, you get a circular import error
  • Convert timeit wrapper to dual decorator and contextmanager

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.