pyansilove


Namepyansilove JSON
Version 1.4.1 PyPI version JSON
download
home_pagehttps://github.com/BakasuraRCE/pyansilove
SummaryLibrary for converting ANSI, ASCII, and other formats to PNG
upload_time2023-06-04 01:58:15
maintainer
docs_urlNone
authorBakasura
requires_python>=3.6
licenseBSD license
keywords pyansilove
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ===============
Python Ansilove
===============

pyansilove is a port of the libansilove_ library to convert ANSi and artscene related file formats into PNG images.

* Free software: BSD-2-Clause license


Features
--------

The following formats are supported:

- .ANS - ANSi (ANSI escape sequences: ANSI X3.64 standard)

TODO
----

Port support of formats:

- .PCB - PCBoard Bulletin Board System (BBS) own file format
- .BIN - Binary format (raw memory copy of text mode video memory)
- .ADF - Artworx format, supporting custom character sets and palettes
- .IDF - iCE Draw format, supporting custom character sets and palettes
- .TND - TundraDraw format, supporting 24-bit color mode
- .XB - The eXtended Binary XBin format, supporting custom character sets and palettes

Documentation
-------------

Usage
-----

.. code:: python

    from pathlib import Path

    from pyansilove.ansilove import AnsiLove
    from pyansilove.schemas import AnsiLoveOptions, AnsiLoveRenderingMode

    # https://16colo.rs/pack/break_05/h7-lark.nfo
    AnsiLove.ansi(
        Path('nfo.nfo'),
        Path('nfo.png'),
        options=AnsiLoveOptions(
            # truecolor=True,
            # diz=True,
            # dos=True,
            # mode=AnsiLoveRenderingMode.TRANSPARENT
        )
    )

    # https://16colo.rs/pack/fire-36/US-TREMR.ANS
    AnsiLove.ansi(
        Path('US-TREMR.ANS'),
        Path('US-TREMR.png'),
        options=AnsiLoveOptions(
            # diz=True,
            # dos=True,
            bits=9,
            scale_factor=2,
            # mode=AnsiLoveRenderingMode.TRANSPARENT,
        )
    )



License
-------

pyansilove is released under the BSD 2-Clause license. See the file LICENSE for details.

Credits
-------

Original code written by libansilove_

Port to python by Bakasura_

.. _libansilove: https://github.com/ansilove/libansilove
.. _Bakasura: https://github.com/BakasuraRCE


=======
History
=======

1.4.1 (2023-06-03)
------------------

* First release on PyPI.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/BakasuraRCE/pyansilove",
    "name": "pyansilove",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "pyansilove",
    "author": "Bakasura",
    "author_email": "bakasura@protonmail.ch",
    "download_url": "https://files.pythonhosted.org/packages/44/61/57c9d01a1013fbad1ce9b9037baf5b8a921f90ddd4750f7e89737664193f/pyansilove-1.4.1.tar.gz",
    "platform": null,
    "description": "===============\nPython Ansilove\n===============\n\npyansilove is a port of the libansilove_ library to convert ANSi and artscene related file formats into PNG images.\n\n* Free software: BSD-2-Clause license\n\n\nFeatures\n--------\n\nThe following formats are supported:\n\n- .ANS - ANSi (ANSI escape sequences: ANSI X3.64 standard)\n\nTODO\n----\n\nPort support of formats:\n\n- .PCB - PCBoard Bulletin Board System (BBS) own file format\n- .BIN - Binary format (raw memory copy of text mode video memory)\n- .ADF - Artworx format, supporting custom character sets and palettes\n- .IDF - iCE Draw format, supporting custom character sets and palettes\n- .TND - TundraDraw format, supporting 24-bit color mode\n- .XB - The eXtended Binary XBin format, supporting custom character sets and palettes\n\nDocumentation\n-------------\n\nUsage\n-----\n\n.. code:: python\n\n    from pathlib import Path\n\n    from pyansilove.ansilove import AnsiLove\n    from pyansilove.schemas import AnsiLoveOptions, AnsiLoveRenderingMode\n\n    # https://16colo.rs/pack/break_05/h7-lark.nfo\n    AnsiLove.ansi(\n        Path('nfo.nfo'),\n        Path('nfo.png'),\n        options=AnsiLoveOptions(\n            # truecolor=True,\n            # diz=True,\n            # dos=True,\n            # mode=AnsiLoveRenderingMode.TRANSPARENT\n        )\n    )\n\n    # https://16colo.rs/pack/fire-36/US-TREMR.ANS\n    AnsiLove.ansi(\n        Path('US-TREMR.ANS'),\n        Path('US-TREMR.png'),\n        options=AnsiLoveOptions(\n            # diz=True,\n            # dos=True,\n            bits=9,\n            scale_factor=2,\n            # mode=AnsiLoveRenderingMode.TRANSPARENT,\n        )\n    )\n\n\n\nLicense\n-------\n\npyansilove is released under the BSD 2-Clause license. See the file LICENSE for details.\n\nCredits\n-------\n\nOriginal code written by libansilove_\n\nPort to python by Bakasura_\n\n.. _libansilove: https://github.com/ansilove/libansilove\n.. _Bakasura: https://github.com/BakasuraRCE\n\n\n=======\nHistory\n=======\n\n1.4.1 (2023-06-03)\n------------------\n\n* First release on PyPI.\n",
    "bugtrack_url": null,
    "license": "BSD license",
    "summary": "Library for converting ANSI, ASCII, and other formats to PNG",
    "version": "1.4.1",
    "project_urls": {
        "Homepage": "https://github.com/BakasuraRCE/pyansilove"
    },
    "split_keywords": [
        "pyansilove"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "78563c35ac27a06b4ed1a68fc389bf4ddab16a2ecf92d1ae6470bff98dc72f16",
                "md5": "2c833a37020487faad56a1e3b18833f6",
                "sha256": "129638077537512745bda4cd7551b15ce09b7a2e7874c1a40b6681149fe0db08"
            },
            "downloads": -1,
            "filename": "pyansilove-1.4.1-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2c833a37020487faad56a1e3b18833f6",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.6",
            "size": 75176,
            "upload_time": "2023-06-04T01:58:12",
            "upload_time_iso_8601": "2023-06-04T01:58:12.971368Z",
            "url": "https://files.pythonhosted.org/packages/78/56/3c35ac27a06b4ed1a68fc389bf4ddab16a2ecf92d1ae6470bff98dc72f16/pyansilove-1.4.1-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "446157c9d01a1013fbad1ce9b9037baf5b8a921f90ddd4750f7e89737664193f",
                "md5": "8ff48241abc9f5ef5df04b518a0951a6",
                "sha256": "f4d98712a2a65901ab4d99abc8fe4ef6bac00827557a39f47c148f6f71eb3ec6"
            },
            "downloads": -1,
            "filename": "pyansilove-1.4.1.tar.gz",
            "has_sig": false,
            "md5_digest": "8ff48241abc9f5ef5df04b518a0951a6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 50603,
            "upload_time": "2023-06-04T01:58:15",
            "upload_time_iso_8601": "2023-06-04T01:58:15.073359Z",
            "url": "https://files.pythonhosted.org/packages/44/61/57c9d01a1013fbad1ce9b9037baf5b8a921f90ddd4750f7e89737664193f/pyansilove-1.4.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-04 01:58:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "BakasuraRCE",
    "github_project": "pyansilove",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "tox": true,
    "lcname": "pyansilove"
}
        
Elapsed time: 0.16581s