/island_of_miscripts

Random bits of scripts and code so I'm not reinventing the wheel over and over

Primary LanguagePython

Island of Miscripts

Welcome to the Island of Miscripts

What is this repository for?

Random bits of scripts and code so I'm not reinventing the wheel over and over.

PyIsland

Home of the miscreant python scripts.

Setup without Docker

  1. Run pip install -e .\pyisland\ to get setup.

Create a virtual environment

  1. Run pip install virtualenv to install the virtualenv package
  2. Run virtualenv .\pyisland\.venv to create a virtualenv location
  3. Run .\pyisland\Scripts\activate to start up the virtualenv
  • Note - to deactivate the virtualenv, input deactivate

Install packages within the virtualenv

  1. Run pip install -r .\pyisland\requirements.txt to install packages.

Testing

  1. Run pytest .\pyisland\ to run tests.

Setup with Docker

  1. Run docker build -t <image-name> .\pyisland\
  2. Run docker run -it --rm <container-name> <image-name>

Classic Problems

Classic problems that are often seen such as Hanoi Tower, Calculating Pi, etc.

Python Classes

These are classes that provided good examples of OOP usage and that I often use for reference. They can also be used by the Classic Problems.

Contributing

  • Place code in appropriate folder with some documentation
  • When possible, have tests