A knitting calculator A punchcard generator
 
 
 
 
 
Go to file
bbell bf0ca2c0ed Fixed geometry 2024-07-21 18:34:28 +00:00
bin Fixed slider 2020-11-15 14:36:00 +00:00
data Fixed geometry 2024-07-21 18:34:28 +00:00
handlers Merge pull request #8 from brendabell/refactor-geometry 2020-05-26 17:51:04 -04:00
modules Added suppoort for toyota 747 2021-01-22 12:44:18 -05:00
sandbox
templates Added suppoort for toyota 747 2021-01-22 12:44:18 -05:00
test Merge pull request #8 from brendabell/refactor-geometry 2020-05-26 17:51:04 -04:00
venv
.gitignore
README.md
__init__.py
license.txt
logging.conf
server.py Merge pull request #8 from brendabell/refactor-geometry 2020-05-26 17:51:04 -04:00

README.md

knittingtools

KnittingTools is a simple web app written in Python. It currently supports two main features:

  • A knitting calculator
  • A punchcard generator

Dependencies

  • Python 2.7.10
  • CairoSVG 1.0.22
  • svgwrite 1.1.8

Newer package versions may work, but have not been tested.

Installation

  • Clone this repo to a local directory.
  • If you are installing to a Linux platform that supports chkconfig, copy ./bin/knittingtools-chkconfig to the location appropriate for your Linux distribution (usually /etc/rc.d/init.d/knittingtools).
  • Edit the init script to reflect the appropriate locations for the lock file, python executable, server.py script and PID file. I recommend you create a Python virtual environment as a subdirectory of your local repo.

Running The Application

Start, stop or restart the server using the following commands:

sudo service knittingtools start

sudo service knittingtools stop

sudo service knittingtools restart

Use the following command to determine the server's current status:

sudo service knittingtools status

Logging

Access and error logs are written to /var/log/knittingtools.log and /var/log/knittingtools.err respectively. The log configuration can be modified by editing logging.conf.