Git Product home page Git Product logo

Comments (5)

RyanRLong avatar RyanRLong commented on July 2, 2024

@oscarmcm IMHO, this is my starting point for all python projects. It is bare bones and generic, but excellent for following current best practices without adding packages based on opinion. It is well documented. I have a fork that I update that has some my personal workflow built in (ie, Black, pytest, pytest-cov, etc.)

Can this issue be closed?

from sampleproject.

EliuX avatar EliuX commented on July 2, 2024

Is it a better standard to start the project with src instead of the name of the project in lowercase?
If I want to import a module, does referencing src as a package make sense?

from sampleproject.

ryanlong1004 avatar ryanlong1004 commented on July 2, 2024

@EliuX In regards to this project, yes. If you look in the setup.py, you will see it specifies src as the top directory for packages, src not included. IE if you have src/a/b, you would import 'from a import something' or 'from a.b import something".

from sampleproject.

dmtucker avatar dmtucker commented on July 2, 2024

@EliuX You might be interested in https://blog.ionelmc.ro/2014/05/25/python-packaging/#the-structure

src is not a package name. It's just there to take the modules/packages you're packaging out of .

from sampleproject.

jeanas avatar jeanas commented on July 2, 2024

Closing as resolved. Yes, this is an official, standard template to create Python package, since it is proposed by the PyPA, which is as “official” as you'll get in Python packaging.

from sampleproject.

Related Issues (20)

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.