Skip to main content

A CLI for working with PyCharm intepreters.

Project description

jetsetter

Jetsetter is a tool for managing PyCharm interpreter settings. It allows you to quickly add an interpreter to PyCharm.

Rationale

PyCharm has the abiltiy to add an interpreter to a project, but it is a multi-step process. This tool aims to make it simple to do from the command line. It does so by adding the file to the jdk.table.xml file in your PyCharm's config directory.

Installation

pipx install jetsetter

Usage

jetsetter interpreter add /path/to/interpreter --name "My Interpreter"

Will add in a new interpreter to PyCharm with the name "My Interpreter" and the path /path/to/interpreter.

jetsetter interpreter add

Will look for an interpreter in the current directory and add it to PyCharm. Currently it looks for a .venv, venv, or virtual environment in the current directory. If no name it will use the name of the directory and the Python version.

Note: You'll have to restart PyCharm for the changes to take effect.

Development

This project uses Rye for development. To get started, install Rye and run the following commands:

rye sync

If you have direnv installed, you can run direnv allow to activate the environment.

To run the tests, run the following command:

nox

Also you'll need to install the pre-commit hooks:

pre-commit install --hook-type pre-commit --hook-type pre-push

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jetsetter-0.1.3.tar.gz (8.8 kB view hashes)

Uploaded Source

Built Distribution

jetsetter-0.1.3-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page