Skip to main content

A Packager for Python Projects

Project description

Template Repo for python Projects.

CI Tests Check Formatting Build mkdocs Deploy mkdocs PyPi Release Install Package codecov

A template repository to make all machine learning projects.

How this speeds up your python development

Most people find it hard to package their python code and do not know how to set up the repo for it.

If the repository is setup in a wrong way, it would become hard to package and deploy the code later on as well.

This repo gives you the batteries required to package your code, CI checks, auto build and deploy docs, easy PyPi publishing support and docker files.

This serves as a template to quickly have these things setup in your repo. Machine Learning Repos created from this template can easily be deployed and shipped. It becomes hassle free and easy to debug too.

You can add your code in template_python folder. Since this is a package make sure that imports are from the root. i.e. from template_python import stuff

How to use this: -

  • Choose use this repo as template option in GitHub.
  • This should create a repo in your GitHub account.

Files to edit to set up your project.

  • You would need to edit some files in order to rename this from template_python to your required repo name.
  • Just replace pip install git+git://github.com/oke-aditya/template_python.git in the mk-docs-build.yml and mk-docs-deploy.yml workflows in .github folder with your package git url. This will set up docs.
  • Please edit ALL the .md files to include description that you need.
  • Edit the requirements.txt and requirements-extra.txt (optionally).
  • Edit the .gitingore and .dockerignore files if anything extra is needed. I have included most stuff in them.
  • Edit the settings.ini and setup.py (optionally) . You perhaps need your name and different requirements. Again most stuff is there you need very small tweaks.
  • Edit the LICENSE you may need a different one.
  • Do edit the docs folder. It is built using mkdocs.org. You can refer to mkdocs to know more how to edit docs. This is just minimalistic docs which does the job.
  • Optionally Add tests to tests folder using pytest.

Also please read the README files that are present in the folders. They will help and guide you to setup stuff too.

I need help to setup my project

  • If you face any issues setting up project do raise an issue. I would be happy to help.
  • If you have few sugguestions and additions you would like please raise a PR. I would be happy to merge.

Projects built using this template.

Note: - These repos might have diverted little bit from this template.

Raise a PR if you have built your project with this template and I will add it here !!

Inspirations: -

This template was created using lot of repositories , it include these

Huge credit to these repos, it would be hard to make this without them.

This template is diffrent from above as this lays emphasis on bundling code in python packages and containers thus ensuring portability.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_fresh-0.1.1.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

py_fresh-0.1.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file py_fresh-0.1.1.tar.gz.

File metadata

  • Download URL: py_fresh-0.1.1.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.6

File hashes

Hashes for py_fresh-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0f1789815587521a4b42e731a39f06e37ed278cea72b82effec7fd74af631326
MD5 f434efb61fc980612578d406d493ef12
BLAKE2b-256 840de6ff22202119b3d1c549590a1b47e553ebd9fb76b10f66f569c429693ef2

See more details on using hashes here.

File details

Details for the file py_fresh-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: py_fresh-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.6

File hashes

Hashes for py_fresh-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c645cbf12175730cd50b38882bce867d1752d5793d930bbd22f83cae60b5b874
MD5 4b63c0076e43da80aeeddca7992b2b83
BLAKE2b-256 fff62528dae24e414ac1f3acf55a0005c58106d60e47102625e9d8bd275205ba

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page