Code Monkey home page Code Monkey logo

scicookie's Introduction

SciCookie

CI Python Versions Package Version License Discord

SciCookie is a template developed by Open Science Labs that creates projects from project templates and is based on Cookieninja A Cookiecutter Fork command-line utility. It serves as a boilerplate which can be used by beginners as well as full fledged developers to simplify the project creation process and save considerable amount of time. Cookieninja enables projects with an initial layout that includes recommended tools, workflows, and project structure.

Cookieninja also offers other features that can enhance the workflow of the development process. Features such as automatic documentation generation, automated testing, and project-specific configuration are part of this. Overall, Cookieninja is an efficient tool that gives users the ability to effortlessly create consistent, high-quality projects.

Open Science Labs Scientific Python cookiecutter template is primarily based on the PyOpenSci recommendations who is actively conducting research to determine the tools, libraries, best practices, and workflows utilized by significant scientific Python groups. As a result, this template offers to authors a starting point for their project that adheres with industry standards and can be adjusted to meet particular project requirements.

Cookieninja template for a Python package.

Features

  • Allows package slug (use _ instead of -)
  • Licenses supported: MIT, BSD 3 Clause, ISC License, Apache Software License 2.0, and GPL 3
  • Documentation engines: mkdocs, sphinx, jupyter-boook
  • Test library: pytest, hypothesis
  • Auto format code tool: black
  • Initial integration with git
  • Support to conda (as base environment) and poetry as packaging and dependency management
  • Support to pre-commit
  • CI with github actions
  • Release workflow with semantic release and github actions
  • Flexible build system selection: Choose between popular build systems like Poetry, Flit, meson-python, Setuptools, PDM, Hatch, Maturin, scikit-build-core or setuptools + pybind11 based on your preference.
  • The structure of the project can use the src layout or flat layout. The “src layout” moving the code that is intended to be importable into a subdirectory. This subdirectory is typically named src. "Flat layout" refers to organising a project's files in a folder or repository so that the various configuration files and import packages are all in the top-level directory. You can read about their differences at https://packaging.python.org/en/latest/discussions/src-layout-vs-flat-layout/
  • Finding common security problems in Python code using bandit
  • Offers the option to use pydocstyle for checking compliance with Python documentation conventions.
  • Finds unused code in Python programs using vulture.
  • To automatically detect overly complex code based on cyclomatic complexity, the template gives you the option to use the McCabe library, which is included via flake8.
  • Provides the option to add initial files that allow you to run and orchestrate containers using Docker or Podman in your project.

Quickstart

Install the latest Cookieninja if you haven't installed it yet (this requires Cookieninja 1.0.0):

pip install scicookie

Go to a desired folder to create your new project, for example:

cd ~/dev/my-python-projects

Generate a Python package project:

scicookie

Development

For testing your changes locally, you can run:

makim tests.lint
makim tests.unittest
makim tests.smoke

Maintainers

Acknowledges

Python Software Foundation (PSF)

Open Science Labs has been awarded two grants from the Python Software Foundation (PSF) in April 2023 and January 2024 to enhance SciCookie. The grants were and will be used to implement best practices recommended by pyOpenSci, improve dependencies and configuration settings, and add new features.

We are grateful for the support of the Python Software Foundation. For further details about these grants, you can read more in the blog posts:

scicookie's People

Contributors

audreyfeldroy avatar eliasdorneles avatar pydanny avatar psiace avatar xmnlab avatar cerickson avatar anavelyz avatar purplediane avatar pyup-bot avatar yurelycamacho avatar ayeankit avatar semantic-release-bot avatar skarbot avatar naman-priyadarshi avatar breezko avatar katialira avatar rwanyoike avatar treyhunner avatar westurner avatar palmerev avatar thejonanshow avatar tony avatar saransh-cpp avatar hugovk avatar erwinjanssen avatar mandeep avatar luabida avatar jhonjairoroa87 avatar manuphatak avatar rgbkrk 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.