{"id":13343256,"url":"https://github.com/ericktucto/xontrib-add-variable","last_synced_at":"2026-01-14T08:35:36.613Z","repository":{"id":62590090,"uuid":"141356828","full_name":"ericktucto/xontrib-add-variable","owner":"ericktucto","description":"This package allow add new variable.","archived":false,"fork":false,"pushed_at":"2018-11-30T22:55:16.000Z","size":622,"stargazers_count":8,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-29T00:47:54.273Z","etag":null,"topics":["extension","python","xonsh","xontrib"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericktucto.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-17T23:34:42.000Z","updated_at":"2025-08-06T13:45:58.000Z","dependencies_parsed_at":"2022-11-03T17:57:47.827Z","dependency_job_id":null,"html_url":"https://github.com/ericktucto/xontrib-add-variable","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ericktucto/xontrib-add-variable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericktucto%2Fxontrib-add-variable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericktucto%2Fxontrib-add-variable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericktucto%2Fxontrib-add-variable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericktucto%2Fxontrib-add-variable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericktucto","download_url":"https://codeload.github.com/ericktucto/xontrib-add-variable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericktucto%2Fxontrib-add-variable/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28414516,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:31:27.429Z","status":"ssl_error","status_checked_at":"2026-01-14T08:31:19.098Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["extension","python","xonsh","xontrib"],"created_at":"2024-07-29T19:30:45.178Z","updated_at":"2026-01-14T08:35:36.594Z","avatar_url":"https://github.com/ericktucto.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"*********************\nXontrib Add Variable\n*********************\n\nVersion number: 1.1.1\n\nAuthor: `Erick Tucto`_\n\nOverview\n########\n\nThis package allow add new variable to ``$PROMPT_FIELDS`` and\ncreate new aliases.\n\nInstallation / Usage\n####################\n\n1. To install use pip\n\n.. code-block:: bash\n\n    pip install xontrib-add-variable\n\n2. Add on ``~/.xonshrc``\n\nNow you can create new variables to $PROMPT on ``~/.xonsh/add_variable.xsh``,\nalso create new aliases, please see `Example`_ or my `wiki`_\n\n.. code:: python\n    :number-lines:\n\n    xontrib load add_variable\n\nContributing\n############\n\n1. `Erick Tucto`_\n\nExample\n#######\n\n1. On ``~/.xonsh/add_variable.xsh`` or ``~/.xonsh/add_variable.py``\n\n.. code:: python\n    :number-lines:\n\n    from time import strftime\n    from xontrib.add_variable.decorators import variable\n\n    @variable\n    def timeNow():\n        return strftime('%H:%M:%S')\n\n2. On ``~/.xonshrc``\n\n.. code:: python\n    :number-lines:\n\n    xontrib load add_variable\n\n    $RIGHT_PROMPT = '{timeNow}'\n\n3. See image\n\n|Terminal|\n\nCredits\n#######\n\nThis package was created with Cookiecutter_ and the xontrib_ template\n\n.. |Terminal| image:: https://raw.githubusercontent.com/ErickTucto/xontrib-add-variable/master/docs/terminal.png\n    :width: 600px\n    :alt: terminal.png\n\n.. _`Erick Tucto`: https://github.com/ErickTucto\n.. _`issue#1`: https://github.com/ErickTucto/xontrib-add-variable/issues/1\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _xontrib: https://github.com/laerus/cookiecutter-xontrib\n.. _wiki: https://github.com/ErickTucto/xontrib-add-variable/wiki","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericktucto%2Fxontrib-add-variable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericktucto%2Fxontrib-add-variable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericktucto%2Fxontrib-add-variable/lists"}