Skip to main content

ScalableWriter

ScalableWriter is a small library which can generate SVG code.

Install

# PIP
pip install ScalableWriter

# GIT+PIP
pip install git+https://github.com/ZSendokame/Scalable.git

Use

import scalable

# Specify output file, it also accepts a width and height arguments.
svg = scalable.SVG('chess.svg', width=600)
y = 10
x = 10
color = False

for row in range(8):
    for rectangle in range(8):
        rectangle_color = 'white' if not color else 'black'
        color = not color

        # The functions accept every keyword, translating them into SVG.
        svg.rectangle(
            height=30, width=30, x=x * 3, y=y,
            stroke='black', fill=rectangle_color
        )

        x += 10
        color = not color if rectangle == 7 else color

    x = 10
    y += 30

# Save file.
svg.save()

Metadata

Release files for ScalableWriter 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ScalableWriter 1.2.1
File Size Uploaded Provenance Actions
ScalableWriter-1.2.1.tar.gz 3.2 kB Without provenance Details for ScalableWriter-1.2.1.tar.gz

Release files / ScalableWriter-1.2.1.tar.gz

Download URL ScalableWriter-1.2.1.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
cb9d2c01adc7485c118baba34dfd8ffe5b4ccc08a5ee6ad7aa256c02d5023a88
BLAKE2b-256 checksum
How to use checksums
b01a2261f852e2218d3d847e6b62c873264a72fb953ea225846f6172f43ed6e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Security for ScalableWriter 1.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page