Skip to main content

libsixel binding for Python

Project description

What is this?

This module is a python wrapper of libsixel.

libsixel: https://github.com/saitoha/libsixel

Install

Example 1. Install into the python prefixed with ‘/usr/local’

$ git clone https://github.com/saitoha/libsixel.git
$ cd libsixel
$ git checkout develop  # now available only develop branch
$ ./configure --enable-python --prefix=/usr/local
$ make install

Example 2. Install into only current active python

$ git clone https://github.com/saitoha/libsixel.git
$ cd libsixel
$ git checkout develop  # now available only develop branch
$ ./configure --disable-python
$ make install  # install libsixel
$ cd python
$ python setup.py install  # install python module

Code Example

encoder

from libsixel.encoder import Encoder

encoder = Encoder()
encoder.setopt("w", "300")
encoder.setopt("p", "16")
encoder.encode("test.png")

decoder

from libsixel.decoder import Decoder

decoder = Decoder()
decoder.setopt("i", "test.six")
decoder.setopt("o", "test.png")
decoder.decode()

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

libsixel-python-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

libsixel_python-0.1.0-py2.7.egg (8.5 kB view details)

Uploaded Egg

File details

Details for the file libsixel-python-0.1.0.tar.gz.

File metadata

File hashes

Hashes for libsixel-python-0.1.0.tar.gz
Algorithm Hash digest
SHA256 de60a806ed5843bc5fd433d1ca4e8b5a7f760d3583e52252369192c399892c83
MD5 97496e8eaa0795d1e7cc927a812900a3
BLAKE2b-256 26d5ec6386583b156f342fa14bea9e96458d91ded44b5efd01a944ab3aeb42e5

See more details on using hashes here.

File details

Details for the file libsixel_python-0.1.0-py2.7.egg.

File metadata

File hashes

Hashes for libsixel_python-0.1.0-py2.7.egg
Algorithm Hash digest
SHA256 df0b817aa1ef0ec0342c8a9c30d04bd90dd7a112b7c6a1ee6401c4794bc961c1
MD5 04bf77734494219e7b6f643a92bf6def
BLAKE2b-256 08d5acf63e12e5ac26f1f3d2b76428cd5ac4ae9a7e3870b5e49ea1985597ff8b

See more details on using hashes here.

Supported by

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