ohmypy


Nameohmypy JSON
Version 0.1.0 PyPI version JSON
download
home_page
SummaryCustomize Python interpreter!
upload_time2024-01-26 13:55:49
maintainer
docs_urlNone
authorlebao3105
requires_python>=3.9,<4.0
licenseGPLv3+
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## Ohmypy

Found your Python interpreter too boring? Want to bring more colors to your console?

Here you go: OhMyPython!

Working on these features:

* A general RC file (~/.ohmypy) containing settings

* Colors thanks to colorama

* Pretty exceptions show (using pretty-errors)

* Updates

* Plugins!

### Wanna try? Let's go!

Install this project. Then do one of these ways:

* Set `PYTHONSTARTUP` environment variable to the full path of `ohmypy/main.py`

* Import `ohmypy.main` anytime you use the interpreter

VoilĂ ! Your Python is...still that, except a message that `~/.ohmypy` is not here and therefore Ohmypy will create one for you.

But with no settings inside.

Just open that file, modify everything you want, and launch Python with Ohmypy.

VoilĂ ! You have your interpreter cooked!

### Settings

1. Python-related

a. `PS1` (str)

Python defaults to ">>> " (no quotes).

This is the prompt you see in the interpreter.

b. `PS2` (str)

Python defauts to "... " (no quotes).

Shows for function/class/loop/try-except-finally/if-else-elif indentations.

c. `ENV` (dict[str])

Environment variables to be set on Python startup.

d. `PREEXE` (list[str])

Run more startup scripts.

2. Ohmypy

a. `AUTO_UPDATE` (bool)

Not implemented, auto check for updates.

b. `UPDATE_DELAY` (str): Defaults to "3 days"

Not implemented.

c. `ACCEPT_RISKS` (bool): Defaults to False

Accept the risks made by running plugins + startup scripts.

d. `ADD_COLORS` (bool)

Add colors to prompts, if able and **asked** to.

e. `PLUGINS_TO_LOAD` (list[str])

Not implemented: plugins to load.

### Writing plugins

Plugins are (Test)Pypi packages with `ohmypy-` prefix.

The module must have `main()` function for plugin initialization and `deinit()` for plugin deinitialization (optional).

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "ohmypy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "lebao3105",
    "author_email": "bao12345yocoo@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/ef/3e/02b436e995c724534640da2af3ca1fb35ffcf04f468b65755d6e2c657a75/ohmypy-0.1.0.tar.gz",
    "platform": null,
    "description": "## Ohmypy\n\nFound your Python interpreter too boring? Want to bring more colors to your console?\n\nHere you go: OhMyPython!\n\nWorking on these features:\n\n* A general RC file (~/.ohmypy) containing settings\n\n* Colors thanks to colorama\n\n* Pretty exceptions show (using pretty-errors)\n\n* Updates\n\n* Plugins!\n\n### Wanna try? Let's go!\n\nInstall this project. Then do one of these ways:\n\n* Set `PYTHONSTARTUP` environment variable to the full path of `ohmypy/main.py`\n\n* Import `ohmypy.main` anytime you use the interpreter\n\nVoil\u00e0! Your Python is...still that, except a message that `~/.ohmypy` is not here and therefore Ohmypy will create one for you.\n\nBut with no settings inside.\n\nJust open that file, modify everything you want, and launch Python with Ohmypy.\n\nVoil\u00e0! You have your interpreter cooked!\n\n### Settings\n\n1. Python-related\n\na. `PS1` (str)\n\nPython defaults to \">>> \" (no quotes).\n\nThis is the prompt you see in the interpreter.\n\nb. `PS2` (str)\n\nPython defauts to \"... \" (no quotes).\n\nShows for function/class/loop/try-except-finally/if-else-elif indentations.\n\nc. `ENV` (dict[str])\n\nEnvironment variables to be set on Python startup.\n\nd. `PREEXE` (list[str])\n\nRun more startup scripts.\n\n2. Ohmypy\n\na. `AUTO_UPDATE` (bool)\n\nNot implemented, auto check for updates.\n\nb. `UPDATE_DELAY` (str): Defaults to \"3 days\"\n\nNot implemented.\n\nc. `ACCEPT_RISKS` (bool): Defaults to False\n\nAccept the risks made by running plugins + startup scripts.\n\nd. `ADD_COLORS` (bool)\n\nAdd colors to prompts, if able and **asked** to.\n\ne. `PLUGINS_TO_LOAD` (list[str])\n\nNot implemented: plugins to load.\n\n### Writing plugins\n\nPlugins are (Test)Pypi packages with `ohmypy-` prefix.\n\nThe module must have `main()` function for plugin initialization and `deinit()` for plugin deinitialization (optional).\n",
    "bugtrack_url": null,
    "license": "GPLv3+",
    "summary": "Customize Python interpreter!",
    "version": "0.1.0",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a76257f81441fbdb760f4b5907186ca55f046a1e075b0e0cc4f9929b6d4e6794",
                "md5": "d21b761405d15419916c82ec587ee6b6",
                "sha256": "54224eede885371e447bfe1c60d599faa4437284e53189f5b78de26ddab09f25"
            },
            "downloads": -1,
            "filename": "ohmypy-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d21b761405d15419916c82ec587ee6b6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9,<4.0",
            "size": 17728,
            "upload_time": "2024-01-26T13:55:29",
            "upload_time_iso_8601": "2024-01-26T13:55:29.485155Z",
            "url": "https://files.pythonhosted.org/packages/a7/62/57f81441fbdb760f4b5907186ca55f046a1e075b0e0cc4f9929b6d4e6794/ohmypy-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ef3e02b436e995c724534640da2af3ca1fb35ffcf04f468b65755d6e2c657a75",
                "md5": "d7c54dcb6a9c292da66dfabc70ebca9c",
                "sha256": "62cb819ec1f9143046880dbbd093f2c82d7f7b17e574b657f6bb63c4b65c5def"
            },
            "downloads": -1,
            "filename": "ohmypy-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "d7c54dcb6a9c292da66dfabc70ebca9c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9,<4.0",
            "size": 16637,
            "upload_time": "2024-01-26T13:55:49",
            "upload_time_iso_8601": "2024-01-26T13:55:49.477017Z",
            "url": "https://files.pythonhosted.org/packages/ef/3e/02b436e995c724534640da2af3ca1fb35ffcf04f468b65755d6e2c657a75/ohmypy-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-26 13:55:49",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "ohmypy"
}
        
Elapsed time: 0.26094s