Git Product home page Git Product logo

spreadsheet_server's Introduction

------------
Introduction
------------
spreadsheet_server was built to aid rapid web tool development where the logic
was already implemented in Microsoft Excel/LibreOffice Calc. Instead of
rewriting the logic from scratch, this tool was born.

The tool has been developed to work on a headless GNU/Linux system where the
server and client are on the same machine.

--------
Features
--------
* 'Instant' access to cells in the spreadsheets because they open in
LibreOffice Calc.
* All the function calculation support and power of LibreOffice Calc.
* Server requests are threaded so concurrent connections to different
spreadsheets are supported.
* A given spreadsheet is locked (within python, not on disk) when it is accessed
to prevent state irregularities across multiple concurrent connections to the
same spreadsheet.
* Spreadsheets can be saved - useful for debugging purposes.

-----
Usage
-----
Place your spreadsheets in './spreadsheets'.

Make sure you have a correctly set up virtualenv and required packages installed
(see below), then run the server:
python server.py

Have a look at the example_client.py for an overview of how to use the functions
exposed by client.py.

------------
How it works
------------
A LibreOffice instance is launched by 'server.py' in a headless state.
By default, the './spreadsheets' directory is polled every 60 seconds for file
changes.
New spreadsheets in the directory are opened with LibreOffice and removed
spreadsheets are closed in LibreOffice.
The 'client.py' connects to the server and can update cells and retrieve
their calculated content.

------------
Requirements
------------
Server:
	LibreOffice Calc
	python3
	virtualenv created with '--system-site-packages' argument
	For example: "virtualenv --system-site-packages -p python3 venv"

	Python packages installed to the virtualenv:
	pyoo (for the connection to LibreOffice)
	werkzeug (for securing filenames when saving spreadsheets)

Client:
	python2 or python3.

spreadsheet_server's People

Contributors

robsco-git avatar

Watchers

 avatar  avatar

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.