BestieTemplate.jl

BestieTemplate.jl is a template focused on best practices for package development in Julia.

8
contributors

Cite this software

What BestieTemplate.jl can do for you

BestieTemplate.jl

Your best practices friend.

Stable Documentation In development documentation Build Status Test workflow status Lint workflow Status Docs workflow Status Coverage DOI Contributor Covenant All Contributors Copier BestieTemplate

What does BestieTemplate do?

Creating Julia packages involve the creation and edition of many tiny files. Wouldn't it be great to automate this?

This is exactly what BestieTemplate does.

FAQ

  • How is BestieTemplate different from PkgTemplates?
    • it can be applied to existing packages
    • it invites to follow some (opinionated) best practices
    • it can be reapplied to acquire updates made to the template
    • it is automatically reapplied through Pull Requests made by the Copier.yml workflow (Work in progress)

Architecture

Under the hood, BestieTemplate is no more and no less than:

  • a copier template/skeleton for Julia packages (see folder template); and
  • a package that wraps copier in Julia using PythonCall with some convenience functions.

Quickstart

Install BestieTemplate in your chosen environment (we recommend globally) by entering pkg mode by pressing ] and then:

julia> # press ]
pkg> add BestieTemplate

then:

julia> using BestieTemplate
julia> BestieTemplate.generate("path/to/YourNewPackage.jl")
julia> # or BestieTemplate.apply("path/to/YourExistingPackage.jl")

please note that "YourPackage.jl" can either be a fresh new package or an existing one.

asciicast

If you like what you see, check the full usage guide.

Users and Examples

The following are users and examples of repos using this template, or other templates based on it. Feel free to create a pull request to add your repo.

Contributing

If you would like to get involved in the BestieTemplate growth, please check our contributing guide. We welcome contributions of many types, including coding, reviewing, creating issues, creating tutorials, interacting with users, etc. Make sure to follow our code of conduct.

If your interest is in developing the package, check the development guide as well.

References

Here is a list of links/repos that include content that we have used for inspiration, or used directly. This is most likely not a complete list, since many of the things included here were based on existing packages and knowledge that we brought from other projects. This also doesn't explain where each file came from or why they are here. You can find some of that information in the Explanation section of the docs.

  • PkgTemplates.jl, naturally. We used it for many years, and in particular for the initial TulipaEnergyModel.jl commit (see below).
  • Netherlands eScience Center's python template includes many of the best practices that we apply here. We used many of the ideas there in a Julia context, and took many non-Julia specific ideas from there.
  • TulipaEnergyModel.jl was the project that motivated this version of a template. From the start we decide to implement many best practices and so we started from a PkgTemplates.jl template and started adding parts of the python template that made sense.
  • The Julia Smooth Optimizers package ecosystem was one of the main motivations to look for a solution that could be applied and reapplied to existing packages, in particular to help maintainers.

Contributors

Logo of BestieTemplate.jl
Keywords
Programming language
  • Julia 100%
License
</>Source code

Participating organisations

Netherlands eScience Center
Natural Sciences & Engineering
Natural Sciences & Engineering
Environment & Sustainability
Environment & Sustainability
Life Sciences
Life Sciences
Social Sciences & Humanities
Social Sciences & Humanities

Contributors

Abel Soares Siqueira
Abel Soares Siqueira
SA
Suvayu Ali
Netherlands eScience Center
Faruk Diblen
Faruk Diblen
Olga Lyashevska
Olga Lyashevska
Pablo Rodríguez-Sánchez
Pablo Rodríguez-Sánchez

Related projects

HP2SIM

Democratizing multi-physics simulations with high-productivity high-performance finite element software

Updated 10 months ago
In progress

DEEPDIP

Discovering deep physics models with differentiable programming

Updated 6 months ago
In progress

NextGenOpt

Next Generation Sector-Coupling Models for Optimal Investments and Operation

Updated 8 months ago
In progress