ptterm


Nameptterm JSON
Version 0.2 PyPI version JSON
download
home_pagehttps://github.com/jonathanslenders/ptterm
SummaryTerminal emulator for prompt_toolkit.
upload_time2018-07-22 17:01:14
maintainer
docs_urlNone
authorJonathan Slenders
requires_python
licenseLICENSE
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            ptterm
======

*A terminal emulator widget for prompt_toolkit applications*

Features
--------

- Cross platform: Windows + Linux support.


Applications using ptterm
-------------------------

- `pymux <https://github.com/jonathanslenders/pymux>`_: A terminal multiplexer,
  written in Python.


Example
-------

Inserting the terminal into a prompt_toolkit application is as easy as
importing a `Terminal` and inserting it into the layout. You can pass a
`done_callback` to get notified when the terminal process is done.


.. code:: python

    #!/usr/bin/env python
    from prompt_toolkit.application import Application
    from prompt_toolkit.layout import Layout
    from ptterm import Terminal


    def main():
        def done():
            application.exit()

        application = Application(
            layout=Layout(
                container=Terminal(done_callback=done)
            ),
            full_screen=True,
        )
        application.run()


    if __name__ == '__main__':
        main()


Thanks
------

- Thanks to `pyte <https://github.com/selectel/pyte>`_: for implementing a
  vt100 emulator.
- Thanks to `winpty <https://github.com/rprichard/winpty`_: for providing a PTY
  like interface for the Windows console.
- Thank to `yawinpty` for creating a Winpty wrapper.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/jonathanslenders/ptterm",
    "name": "ptterm",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Jonathan Slenders",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/3c/23/792677e3a8a68e86849ac116ceb9bcfa70f83681f491934f99d04f663968/ptterm-0.2.tar.gz",
    "platform": "",
    "description": "ptterm\n======\n\n*A terminal emulator widget for prompt_toolkit applications*\n\nFeatures\n--------\n\n- Cross platform: Windows + Linux support.\n\n\nApplications using ptterm\n-------------------------\n\n- `pymux <https://github.com/jonathanslenders/pymux>`_: A terminal multiplexer,\n  written in Python.\n\n\nExample\n-------\n\nInserting the terminal into a prompt_toolkit application is as easy as\nimporting a `Terminal` and inserting it into the layout. You can pass a\n`done_callback` to get notified when the terminal process is done.\n\n\n.. code:: python\n\n    #!/usr/bin/env python\n    from prompt_toolkit.application import Application\n    from prompt_toolkit.layout import Layout\n    from ptterm import Terminal\n\n\n    def main():\n        def done():\n            application.exit()\n\n        application = Application(\n            layout=Layout(\n                container=Terminal(done_callback=done)\n            ),\n            full_screen=True,\n        )\n        application.run()\n\n\n    if __name__ == '__main__':\n        main()\n\n\nThanks\n------\n\n- Thanks to `pyte <https://github.com/selectel/pyte>`_: for implementing a\n  vt100 emulator.\n- Thanks to `winpty <https://github.com/rprichard/winpty`_: for providing a PTY\n  like interface for the Windows console.\n- Thank to `yawinpty` for creating a Winpty wrapper.\n",
    "bugtrack_url": null,
    "license": "LICENSE",
    "summary": "Terminal emulator for prompt_toolkit.",
    "version": "0.2",
    "project_urls": {
        "Homepage": "https://github.com/jonathanslenders/ptterm"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b83bb451c064fea66d1498824dc52451a67ecb2e1a9bc83752405da49fdee3dd",
                "md5": "ac2c11c0e39b3c9ca31799b3e9066afb",
                "sha256": "aa2e91f30b8aff9170238e300caf245f71b5ceea8a196716aa5cc906968750ec"
            },
            "downloads": -1,
            "filename": "ptterm-0.2-py2-none-any.whl",
            "has_sig": false,
            "md5_digest": "ac2c11c0e39b3c9ca31799b3e9066afb",
            "packagetype": "bdist_wheel",
            "python_version": "2.7",
            "requires_python": null,
            "size": 32050,
            "upload_time": "2018-07-22T17:01:33",
            "upload_time_iso_8601": "2018-07-22T17:01:33.462747Z",
            "url": "https://files.pythonhosted.org/packages/b8/3b/b451c064fea66d1498824dc52451a67ecb2e1a9bc83752405da49fdee3dd/ptterm-0.2-py2-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "057c6db53ec6947b26441a55a79726e42668e268685431078991a52d0fffce42",
                "md5": "a9759c3af5cf466056eb46ce9bdd0f5e",
                "sha256": "848f397bf48bc0ac6bad8ed0400eb333d9f731eee6bba02415110231dd57970d"
            },
            "downloads": -1,
            "filename": "ptterm-0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a9759c3af5cf466056eb46ce9bdd0f5e",
            "packagetype": "bdist_wheel",
            "python_version": "3.6",
            "requires_python": null,
            "size": 33408,
            "upload_time": "2018-07-22T17:01:16",
            "upload_time_iso_8601": "2018-07-22T17:01:16.300764Z",
            "url": "https://files.pythonhosted.org/packages/05/7c/6db53ec6947b26441a55a79726e42668e268685431078991a52d0fffce42/ptterm-0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3c23792677e3a8a68e86849ac116ceb9bcfa70f83681f491934f99d04f663968",
                "md5": "4fb863c2fb2a544089e2ae556a004a16",
                "sha256": "a4f846fbf5d9f302a5442c8607d29b31beab08adb72ab34605085a7c55eb117a"
            },
            "downloads": -1,
            "filename": "ptterm-0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "4fb863c2fb2a544089e2ae556a004a16",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 27474,
            "upload_time": "2018-07-22T17:01:14",
            "upload_time_iso_8601": "2018-07-22T17:01:14.488506Z",
            "url": "https://files.pythonhosted.org/packages/3c/23/792677e3a8a68e86849ac116ceb9bcfa70f83681f491934f99d04f663968/ptterm-0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2018-07-22 17:01:14",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jonathanslenders",
    "github_project": "ptterm",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "lcname": "ptterm"
}
        
Elapsed time: 0.31719s