GitXplorerGitXplorer
j

measure_areas

public
3 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
fbe74d7b1f3f4d20ae66075f838424bbc15d8f58

Print errors to stderr

jjean committed 7 years ago
Unverified
71340e0ae05d520b8a923374a5cb1bca700b7219

Fix import

jjean committed 7 years ago
Unverified
c45c46e0f038c680baf3bc0f6a429d844a65b1a3

Show examples of output

jjean committed 7 years ago
Unverified
135712a44ec9132d8f2f0292637cff855dd69632

Mention the serve script

jjean committed 7 years ago
Unverified
c7e45e0817d58d61406724b3f0858f47a89fc564

Tidy

jjean committed 7 years ago
Unverified
0a8002f6ce0b4c97a87acdc7667b9510e658589b

Bolt on a simplistic Bottle server

jjean committed 7 years ago

README

The README file for this repository.

============= Measure Areas

Measure areas of shapes in SVG

Install

::

git clone https://github.com/jean/measure_areas.git
cd measure_areas
virtualenv .
. bin/activate
pip install -e .

Usage

Commandline usage::

    $ ./bin/measure_areas ~/Downloads/*.svg
    /home/john/Downloads/Bezier curve.svg: 3689.59938863
    /home/john/Downloads/drawing-edited.svg: 9920.76545859
    /home/john/Downloads/group(1).svg: 9920.76535806
    /home/john/Downloads/group(2).svg: 9920.76535806
    /home/john/Downloads/hexagon.svg: 6456.24459944

You can start up a server too::

    $ ./bin/measure_areas_serve
    Bottle v0.12.13 server starting up (using WSGIRefServer())...
    Listening on http://127.0.0.1:8080/
    Hit Ctrl-C to quit.

This accepts POSTs on port 8080, expecting a file under the key upload.

Features

  • Naively try and compute the total enclosed area in files given on the commandline

  • Free software: MIT license

Credits

This package was created with Cookiecutter_ and the audreyr/cookiecutter-pypackage_ project template.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter .. _audreyr/cookiecutter-pypackage: https://github.com/audreyr/cookiecutter-pypackage