Giter VIP home page Giter VIP logo

pytemplates's Introduction

Our Project: What the project does

PyPI version fury.io DOI Project Status Codecov Test-Package PyPI license Documentation Status Total Downloads Monthly Downloads Weekly Downloads Maintenance GitHub last commit GitHub issues GitHub issues-closed

Welcome to our_project.

Please note that this is a template repository, click use template (do not fork unless suggesting an improvement) to use in a new project and edit files as required. Also, see important notes at the end of this file.

Installation Guide

pip install our_project 

Currently implemented features

our_project currently does the following:

  • Contains base class HelloWorld

  • HelloWorld has the print_text method that prints user supplied text.

  • A github action to test project installation and run tests.

  • A github action to release on PyPI (requires adding PYPI_USERNAME and PYPI_PASSWORD to repository secrets.)

Features that need further attention

We intend to work on the following in the future:

  • Make it less cumbersome to init docs with sphinx.

Document generation

Please edit docs/source/index.rst and docs/source/modules.rst as required then run:

./scripts/mkdocs.sh 

The above assumes you are at the root of "our_project".

Also delete setup.rst, tests.rst, if they exist.

Otherwise, run and edit as necessary.

sphinx-quickstart

Thank you,

NelsonGon 22/10/2021


Important Notes

This repository holds templates that follow a typical workflow for new python projects.

A word of caution

These templates are mostly intended to save time. However, modern IDEs provide project templates that are more mature and less opinionated than the templates here.

This repository serves an additional purpose of allowing developers new to programming to study project structure using very simple examples.

For licenses, tests, and workflows, gitignore it is recommended that one generates these automatically either from their IDE of choice or for .gitignore files and licenses, via github or gitlab.

Happy to hear from you in case of any questions and/or feedback.


DISCLAIMER:

This project is not in anyway related to a similarly named package pytemplates that does something completely different ("Pytemplates is a lightweight HTML template engine written in Python, with support for template inheritance, blocks, macros, context, and Django.").

I only got to learn of this package upon adding badges to this file.

pytemplates's People

Contributors

nelson-gon avatar

Stargazers

 avatar

Watchers

 avatar  avatar

pytemplates's Issues

Automatically write install_requires in setup.py

Description

In setup.py, automatically copy the contents of requirements.txt to the install_requires argument.

Similar Features

N/A

Feature Details

Sufficiently described.

Proposed Implementation

In setup.py, perhaps open requirements.txt for reading, RegEx sub version identifiers, write each line to a list and pass this to install_requires.

Automatically detect project root

Description

I would like to automatically detect the project's root in the Github action that tests package build.

Similar Features

N/A

Feature Details

Instead of manually editing the root path for the codecov uploader, I'd like to do it automatically.

Proposed Implementation

Find current directory via the command line and then find dirname of that.

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.