{"id":13646555,"url":"https://github.com/pythonic-emacs/pyenv-mode","last_synced_at":"2025-04-21T21:30:56.850Z","repository":{"id":14764917,"uuid":"17486319","full_name":"pythonic-emacs/pyenv-mode","owner":"pythonic-emacs","description":"Integrate pyenv with python-mode.","archived":false,"fork":false,"pushed_at":"2025-02-24T17:59:35.000Z","size":30,"stargazers_count":126,"open_issues_count":6,"forks_count":13,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-24T18:37:50.952Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"laravel/cashier","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pythonic-emacs.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-03-06T17:31:59.000Z","updated_at":"2025-02-24T17:59:39.000Z","dependencies_parsed_at":"2024-01-14T10:01:13.653Z","dependency_job_id":"8d2b9ef7-a093-416e-8939-af35c2b9de65","html_url":"https://github.com/pythonic-emacs/pyenv-mode","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonic-emacs%2Fpyenv-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonic-emacs%2Fpyenv-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonic-emacs%2Fpyenv-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonic-emacs%2Fpyenv-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pythonic-emacs","download_url":"https://codeload.github.com/pythonic-emacs/pyenv-mode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250136643,"owners_count":21380871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-08-02T01:02:58.966Z","updated_at":"2025-04-21T21:30:56.584Z","avatar_url":"https://github.com/pythonic-emacs.png","language":"Emacs Lisp","funding_links":[],"categories":["Emacs Lisp"],"sub_categories":[],"readme":".. |melpa| image:: https://melpa.org/packages/pyenv-mode-badge.svg\n    :target: https://melpa.org/#/pyenv-mode\n    :alt: Melpa\n.. |melpa-stable| image:: https://stable.melpa.org/packages/pyenv-mode-badge.svg\n    :target: https://stable.melpa.org/#/pyenv-mode\n    :alt: Melpa-Stable\n.. |ci| image:: https://github.com/pythonic-emacs/pyenv-mode/actions/workflows/test.yml/badge.svg\n    :target: https://github.com/pythonic-emacs/pyenv-mode/actions/workflows/test.yml\n    :alt: CI\n\n==========\nPyenv mode\n==========\n\n|melpa| |melpa-stable| |ci|\n\nPyenv mode integrates Fabián E. Gallina's `python.el`_ with the pyenv_ tool.\nThis gives packages which already use python.el (like python-django_)\npyenv virtual environment support out-of-the-box.\n\nPyenv mode does...\n~~~~~~~~~~~~~~~~~~\n\n* Setup the ``PYENV_VERSION`` environment variable and\n  ``python-shell-virtualenv-path`` custom variable based on user input\n\nPyenv mode doesn't...\n~~~~~~~~~~~~~~~~~~~~~\n\n* Override your ``exec-path``\n* Run external shell scripts\n* Manage your pyenv installation\n* Deal with virtualenvwrapper\n\nInstallation\n------------\n\nYou can simply install the package from Melpa_::\n\n    M-x package-install RET pyenv-mode\n\nUsage\n-----\n\nAdd following block to your Emacs configuration:\n\n.. code:: lisp\n\n    (pyenv-mode)\n\nNow you can specify the pyenv Python version::\n\n    M-x pyenv-mode-set\n\nSo now when you run inferior Python with::\n\n    M-x run-python\n\nThe process will start inside the specified Python installation.  You can\nunset the current version with::\n\n    M-x pyenv-mode-unset\n\nGoodies\n-------\n\nWhen you set the Python version with ``pyenv-mode``, the following changes\nhappen automatically:\n\n* compile commands use proper Python version and environment\n* flycheck_ performs syntax checking according to Python version you use\n* anaconda-mode_ search completions, definitions and references respect the chosen environment\n\nProjectile integration\n``````````````````````\n\nYou can switch Python versions together with your current project.  Drop\nthe following lines into your Emacs init file.  When you use projectile switch\nproject with the ``C-c p p`` key binding ``pyenv-mode`` will activate the\nenvironment matched to the project's name.\n\n.. code:: lisp\n\n    (require 'pyenv-mode)\n\n    (defun projectile-pyenv-mode-set ()\n      \"Set pyenv version matching project name.\"\n      (let ((project (projectile-project-name)))\n        (if (member project (pyenv-mode-versions))\n            (pyenv-mode-set project)\n          (pyenv-mode-unset))))\n\n    (add-hook 'projectile-after-switch-project-hook 'projectile-pyenv-mode-set)\n\n.. _python.el: http://repo.or.cz/w/emacs.git/blob_plain/master:/lisp/progmodes/python.el\n.. _pyenv: https://github.com/yyuu/pyenv\n.. _python-django: https://github.com/fgallina/python-django.el\n.. _Melpa: https://melpa.org\n.. _flycheck: https://github.com/flycheck/flycheck\n.. _anaconda-mode: https://github.com/proofit404/anaconda-mode\n.. _projectile: https://github.com/bbatsov/projectile\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythonic-emacs%2Fpyenv-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpythonic-emacs%2Fpyenv-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythonic-emacs%2Fpyenv-mode/lists"}