Skip to main content

ImageStack Python

A simple way to create images using svg and jinja2 templating

Build Status PyPi version

Installation

Install with pip

pip install imagestack-svg

Running without display

xvfb-run python3 {your application}

Test Design

You can test your SVG Design here: https://skillor.github.io/imagestack-svg-python/

Usage

from imagestack_svg.imagecreator import ImageCreator
from imagestack_svg.imageresolve import ImageStackResolveString
ig = ImageCreator()
s = ImageStackResolveString('<text>{{ dummy }}</text>')
s(dummy='Hello World!')
print(await ig.create_inner_svg(s))
with open('test.png', 'wb') as f:
    f.write((await ig.create_bytes(s)).read())

more examples here: https://github.com/skillor/imagestack-svg-python/blob/master/test.py

Download files

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

Source Distribution

imagestack_svg-1.1.1.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

imagestack_svg-1.1.1-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file imagestack_svg-1.1.1.tar.gz.

File metadata

  • Download URL: imagestack_svg-1.1.1.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.18

File hashes

Hashes for imagestack_svg-1.1.1.tar.gz
Algorithm Hash digest
SHA256 be41c2d31554b9092512ef36fd3ae127ff36d31f192866376d252a7e79b99e3d
MD5 0a07f506b70a0402e2674ff7f3c1ad54
BLAKE2b-256 b0f3c45df3991555295a49a0dbc46ae160652711b326a21c01137396338c309b

See more details on using hashes here.

File details

Details for the file imagestack_svg-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: imagestack_svg-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.18

File hashes

Hashes for imagestack_svg-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bd09fb019442e1441c164c7ba391b5517790d4cffeb9bfe3fee783f49d898f00
MD5 dc9e5e258f115ede79b5d85be210cbdf
BLAKE2b-256 3d203131ad14e3973f17d2fab8fda386dc453abfa7da22a38e29d6c39b0baee4

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 files

1.1.0

3 files

1.0.1

2 files

1.0.0

2 files

0.2.6

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

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