SILENT KILLERPanel

Current Path: > > opt > cloudlinux > venv > lib64 > python3.11 > site-packages > svgwrite


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/cloudlinux/venv/lib64/python3.11/site-packages/svgwrite

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
data Directory - -
extensions Directory - -
__init__.py File 2506 bytes April 17 2025 13:10:58.
animate.py File 6663 bytes April 17 2025 13:10:58.
base.py File 8624 bytes April 17 2025 13:10:58.
container.py File 10741 bytes April 17 2025 13:10:58.
drawing.py File 5291 bytes April 17 2025 13:10:58.
elementfactory.py File 2297 bytes April 17 2025 13:10:58.
etree.py File 1361 bytes April 17 2025 13:10:58.
filters.py File 8002 bytes April 17 2025 13:10:58.
gradients.py File 4702 bytes April 17 2025 13:10:58.
image.py File 2493 bytes April 17 2025 13:10:58.
masking.py File 1856 bytes April 17 2025 13:10:58.
mixins.py File 10749 bytes April 17 2025 13:10:58.
params.py File 1903 bytes April 17 2025 13:10:58.
path.py File 2848 bytes April 17 2025 13:10:58.
pattern.py File 1973 bytes April 17 2025 13:10:58.
shapes.py File 5310 bytes April 17 2025 13:10:58.
solidcolor.py File 1734 bytes April 17 2025 13:10:58.
text.py File 8138 bytes April 17 2025 13:10:58.
utils.py File 7421 bytes April 17 2025 13:10:58.
validator2.py File 6205 bytes April 17 2025 13:10:58.
version.py File 1119 bytes April 17 2025 13:10:58.

Reading File: //opt/cloudlinux/venv/lib64/python3.11/site-packages/svgwrite/elementfactory.py

#!/usr/bin/env python
#coding:utf-8
# Author:  mozman --<mozman@gmx.at>
# Purpose: element factory
# Created: 15.10.2010
# Copyright (C) 2010, Manfred Moitzi
# License: MIT License

from svgwrite import container
from svgwrite import shapes
from svgwrite import path
from svgwrite import image
from svgwrite import text
from svgwrite import gradients
from svgwrite import pattern
from svgwrite import masking
from svgwrite import animate
from svgwrite import filters
from svgwrite import solidcolor

factoryelements = {
    'g': container.Group,
    'svg': container.SVG,
    'defs': container.Defs,
    'symbol': container.Symbol,
    'marker': container.Marker,
    'use': container.Use,
    'a': container.Hyperlink,
    'script': container.Script,
    'style': container.Style,
    'line': shapes.Line,
    'rect': shapes.Rect,
    'circle': shapes.Circle,
    'ellipse': shapes.Ellipse,
    'polyline': shapes.Polyline,
    'polygon': shapes.Polygon,
    'path': path.Path,
    'image': image.Image,
    'text': text.Text,
    'tspan': text.TSpan,
    'tref': text.TRef,
    'textPath': text.TextPath,
    'textArea': text.TextArea,
    'linearGradient': gradients.LinearGradient,
    'radialGradient': gradients.RadialGradient,
    'pattern': pattern.Pattern,
    'solidColor': solidcolor.SolidColor,
    'clipPath': masking.ClipPath,
    'mask': masking.Mask,
    'animate': animate.Animate,
    'set': animate.Set,
    'animateColor': animate.AnimateColor,
    'animateMotion': animate.AnimateMotion,
    'animateTransform': animate.AnimateTransform,
    'filter': filters.Filter,
}


class ElementBuilder(object):
    def __init__(self, cls, factory):
        self.cls = cls
        self.factory = factory

    def __call__(self, *args, **kwargs):
        # inject creator object - inherit _parameter from factory
        kwargs['factory'] = self.factory
        # create an object of type 'cls'
        return self.cls(*args, **kwargs)


class ElementFactory(object):
    def __getattr__(self, name):
        if name in factoryelements:
            return ElementBuilder(factoryelements[name], self)
        else:
            raise AttributeError("'%s' has no attribute '%s'" % (self.__class__.__name__, name))

SILENT KILLER Tool