Giter Club home page Giter Club logo

python_project_template's Introduction

Python Template

This repository is an example template of how to layout a Python project using test driven development (TDD).




SeekerShout

SeekerShout is a program to print formatted lines in a file where words in the line contain a substring.

Example

ss.sh path/to/file

Expected Output

[word word]
[word]

Constraints

  • user must input a path
  • user must input one argument
  • files must not contain lines with over 1 million characters
  • file must not have empty rows
  • file must contain the search term at the end of the file
  • files must be ASCII text files

Prerequisites

  • Python 3.7 or higher setup with VENV support
  • make must be installed
  • tail must be installed

Setup

Once all prerequisites are installed a command can be run to setup the environment.

make setup

Testing

To test the code is up to standard

make setup_dev
make test

Future

If I could continue developing and improve the project further

  • Linting using pylint
  • Code formatter using black
  • Convert THOUGHTS.md to proper documentation
  • Structure the tests using groups
  • Test for more extreme conditions, i.e. a line with 1 million characters

Past

If I could go back and do the project differently

  • Git init at the beggining and commit meaningful milestones in the project. i.e. docs complete, tests complete ...

python_project_template's People

Contributors

bill2bill avatar

Watchers

 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.