Git Product home page Git Product logo

blueprint's Introduction

Blueprint: a python project template

A template to kickstart your Python projects with ease and consistency.

Introduction

Installation

To use this template, you need the following tools installed on your machine:

Ensure you have Python 3.9 or above installed by running:

python --version
# Python 3.9.x

Usage

  1. Clone this repository.

  2. Rename the repository directory to your project's name.

  3. Run the following command to replace instances of "blueprint" with your project's name:

    sed -i 's/blueprint/your-project-name/g' **/*.*

    ๐Ÿšจ If you're on a Mac, please read Other notes below.

  4. Update the project's information in the pyproject.toml file, such as the name, author, and description

  5. Customise the README.md with content relevant to your project.

  6. Rename the blueprint directory within the src directory with your project's name.

Type make in the project root to see the available commands.

Configuration

How to update all the dependencies?

Regularly updating project dependencies is crucial for ensuring your project stays secure and up-to-date with the latest features and bug fixes. To update all your project dependencies, simply run the following command in your project directory:

make updatelatest

This command leverages the power of Poetry and its plugins to update your dependencies efficiently. It helps prevent security vulnerabilities and keeps your project aligned with the ever-evolving Python ecosystem. By keeping your dependencies up to date, you ensure that your project remains maintainable and robust in the long run.

Code Style

This project enforces a consistent and clean code style using Black, a highly regarded Python code formatter. Black ensures that your code remains neatly formatted and follows the Python Enhancement Proposals (PEP 8) style guide. To automatically format your code according to the project's coding style, simply run the following command in your project directory:

black .

Other notes

If you use a Mac, you may need to install gnu-sed to run the above sed command.

You can install it using Homebrew:

brew install gnu-sed

Read Homebrew's logs to confirm how to run gnu-sed:

GNU "sed" has been installed as "gsed".
If you need to use it as "sed", you can add a "gnubin" directory
to your PATH from your bashrc like:

    PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"

For instance, if you get the above message, you can now run the sed command like this:

gsed -i 's/blueprint/your-project-name/g' **/*.*

License and Contribution Guidelines

This project is released under the Unlicense, which essentially places it in the public domain. You are free to use, modify, and distribute this code as you see fit, with no restrictions. Please keep in mind that, since this project is unlicensed, there are no warranties or guarantees, and you are responsible for any legal implications of using the code.

If you wish to contribute to this project, we welcome your input. Feel free to submit issues or pull requests through GitHub. Your contributions are highly valued and appreciated.

blueprint's People

Contributors

aswfaswf avatar luistm avatar rjvitorino 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.