/opt/cloudlinux/venv/lib/python3.11/site-packages/svgwrite
NameSizeModeActions
data/-0755rm
extensions/-0755rm
__pycache__/-0755rm
animate.py66630644editdlrm
base.py86240644editdlrm
container.py107410644editdlrm
drawing.py52910644editdlrm
elementfactory.py22970644editdlrm
etree.py13610644editdlrm
filters.py80020644editdlrm
gradients.py47020644editdlrm
image.py24930644editdlrm
masking.py18560644editdlrm
mixins.py107490644editdlrm
params.py19030644editdlrm
path.py28480644editdlrm
pattern.py19730644editdlrm
shapes.py53100644editdlrm
solidcolor.py17340644editdlrm
text.py81380644editdlrm
utils.py74210644editdlrm
validator2.py62050644editdlrm
version.py11190644editdlrm
__init__.py25060644editdlrm
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/svgwrite/params.py (1903B)
#!/usr/bin/env python #coding:utf-8 # Author: mozman # Purpose: svgwrite package parameter # Created: 10.09.2010 # Copyright (C) 2010, Manfred Moitzi # License: MIT License from svgwrite.validator2 import get_validator class Parameter(object): """ .. attribute:: Parameter.debug *read/write* property * *True* : debug mode is on, all SVG attributes are checked if valid in the element context. Also the included SVG subelements will be checked if they are valid for the parent SVG element. * *False*: no validation checks will be done, but program execution is faster. .. attribute:: Parameter.profile *read/write* property name of the SVG profile, valid profiles are: ``'full|basic|tiny'`` """ __slots__ = ['_debug', 'validator', '_profile'] def __init__(self, debug=True, profile='full'): self._debug = debug self.profile = profile def _init_validator(self): self.validator = get_validator(self.profile, self.debug) @property def debug(self): return self._debug @debug.setter def debug(self, debug): self._debug = debug self._init_validator() def get_version(self): if self._profile == 'tiny': return '1.2' else: return '1.1' @property def profile(self): return self._profile @profile.setter def profile(self, profile): """ :param string profile: name of the SVG profile, valid profiles are: ``'full|basic|tiny'`` """ profile = profile.lower() if profile in ('tiny', 'basic', 'full'): self._profile = profile self._init_validator() else: raise ValueError("'%s' is not a valid profile." % profile)