GithubHelp home page GithubHelp logo

python's Introduction

Python

This is a personal template for Python projects. This template expects to use asdf and Poetry to manage Python version and dependencies.

Prerequests

You must setup asdf in advance following this guide.

To install Python in asdf, you would need additional packages. If you are an ubuntu user, type the following command to install all required packages:

$ sudo apt update
$ sudo apt install make build-essential wget curl llvm \
    libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev  \
    libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev

Finally, install Python and Poetry in asdf as follows:

# add python
asdf plugin-add python
asdf install python 3.12.2

# add poetry
asdf plugin-add poetry
asdf install poetry 1.8.2

How to start development

Take the following steps to start your development.

  1. Edit pyproject.toml, e.g., rename the project name.
  2. Run poetry install --no-root to install some common libraries.
  3. [Optional] Run git config commit.template .gitmessage to use gitmessage for commit.

python's People

Contributors

h-terao 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.