GithubHelp home page GithubHelp logo

dgulotta / cross2sheet Goto Github PK

View Code? Open in Web Editor NEW
14.0 3.0 3.0 57 KB

A program to convert crossword grids to spreadsheet format

License: MIT License

Python 94.47% HTML 5.53%
crosswords image-analysis crossword-grid

cross2sheet's Introduction

cross2sheet Build Status

Features

The program reads a crossword grid and converts it into a spreadsheet.

Supported input formats:

Supported output formats:

  • xlsx

Installing

To install the required dependencies, run

pip install -e .[web]

You can remove the web option if you don't want to use the web interface.

Web interface

Cross2sheet can be used via a web interface, as a command line program, or as a library. The web interface is the easiest to use. The code for the web interface can be found in the cross2sheet/web directory.

To test the web interface locally:

export FLASK_APP=cross2sheet/web/__init__.py
flask run

Instructions for deploying Flask applications can be found at https://flask.palletsprojects.com/en/1.1.x/deploying/.

Command line interface

The cross2sheet.main module includes a command line program that will hopefully work most of the time. For example, you can try the following:

python3 -m cross2sheet.main http://web.mit.edu/puzzle/www/2014/puzzle/puzzle_with_answer_nowhere_man/grid.png nowhere_man.xlsx
python3 -m cross2sheet.main http://web.mit.edu/puzzle/www/2015/puzzle/rid_fill/ rid_fill.xlsx

To see the full list of options supported by the program, run python3 -m cross2sheet.main -h.

API

The API is not particularly well documented, but there are some examples in cross2sheet/examples/examples.py.

cross2sheet's People

Contributors

dgulotta avatar jaylorch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cross2sheet's Issues

Support Google Sheets API

Add a command line option where the output file name will be interpreted as the ID of a google sheet, and a tab will be added to that sheet containing the grid.

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.