Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
This package is inactive! No new features will be added, there will be no change of behavior, just bugfixes will be merged.
A Python library to create SVG drawings.
a simple example::
import svgwrite
dwg = svgwrite.Drawing('test.svg', profile='tiny')
dwg.add(dwg.line((0, 0), (10, 0), stroke=svgwrite.rgb(10, 10, 16, '%')))
dwg.add(dwg.text('Test', insert=(0, 0.2), fill='red'))
dwg.save()
for more examples see: examples.py
As the name svgwrite
implies, svgwrite
creates new SVG drawings, it does not read existing drawings and also does
not import existing drawings, but you can always include other SVG drawings by the entity.
svgwrite
is a pure Python package and has no external dependencies.
with pip::
pip install svgwrite
or from source::
python setup.py install
http://readthedocs.org/docs/svgwrite/
svgwrite can be found on GitHub.com at:
http://github.com/mozman/svgwrite.git
#114 <https://github.com/mozman/svgwrite/pull/114>
_ Polyline validation by @normanrzThis package is INACTIVE!
Merged some contributions and bugfixes.
svgparser.py
module by Florian Festipytest
or tox
insteadDrawing.embed_stylesheet(content)
, see example using_fonts.py <https://github.com/mozman/svgwrite/blob/9d509fe1842e519b8d8475f83543a7589b7c1879/examples/using_fonts.py#L21>
_Drawing.embed_font(fontname, filename)
, see example using_fonts.pyDrawing.embed_google_web_font(fontname, uri)
, see example using_fonts.pyChristof Hanke <https://www.induhviduals.de/>
_Mitar <http://mitar.tnode.com/>
_tirkarthi <http://tirkarthi.github.io/>
_pretty
argument to Drawing.write
, Drawing.save
and Drawing.saveas
to produce easy to read XML
output, svgwrite reparses the output string with minidom, this reduces the performance because this process requires
memory and runtime, default value for pretty
is False.u""
or better use from __future__ import unicode_literals
, because this is Python 3 compatible.rgb()
like rgb(0, 0, 0)
alpha version
new elements:
for examples see: examples.py
FAQs
A Python library to create SVG drawings.
We found that svgwrite demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.