Skip to main content

A local HTTP server based clipboard like pipe

Project description

Shareboard is a local HTTP server which works like clipboard. After you start the server, you can simply set/get the text data to that server with HTTP communication. It is useful to connect two different process.

Shareboard also give you a builtin HTTP viewer to display the data. You can use this HTTP viewer to visualize your HTML text.

Install

Use [easy_install][] or [pip][] to install. Follow the command below

$ easy_install shareboard

or

$ pip install shareboard

[easy_install]: http://packages.python.org/distribute/easy_install.html [pip]: http://pypi.python.org/pypi/pip

Usage

### Clipboard

The basic mechanisms of Shareboard is described below. Shareboard use HTTP connection to set/get text data.

Sender === POST: http://localhost:8081/ ==> Shareboard Getter <== GET : http://localhost:8081/ === Shareboard

As I described, Shareboard use local HTTP server so you must start the server before use. You can start the server with the command below

$ shareboard start

Shareboard provide you a small script to set/get text data so you can simply set/get data to/from Shareboard with following commands

$ shareboard set “Hello World” $ shareboard get Hello World

#### Clipboard advance

If you specify, Shareboard automatically run a text modification program everytime when you set text data. For example, you can use sed to modify the text data with the commands below

$ shareboard start -c ‘sed “s/Hello/Hi/g”’

With this shareboard server, data will be modified with the command like below

$ shareboard set “Hello World” $ shareboard get Hi World

### Builtin HTML viewer

Shareboard is developed to help a program such as a Markup viewer for vim. That’s why it has builtin HTML viewer written in Qt. To enable this feature, you have to install the following libraries

After you install these libraries, simply start the Shareboard server with -v option like

$ shareboard start -v

The builtin HTML viewer will automatically be refreshed everytime when you set new text data.

Special thanks

Shareboard is originally inspired by [mkdpreview](https://github.com/mattn/mkdpreview-vim).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shareboard-0.1.0.tar.gz (5.7 kB view details)

Uploaded Source

File details

Details for the file shareboard-0.1.0.tar.gz.

File metadata

  • Download URL: shareboard-0.1.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for shareboard-0.1.0.tar.gz
Algorithm Hash digest
SHA256 66df7ec5e07125580bb9288cd7dd7fb8a0c261e9b694315c4a0bbe621aea09fd
MD5 1e5ad5785a52b3fcd3a046309bd532eb
BLAKE2b-256 4aa15b1d6e976fb35a07ca38710f681a49c22b1da21a7766996f8f92e9bf2e5c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page