indentation


Nameindentation JSON
Version 1.0.2 PyPI version JSON
download
home_pagehttps://github.com/hweickert/indentation
SummaryText indentation functions.
upload_time2015-11-08 10:43:41
maintainerNone
docs_urlNone
authorHenry Weickert
requires_pythonNone
licenseUNKNOWN
keywords indentation indent text
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ===============================
indentation
===============================

Text indentation functions.

-------------------------------
Usage
-------------------------------
Indenting to a specific level:

.. code::

    >>> import indentation
    >>> indentation.set( "hello", 1 )
    '    hello'

    >>> indentation.set( "    hello", 0 )
    'hello'


Indenting to a specific level (and keeping relative lines in place):

.. code::

    >>> import indentation
    >>> print( indentation.set("hello\n    world", 1) )
        hello
            world
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hweickert/indentation",
    "name": "indentation",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "indentation,indent,text",
    "author": "Henry Weickert",
    "author_email": "henryweickert@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/f6/bf/4df69a41d597170f042137622562e39ce3cf8fa496b4b053aa21c628e6b6/indentation-1.0.2.tar.gz",
    "platform": "UNKNOWN",
    "description": "===============================\r\nindentation\r\n===============================\r\n\r\nText indentation functions.\r\n\r\n-------------------------------\r\nUsage\r\n-------------------------------\r\nIndenting to a specific level:\r\n\r\n.. code::\r\n\r\n    >>> import indentation\r\n    >>> indentation.set( \"hello\", 1 )\r\n    '    hello'\r\n\r\n    >>> indentation.set( \"    hello\", 0 )\r\n    'hello'\r\n\r\n\r\nIndenting to a specific level (and keeping relative lines in place):\r\n\r\n.. code::\r\n\r\n    >>> import indentation\r\n    >>> print( indentation.set(\"hello\\n    world\", 1) )\r\n        hello\r\n            world",
    "bugtrack_url": null,
    "license": "UNKNOWN",
    "summary": "Text indentation functions.",
    "version": "1.0.2",
    "project_urls": {
        "Download": "UNKNOWN",
        "Homepage": "https://github.com/hweickert/indentation"
    },
    "split_keywords": [
        "indentation",
        "indent",
        "text"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "13f63f0537ad9f202de59f2898a759b3fc93cb3a3bfa697c84c87d416e5c70d7",
                "md5": "558ad229724bce049ff75171ee3ce1ce",
                "sha256": "3581e273f65771583ef11cbdf95ed1ef012c09043f0f7eabddd7c5f8008f5ddf"
            },
            "downloads": -1,
            "filename": "indentation-1.0.2-py2-none-any.whl",
            "has_sig": false,
            "md5_digest": "558ad229724bce049ff75171ee3ce1ce",
            "packagetype": "bdist_wheel",
            "python_version": "2.7",
            "requires_python": null,
            "size": 2532,
            "upload_time": "2015-11-08T10:45:08",
            "upload_time_iso_8601": "2015-11-08T10:45:08.541995Z",
            "url": "https://files.pythonhosted.org/packages/13/f6/3f0537ad9f202de59f2898a759b3fc93cb3a3bfa697c84c87d416e5c70d7/indentation-1.0.2-py2-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f6bf4df69a41d597170f042137622562e39ce3cf8fa496b4b053aa21c628e6b6",
                "md5": "e912d0a4fb19bd1e1f155e1d7e7365fa",
                "sha256": "bf055062a0ea621142a8a0314bd8467168fba48d4d9652e3c99cbeaa954c3962"
            },
            "downloads": -1,
            "filename": "indentation-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "e912d0a4fb19bd1e1f155e1d7e7365fa",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 1537,
            "upload_time": "2015-11-08T10:43:41",
            "upload_time_iso_8601": "2015-11-08T10:43:41.275381Z",
            "url": "https://files.pythonhosted.org/packages/f6/bf/4df69a41d597170f042137622562e39ce3cf8fa496b4b053aa21c628e6b6/indentation-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2015-11-08 10:43:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hweickert",
    "github_project": "indentation",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "indentation"
}
        
Elapsed time: 0.09670s