svg.py


Namesvg.py JSON
Version 1.4.2 PyPI version JSON
download
home_pagehttps://github.com/orsinium-labs/svg
SummarySVG drawing library
upload_time2023-04-25 10:07:34
maintainer
docs_urlNone
authorGram
requires_python>=3.7
licenseMIT
keywords svg drawing vector
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # svg.py

Python library to generate SVG files.

Features:

+ Compatible with all SVG standards: 1.1, 1.2, 2.0, Tiny.
+ 100% type safe.
+ Pure Python.
+ No third-party runtime dependencies.
+ No deprecated attributes, only what actually works.
+ The same names and structure as in the standard. If you know how to write SVG files, you know how to use this library.

Based on [svg-xsd-schema](https://github.com/dumistoklus/svg-xsd-schema/blob/master/svg.xsd) and [MDN reference](https://developer.mozilla.org/en-US/docs/Web/SVG).

## Installation

```bash
python3 -m pip install --user svg.py
```

## Usage

**Try svg.py online:** [svg.orsinium.dev](https://svg.orsinium.dev/).

```python
import svg
canvas = svg.SVG(
    width=60,
    height=60,
    elements=[
        svg.Circle(
            cx=30, cy=30, r=20,
            stroke="red",
            fill="white",
            stroke_width=5,
        ),
    ],
)
print(canvas)
```

See [examples](./examples/) for more.

## Projects using svg.py

The github topic [svg-py](https://github.com/topics/svg-py) contains some of the projects that use svg.py in one way or another. If you want your project to appear on the list, simply add `svg-py` into the list of project topics. [Here is how][add-topic].

[add-topic]: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/classifying-your-repository-with-topics#adding-topics-to-your-repository


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/orsinium-labs/svg",
    "name": "svg.py",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "svg,drawing,vector",
    "author": "Gram",
    "author_email": "gram@orsinium.dev",
    "download_url": "https://files.pythonhosted.org/packages/d9/5c/ed67c6d0042e2eef2a764dd2659377bce95a2644fccc432a171fd184a579/svg.py-1.4.2.tar.gz",
    "platform": null,
    "description": "# svg.py\n\nPython library to generate SVG files.\n\nFeatures:\n\n+ Compatible with all SVG standards: 1.1, 1.2, 2.0, Tiny.\n+ 100% type safe.\n+ Pure Python.\n+ No third-party runtime dependencies.\n+ No deprecated attributes, only what actually works.\n+ The same names and structure as in the standard. If you know how to write SVG files, you know how to use this library.\n\nBased on [svg-xsd-schema](https://github.com/dumistoklus/svg-xsd-schema/blob/master/svg.xsd) and [MDN reference](https://developer.mozilla.org/en-US/docs/Web/SVG).\n\n## Installation\n\n```bash\npython3 -m pip install --user svg.py\n```\n\n## Usage\n\n**Try svg.py online:** [svg.orsinium.dev](https://svg.orsinium.dev/).\n\n```python\nimport svg\ncanvas = svg.SVG(\n    width=60,\n    height=60,\n    elements=[\n        svg.Circle(\n            cx=30, cy=30, r=20,\n            stroke=\"red\",\n            fill=\"white\",\n            stroke_width=5,\n        ),\n    ],\n)\nprint(canvas)\n```\n\nSee [examples](./examples/) for more.\n\n## Projects using svg.py\n\nThe github topic [svg-py](https://github.com/topics/svg-py) contains some of the projects that use svg.py in one way or another. If you want your project to appear on the list, simply add `svg-py` into the list of project topics. [Here is how][add-topic].\n\n[add-topic]: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/classifying-your-repository-with-topics#adding-topics-to-your-repository\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "SVG drawing library",
    "version": "1.4.2",
    "split_keywords": [
        "svg",
        "drawing",
        "vector"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dbd68d2ba16b31f46c5bc37fe771934c0ea0a0b5569c1327254b4f1a1d1c3ede",
                "md5": "e94d8ef9804bbb092b444299113ade2d",
                "sha256": "53e395bcd872f11d51d1cc78d18d57f8445536db7d09c4ccafeff4e3ba1a4074"
            },
            "downloads": -1,
            "filename": "svg.py-1.4.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e94d8ef9804bbb092b444299113ade2d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 13478,
            "upload_time": "2023-04-25T10:07:32",
            "upload_time_iso_8601": "2023-04-25T10:07:32.545244Z",
            "url": "https://files.pythonhosted.org/packages/db/d6/8d2ba16b31f46c5bc37fe771934c0ea0a0b5569c1327254b4f1a1d1c3ede/svg.py-1.4.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d95ced67c6d0042e2eef2a764dd2659377bce95a2644fccc432a171fd184a579",
                "md5": "48ddab291f0f1717a7c2c9314d7390ea",
                "sha256": "39911b9c77677fd00d7e268b2c37be17ef9c1562575c8c9d30a5849097dfb184"
            },
            "downloads": -1,
            "filename": "svg.py-1.4.2.tar.gz",
            "has_sig": false,
            "md5_digest": "48ddab291f0f1717a7c2c9314d7390ea",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 40211,
            "upload_time": "2023-04-25T10:07:34",
            "upload_time_iso_8601": "2023-04-25T10:07:34.865520Z",
            "url": "https://files.pythonhosted.org/packages/d9/5c/ed67c6d0042e2eef2a764dd2659377bce95a2644fccc432a171fd184a579/svg.py-1.4.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-25 10:07:34",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "orsinium-labs",
    "github_project": "svg",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "svg.py"
}
        
Elapsed time: 0.07150s