xonsh


Namexonsh JSON
Version 0.18.4 PyPI version JSON
download
home_pageNone
SummaryPython-powered shell. Full-featured and cross-platform.
upload_time2024-11-02 21:50:59
maintainerXonsh Community
docs_urlNone
authorAnthony Scopatz
requires_python>=3.9
licenseBSD 2-Clause License
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            xonsh
=====

.. class:: center

    **xonsh** is a Python-powered shell. Full-featured and cross-platform. The language is a superset of Python 3.6+ with additional shell primitives.  Xonsh word was made from *conch* (🐚, *@*) and indicates belonging to the command shells world.


.. list-table::
   :widths: 1 1

   *  -  **Xonsh is the Shell**
      -  **Xonsh is Python**

   *  -  .. code-block:: shell

            cd $HOME

            id $(whoami)

            cat /etc/passwd | grep root > ~/root.txt

            $PROMPT = '@ '


      -  .. code-block:: python

            2 + 2

            var = "hello".upper()

            import json; json.loads('{"a":1}')

            [i for i in range(0,10)]

   *  -  **Xonsh is the Shell in Python**
      -  **Xonsh is Python in the Shell**

   *  -  .. code-block:: python

            len($(curl -L https://xon.sh))

            $PATH.append('/tmp')

            p'/etc/passwd'.read_text().find('root')

            xontrib load dalias
            id = $(@json docker ps --format json)['ID']

      -  .. code-block:: python

            name = 'foo' + 'bar'.upper()
            echo @(name) > /tmp/@(name)

            ls @(input('file: '))
            touch @([f"file{i}" for i in range(0,10)])

            aliases['e'] = 'echo @(2+2)'
            aliases['a'] = lambda args: print(args)


If you like xonsh, :star: the repo, `write a tweet`_ and stay tuned by watching releases.

.. class:: center

    .. image:: https://img.shields.io/badge/Zulip%20Community-xonsh-green
            :target: https://xonsh.zulipchat.com/join/hbvue5rimpdkwkdjuiqfs7tv/
            :alt: Join to xonsh.zulipchat.com

    .. image:: https://github.com/xonsh/xonsh/actions/workflows/test.yml/badge.svg
            :target: https://github.com/xonsh/xonsh/actions/workflows/test.yml
            :alt: GitHub Actions

    .. image:: https://codecov.io/gh/xonsh/xonsh/branch/master/graphs/badge.svg?branch=main
            :target: https://codecov.io/github/xonsh/xonsh?branch=main
            :alt: codecov.io

    .. image:: https://repology.org/badge/tiny-repos/xonsh.svg
            :target: https://repology.org/project/xonsh/versions
            :alt: repology.org


First steps
***********

Install xonsh from pip:

.. code-block:: xonshcon

    python -m pip install 'xonsh[full]'

And visit https://xon.sh for more information:

- `Installation <https://xon.sh/contents.html#installation>`_ - using packages, docker or AppImage.
- `Tutorial <https://xon.sh/tutorial.html>`_ - step by step introduction in xonsh.

Extensions
**********

Xonsh has an extension/plugin system.  We call these additions ``xontribs``.

- `Xontribs on Github <https://github.com/topics/xontrib>`_
- `Awesome xontribs <https://github.com/xonsh/awesome-xontribs>`_
- `Core xontribs <https://xon.sh/api/_autosummary/xontribs/xontrib.html>`_
- `Create a xontrib step by step from template <https://github.com/xonsh/xontrib-template>`_

Projects that use xonsh or compatible
*************************************

- `conda <https://conda.io/projects/conda/en/latest/>`_ and `mamba <https://mamba.readthedocs.io/en/latest/>`_: Modern package managers.
- `Starship <https://starship.rs/>`_: Cross-shell prompt.
- `zoxide <https://github.com/ajeetdsouza/zoxide>`_: A smarter cd command.
- `gitsome <https://github.com/donnemartin/gitsome>`_: Supercharged Git/shell autocompleter with GitHub integration.
- `xxh <https://github.com/xxh/xxh>`_: Using xonsh wherever you go through the SSH.
- `any-nix-shell <https://github.com/haslersn/any-nix-shell>`_: xonsh support for the ``nix run`` and ``nix-shell`` environments of the Nix package manager.
- `lix <https://github.com/lix-project/lix>`_: A modern, delicious implementation of the Nix package manager.
- `x-cmd <https://www.x-cmd.com/>`_: x-cmd is a vast and interesting collection of tools guided by the Unix philosophy.
- `rever <https://regro.github.io/rever-docs/>`_: Cross-platform software release tool.
- `Regro autotick bot <https://github.com/regro/cf-scripts>`_: Regro Conda-Forge autoticker.

Jupyter-based interactive notebooks via `xontrib-jupyter <https://github.com/xonsh/xontrib-jupyter>`_:

- `Jupyter and JupyterLab <https://jupyter.org/>`_: Interactive notebook platform.
- `euporie <https://github.com/joouha/euporie>`_: Terminal based interactive computing environment.
- `Jupytext <https://jupytext.readthedocs.io/>`_: Clear and meaningful diffs when doing Jupyter notebooks version control.

The xonsh shell community
*************************

The xonsh shell is developed by a community of volunteers. There are a few ways to help out:

- Solve a `popular issue <https://github.com/xonsh/xonsh/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc>`_ or `high priority issue <https://github.com/xonsh/xonsh/issues?q=is%3Aopen+is%3Aissue+label%3Apriority-high+sort%3Areactions-%2B1-desc>`_ or a `good first issue <https://github.com/xonsh/xonsh/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22+sort%3Areactions-%2B1-desc>`_. You can start with the `Developer guide <https://xon.sh/devguide.html>`_.
- Take an `idea <https://github.com/xonsh/xontrib-template/issues?q=is%3Aopen+is%3Aissue+label%3Aidea+sort%3Areactions-%2B1-desc>`_ and `create a new xontrib <https://github.com/xonsh/xontrib-template#why-use-this-template>`_.
- Contribute to `xonsh API <https://github.com/xonsh/xonsh/tree/main/xonsh/api>`_.
- Become xonsh core developer by deep diving into xonsh internals. E.g. we feel a lack of Windows support.
- `Become a sponsor to xonsh <https://github.com/sponsors/xonsh>`_.
- `Write a tweet`_, post or an article to spread the good word about xonsh in the world.
- Give a star to xonsh repository and to `xontribs <https://github.com/topics/xontrib>`_ you like.

We welcome new contributors!

.. _write a tweet: https://twitter.com/intent/tweet?text=xonsh%20is%20a%20Python-powered,%20cross-platform,%20Unix-gazing%20shell%20language%20and%20command%20prompt.&url=https://github.com/xonsh/xonsh

Credits
*******

- Thanks to `Zulip <https://zulip.com/>`_ for supporting the xonsh community!

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "xonsh",
    "maintainer": "Xonsh Community",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "xonsh@gil.forsyth.dev",
    "keywords": null,
    "author": "Anthony Scopatz",
    "author_email": "scopatz@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/d5/b1/c636b3dd0aad77bc45b6344c0aa4dd19694ebb67052b24bfdef35c23cd3c/xonsh-0.18.4.tar.gz",
    "platform": "Cross Platform",
    "description": "xonsh\n=====\n\n.. class:: center\n\n    **xonsh** is a Python-powered shell. Full-featured and cross-platform. The language is a superset of Python 3.6+ with additional shell primitives.  Xonsh word was made from *conch* (\ud83d\udc1a, *@*) and indicates belonging to the command shells world.\n\n\n.. list-table::\n   :widths: 1 1\n\n   *  -  **Xonsh is the Shell**\n      -  **Xonsh is Python**\n\n   *  -  .. code-block:: shell\n\n            cd $HOME\n\n            id $(whoami)\n\n            cat /etc/passwd | grep root > ~/root.txt\n\n            $PROMPT = '@ '\n\n\n      -  .. code-block:: python\n\n            2 + 2\n\n            var = \"hello\".upper()\n\n            import json; json.loads('{\"a\":1}')\n\n            [i for i in range(0,10)]\n\n   *  -  **Xonsh is the Shell in Python**\n      -  **Xonsh is Python in the Shell**\n\n   *  -  .. code-block:: python\n\n            len($(curl -L https://xon.sh))\n\n            $PATH.append('/tmp')\n\n            p'/etc/passwd'.read_text().find('root')\n\n            xontrib load dalias\n            id = $(@json docker ps --format json)['ID']\n\n      -  .. code-block:: python\n\n            name = 'foo' + 'bar'.upper()\n            echo @(name) > /tmp/@(name)\n\n            ls @(input('file: '))\n            touch @([f\"file{i}\" for i in range(0,10)])\n\n            aliases['e'] = 'echo @(2+2)'\n            aliases['a'] = lambda args: print(args)\n\n\nIf you like xonsh, :star: the repo, `write a tweet`_ and stay tuned by watching releases.\n\n.. class:: center\n\n    .. image:: https://img.shields.io/badge/Zulip%20Community-xonsh-green\n            :target: https://xonsh.zulipchat.com/join/hbvue5rimpdkwkdjuiqfs7tv/\n            :alt: Join to xonsh.zulipchat.com\n\n    .. image:: https://github.com/xonsh/xonsh/actions/workflows/test.yml/badge.svg\n            :target: https://github.com/xonsh/xonsh/actions/workflows/test.yml\n            :alt: GitHub Actions\n\n    .. image:: https://codecov.io/gh/xonsh/xonsh/branch/master/graphs/badge.svg?branch=main\n            :target: https://codecov.io/github/xonsh/xonsh?branch=main\n            :alt: codecov.io\n\n    .. image:: https://repology.org/badge/tiny-repos/xonsh.svg\n            :target: https://repology.org/project/xonsh/versions\n            :alt: repology.org\n\n\nFirst steps\n***********\n\nInstall xonsh from pip:\n\n.. code-block:: xonshcon\n\n    python -m pip install 'xonsh[full]'\n\nAnd visit https://xon.sh for more information:\n\n- `Installation <https://xon.sh/contents.html#installation>`_ - using packages, docker or AppImage.\n- `Tutorial <https://xon.sh/tutorial.html>`_ - step by step introduction in xonsh.\n\nExtensions\n**********\n\nXonsh has an extension/plugin system.  We call these additions ``xontribs``.\n\n- `Xontribs on Github <https://github.com/topics/xontrib>`_\n- `Awesome xontribs <https://github.com/xonsh/awesome-xontribs>`_\n- `Core xontribs <https://xon.sh/api/_autosummary/xontribs/xontrib.html>`_\n- `Create a xontrib step by step from template <https://github.com/xonsh/xontrib-template>`_\n\nProjects that use xonsh or compatible\n*************************************\n\n- `conda <https://conda.io/projects/conda/en/latest/>`_ and `mamba <https://mamba.readthedocs.io/en/latest/>`_: Modern package managers.\n- `Starship <https://starship.rs/>`_: Cross-shell prompt.\n- `zoxide <https://github.com/ajeetdsouza/zoxide>`_: A smarter cd command.\n- `gitsome <https://github.com/donnemartin/gitsome>`_: Supercharged Git/shell autocompleter with GitHub integration.\n- `xxh <https://github.com/xxh/xxh>`_: Using xonsh wherever you go through the SSH.\n- `any-nix-shell <https://github.com/haslersn/any-nix-shell>`_: xonsh support for the ``nix run`` and ``nix-shell`` environments of the Nix package manager.\n- `lix <https://github.com/lix-project/lix>`_: A modern, delicious implementation of the Nix package manager.\n- `x-cmd <https://www.x-cmd.com/>`_: x-cmd is a vast and interesting collection of tools guided by the Unix philosophy.\n- `rever <https://regro.github.io/rever-docs/>`_: Cross-platform software release tool.\n- `Regro autotick bot <https://github.com/regro/cf-scripts>`_: Regro Conda-Forge autoticker.\n\nJupyter-based interactive notebooks via `xontrib-jupyter <https://github.com/xonsh/xontrib-jupyter>`_:\n\n- `Jupyter and JupyterLab <https://jupyter.org/>`_: Interactive notebook platform.\n- `euporie <https://github.com/joouha/euporie>`_: Terminal based interactive computing environment.\n- `Jupytext <https://jupytext.readthedocs.io/>`_: Clear and meaningful diffs when doing Jupyter notebooks version control.\n\nThe xonsh shell community\n*************************\n\nThe xonsh shell is developed by a community of volunteers. There are a few ways to help out:\n\n- Solve a `popular issue <https://github.com/xonsh/xonsh/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc>`_ or `high priority issue <https://github.com/xonsh/xonsh/issues?q=is%3Aopen+is%3Aissue+label%3Apriority-high+sort%3Areactions-%2B1-desc>`_ or a `good first issue <https://github.com/xonsh/xonsh/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22+sort%3Areactions-%2B1-desc>`_. You can start with the `Developer guide <https://xon.sh/devguide.html>`_.\n- Take an `idea <https://github.com/xonsh/xontrib-template/issues?q=is%3Aopen+is%3Aissue+label%3Aidea+sort%3Areactions-%2B1-desc>`_ and `create a new xontrib <https://github.com/xonsh/xontrib-template#why-use-this-template>`_.\n- Contribute to `xonsh API <https://github.com/xonsh/xonsh/tree/main/xonsh/api>`_.\n- Become xonsh core developer by deep diving into xonsh internals. E.g. we feel a lack of Windows support.\n- `Become a sponsor to xonsh <https://github.com/sponsors/xonsh>`_.\n- `Write a tweet`_, post or an article to spread the good word about xonsh in the world.\n- Give a star to xonsh repository and to `xontribs <https://github.com/topics/xontrib>`_ you like.\n\nWe welcome new contributors!\n\n.. _write a tweet: https://twitter.com/intent/tweet?text=xonsh%20is%20a%20Python-powered,%20cross-platform,%20Unix-gazing%20shell%20language%20and%20command%20prompt.&url=https://github.com/xonsh/xonsh\n\nCredits\n*******\n\n- Thanks to `Zulip <https://zulip.com/>`_ for supporting the xonsh community!\n",
    "bugtrack_url": null,
    "license": "BSD 2-Clause License",
    "summary": "Python-powered shell. Full-featured and cross-platform.",
    "version": "0.18.4",
    "project_urls": {
        "Homepage": "https://xon.sh",
        "Issue tracker": "https://github.com/xonsh/xonsh/issues",
        "changelog": "https://github.com/xonsh/xonsh/blob/main/CHANGELOG.rst",
        "documentation": "https://xon.sh/contents.html",
        "repository": "https://github.com/xonsh/xonsh"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "97d676339325f999f57fcc32bc138aabddf08c11125ab889e269926b91e95e2f",
                "md5": "59b83e2f27b2f0f406d011f1ae34915c",
                "sha256": "7c043bda3223f55caf72cc87e0c61eb94cffd6b2fbe8295da9dc10604a98e2f9"
            },
            "downloads": -1,
            "filename": "xonsh-0.18.4-py310-none-any.whl",
            "has_sig": false,
            "md5_digest": "59b83e2f27b2f0f406d011f1ae34915c",
            "packagetype": "bdist_wheel",
            "python_version": "py310",
            "requires_python": ">=3.9",
            "size": 637611,
            "upload_time": "2024-11-02T21:50:53",
            "upload_time_iso_8601": "2024-11-02T21:50:53.217924Z",
            "url": "https://files.pythonhosted.org/packages/97/d6/76339325f999f57fcc32bc138aabddf08c11125ab889e269926b91e95e2f/xonsh-0.18.4-py310-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "99b79568ffcb19b730d0a0ade2f54be62e65828b2ddd35ca9be39b28edbf5877",
                "md5": "8c8e7c6376467a79b91f2f650227e099",
                "sha256": "c28fb81e18e40a6d8c76f71905848eb0d132215d0fddcfba8bf377aaaa0bec23"
            },
            "downloads": -1,
            "filename": "xonsh-0.18.4-py311-none-any.whl",
            "has_sig": false,
            "md5_digest": "8c8e7c6376467a79b91f2f650227e099",
            "packagetype": "bdist_wheel",
            "python_version": "py311",
            "requires_python": ">=3.9",
            "size": 637588,
            "upload_time": "2024-11-02T21:50:57",
            "upload_time_iso_8601": "2024-11-02T21:50:57.287920Z",
            "url": "https://files.pythonhosted.org/packages/99/b7/9568ffcb19b730d0a0ade2f54be62e65828b2ddd35ca9be39b28edbf5877/xonsh-0.18.4-py311-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fd584dbfacd9b9629b24234a9e1e7d22f63a58b5e9831b92d2dcbda409f07226",
                "md5": "8a9b2917c8fd75b54babcd4d7ef26e4c",
                "sha256": "b4ffb8497d38d9c50e8b6003cf4c27b440e664c28ceccd605cdfee039edd4043"
            },
            "downloads": -1,
            "filename": "xonsh-0.18.4-py312-none-any.whl",
            "has_sig": false,
            "md5_digest": "8a9b2917c8fd75b54babcd4d7ef26e4c",
            "packagetype": "bdist_wheel",
            "python_version": "py312",
            "requires_python": ">=3.9",
            "size": 637506,
            "upload_time": "2024-11-02T21:50:50",
            "upload_time_iso_8601": "2024-11-02T21:50:50.477867Z",
            "url": "https://files.pythonhosted.org/packages/fd/58/4dbfacd9b9629b24234a9e1e7d22f63a58b5e9831b92d2dcbda409f07226/xonsh-0.18.4-py312-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c2c6db5ba9c72b4b37ab6aee41f02ccb521ff886cc3453719fcd1dc1164c5144",
                "md5": "0a1e6efb62ecda8bfc72ffa8952cd2b3",
                "sha256": "7ddea61b34d2ac3f27c8f99810bae040a60b9ab639816880f48a1e144aa9300c"
            },
            "downloads": -1,
            "filename": "xonsh-0.18.4-py39-none-any.whl",
            "has_sig": false,
            "md5_digest": "0a1e6efb62ecda8bfc72ffa8952cd2b3",
            "packagetype": "bdist_wheel",
            "python_version": "py39",
            "requires_python": ">=3.9",
            "size": 629838,
            "upload_time": "2024-11-02T21:50:53",
            "upload_time_iso_8601": "2024-11-02T21:50:53.345902Z",
            "url": "https://files.pythonhosted.org/packages/c2/c6/db5ba9c72b4b37ab6aee41f02ccb521ff886cc3453719fcd1dc1164c5144/xonsh-0.18.4-py39-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d5b1c636b3dd0aad77bc45b6344c0aa4dd19694ebb67052b24bfdef35c23cd3c",
                "md5": "48925174759913cef49d309afcd07a4b",
                "sha256": "5ab71e3bd0650036995b457ce91f96be81fb3ef2959173e0396e7e83042e2952"
            },
            "downloads": -1,
            "filename": "xonsh-0.18.4.tar.gz",
            "has_sig": false,
            "md5_digest": "48925174759913cef49d309afcd07a4b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 793050,
            "upload_time": "2024-11-02T21:50:59",
            "upload_time_iso_8601": "2024-11-02T21:50:59.426857Z",
            "url": "https://files.pythonhosted.org/packages/d5/b1/c636b3dd0aad77bc45b6344c0aa4dd19694ebb67052b24bfdef35c23cd3c/xonsh-0.18.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-02 21:50:59",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "xonsh",
    "github_project": "xonsh",
    "github_fetch_exception": true,
    "lcname": "xonsh"
}
        
Elapsed time: 0.72476s