Coder Social home page Coder Social logo

puneetha-python-template's Introduction

Repo name: puneetha-python-template


Summary

Python template - Project structure.



Good practices

  1. With the evolution of Cloud; you are not restricted to using/managing config file/s, you can also rely on Cloud services like AWS Secrets Manager, SSM Parameter Store, etc. to maintain secret values or even default values
  2. Never ever Hard code environment name, even if you have just 1 environment. It has to either come from environment variable or config file or some other mechanism
  3. Prefix your environment variables with something specific to your project, to avoid conflicts with other projects. For this package, I choose "PBM_"
  4. Keep your environment variable mapping in 1 common place. Use the python variables to map it to minimize the impact of change
    • Ex: puneetha-python-template/utils/constants/env_variable_mapper.py
  5. Always use a code linter of your choice from day 1 of your project
  6. Stick to 1 convention - choose between Singular vs Plural! Ideally Singular!


Python main packages used

  1. mypy - Type checking
  2. pytest - Testing python package
  3. pylint - Codestyle checker
  4. pydocstyle - Docstring style checker
  5. pdoc3 - Docstring generator python package
  6. loguru - Logging
  7. tox - Running test suite
  8. mkdocstrings - Static site generator from "*.md" files


Set-up instructions here



Build process here



You are all set to Fly! :)


puneetha-python-template's People

Contributors

puneethabm avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

qoolfly

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.