vye-svgbob


Namevye-svgbob JSON
Version 0.1.4 PyPI version JSON
download
home_pageNone
SummaryRender ASCII art diagrams to SVG using the Rust crate svgbob.
upload_time2024-01-17 06:51:10
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords svgbob ascii svg
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # vye-svgbob

`vye-svgbob` is a Python package that provides bindings for the Rust crate [svgbob](https://crates.io/crates/svgbob), allowing you to render ASCII art diagrams into SVG format in Python.

## Installation

### Requirements

Make sure you have the following prerequisites installed on your system:

- [Rust](https://www.rust-lang.org/tools/install)
- [Maturin](https://pypi.org/project/maturin/)

```bash
# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

# Install Maturin
pip install maturin
```

### Install package

```bash
pip install vye-svgbob
```

## Example

```python
# Import the vye_svgbob module
import vye_svgbob

# Your ASCII art diagram as a string
ascii_art = """
+---------------+
| Hello,        |
|   vye_svgbob! |
+---------------+
"""

# Render ASCII art to SVG
svg_output = vye_svgbob.to_svg(ascii_art)

# Save SVG to a file
with open('output.svg', 'w') as svg_file:
    svg_file.write(svg_output)
```


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "vye-svgbob",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "svgbob,ascii,svg",
    "author": null,
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/77/91/5e2ed1c2f43b9646c28b1bf0f8a5f8ee21744f9e56664704c65020afeb9b/vye_svgbob-0.1.4.tar.gz",
    "platform": null,
    "description": "# vye-svgbob\n\n`vye-svgbob` is a Python package that provides bindings for the Rust crate [svgbob](https://crates.io/crates/svgbob), allowing you to render ASCII art diagrams into SVG format in Python.\n\n## Installation\n\n### Requirements\n\nMake sure you have the following prerequisites installed on your system:\n\n- [Rust](https://www.rust-lang.org/tools/install)\n- [Maturin](https://pypi.org/project/maturin/)\n\n```bash\n# Install Rust\ncurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh\n\n# Install Maturin\npip install maturin\n```\n\n### Install package\n\n```bash\npip install vye-svgbob\n```\n\n## Example\n\n```python\n# Import the vye_svgbob module\nimport vye_svgbob\n\n# Your ASCII art diagram as a string\nascii_art = \"\"\"\n+---------------+\n| Hello,        |\n|   vye_svgbob! |\n+---------------+\n\"\"\"\n\n# Render ASCII art to SVG\nsvg_output = vye_svgbob.to_svg(ascii_art)\n\n# Save SVG to a file\nwith open('output.svg', 'w') as svg_file:\n    svg_file.write(svg_output)\n```\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Render ASCII art diagrams to SVG using the Rust crate svgbob.",
    "version": "0.1.4",
    "project_urls": {
        "Repository": "https://github.com/sattva9/vye-svgbob"
    },
    "split_keywords": [
        "svgbob",
        "ascii",
        "svg"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "b57300fd84c6fb179581b49f3850e6426ee6999adad63734f638035e65eb5959",
                "md5": "70b0c4953615517494f939bebde84d04",
                "sha256": "71d23e8d62d76892d31d871ec354dd0a8b3aeacc6329d98883f564faa9b9e93d"
            },
            "downloads": -1,
            "filename": "vye_svgbob-0.1.4-cp311-cp311-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "70b0c4953615517494f939bebde84d04",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.8",
            "size": 452395,
            "upload_time": "2024-01-17T06:51:07",
            "upload_time_iso_8601": "2024-01-17T06:51:07.483661Z",
            "url": "https://files.pythonhosted.org/packages/b5/73/00fd84c6fb179581b49f3850e6426ee6999adad63734f638035e65eb5959/vye_svgbob-0.1.4-cp311-cp311-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "77915e2ed1c2f43b9646c28b1bf0f8a5f8ee21744f9e56664704c65020afeb9b",
                "md5": "07c53fc3ee6efe52aaf4f5bd4100943a",
                "sha256": "433228934e113ae4760f2793aef87226d984c968e11e08d07c6a0692a4e0f917"
            },
            "downloads": -1,
            "filename": "vye_svgbob-0.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "07c53fc3ee6efe52aaf4f5bd4100943a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 12213,
            "upload_time": "2024-01-17T06:51:10",
            "upload_time_iso_8601": "2024-01-17T06:51:10.174604Z",
            "url": "https://files.pythonhosted.org/packages/77/91/5e2ed1c2f43b9646c28b1bf0f8a5f8ee21744f9e56664704c65020afeb9b/vye_svgbob-0.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-17 06:51:10",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sattva9",
    "github_project": "vye-svgbob",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "vye-svgbob"
}
        
Elapsed time: 0.24346s