eduardokapp
eduardokapp

Reputation: 1751

Equivalent of R packages automation tools in Python

I'm an R user. I'm used to, when creating a project in R, developing an R package. Simply because R packages have a standard structure of file organization, naming, conventions, etc... So that makes life way easier. Whenever I need a new R package, I simply go on RStudio and "Create New Package". If I need to use tests or add dependencies, I'll use usethis package and that pretty much does it for me.

Now I'm doing a bit of a switch to Python and... How would I do the same? I can create some python scripts, define some dependencies. But what is the "convention" for doing python projects? I know there's a pattern defined by https://pypi.org/.

Is there a way to automate such pattern creation, just like RStudio automates R packages developing?

Upvotes: 3

Views: 1102

Answers (1)

eduardokapp
eduardokapp

Reputation: 1751

Eventually, I found an online book that was exactly what I was looking for. https://py-pkgs.org/ is pretty much a complete guide (from design practices to unit tests, documentation and whatnot) for making python packages using automation tools such as cookiecutter and poetry. The key point is that the whole book is inspired by the process of making R packages, which is what I was looking for.

Upvotes: 2

Related Questions