etupem


Nameetupem JSON
Version 0.4.4 PyPI version JSON
download
home_pagehttps://github.com/nodai2hITC/etupem/
Summarymake Easy To Understand Python Error Message for those who are not good at English.
upload_time2024-07-27 07:26:45
maintainerNone
docs_urlNone
authornodai2hITC
requires_python>=3.8
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # etupem

make Easy To Understand Python Error Message for those who are not good at English.

Currently, it is only available in Japanese.

Python のエラーメッセージを日本語で表示します。

## Requirements

- Python 3.8 or newer

## Recommended

- Python 3.10 or newer

## Install

    $ pip install etupem

## Usage (for Japanese)

    $ pythonja script.py

or

    $ python -m etupem ja script.py

## Example1

For example, run the following script.

```python:type_error.py
"あいうえお" + 456
```

Original python error message:

```
$ python type_error.py
Traceback (most recent call last):
  File "E:\scripts\type_error.py", line 1, in <module>
    "あいうえお" + 123
    ~~~~~~~~^~~~~
TypeError: can only concatenate str (not "int") to str
```

When using etupem:

![type_error](https://github.com/nodai2hITC/etupem/assets/25577113/c66b7368-bbf8-4918-8539-ef46067b4d6f)

```
$ pythonja type_error.py
Traceback (most recent call last):
  File "E:\scripts\type_error.py", line 1, in <module>
    "あいうえお" + 123
    ~~~~~~~~^~~~~
TypeError: can only concatenate str (not "int") to str
上に表示されているのが本来のエラーメッセージです。エラーについて調べる場合は、上のエラーメッセージで検索して下さい。
【型に関するエラー(TypeError)】
ファイル「E:\scripts\type_error.py」の 1行目でエラーが発生しました。
    "あいうえお" + 123
    ~~~~~~~~~~~~~^~~~~
文字列に 整数(int型)を結合することはできません。
```

## Example2

```python:name_error.py
Print("Hello, World!")
```

Original python error message:

```
$ python name_error.py
Traceback (most recent call last):
  File "E:\scripts\name_error.py", line 1, in <module>
    Print("Hello, World!")
    ^^^^^
NameError: name 'Print' is not defined. Did you mean: 'print'?
```

When using etupem:

![name_error](https://github.com/nodai2hITC/etupem/assets/25577113/a6f8fd9b-a666-4f53-baa7-f36327dc3c6c)

```
$ pythonja name_error.py
Traceback (most recent call last):
  File "E:\scripts\name_error.py", line 1, in <module>
    Print("Hello, World!")
    ^^^^^
NameError: name 'Print' is not defined. Did you mean: 'print'?
上に表示されているのが本来のエラーメッセージです。エラーについて調べる場合は、上のエラーメッセージで検索して下さい。
【名前に関するエラー(NameError)】
ファイル「E:\scripts\name_error.py」の 1行目でエラーが発生しました。
    Print("Hello, World!")
    ^^^^^
「Print」という名前の変数などは見つかりませんでした。「print」の入力ミスではありませんか?
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/nodai2hITC/etupem/",
    "name": "etupem",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "nodai2hITC",
    "author_email": "nodai2h.itc@gmail.com",
    "download_url": null,
    "platform": null,
    "description": "# etupem\n\nmake Easy To Understand Python Error Message for those who are not good at English.\n\nCurrently, it is only available in Japanese.\n\nPython \u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u65e5\u672c\u8a9e\u3067\u8868\u793a\u3057\u307e\u3059\u3002\n\n## Requirements\n\n- Python 3.8 or newer\n\n## Recommended\n\n- Python 3.10 or newer\n\n## Install\n\n    $ pip install etupem\n\n## Usage (for Japanese)\n\n    $ pythonja script.py\n\nor\n\n    $ python -m etupem ja script.py\n\n## Example1\n\nFor example, run the following script.\n\n```python:type_error.py\n\"\u3042\u3044\u3046\u3048\u304a\" + 456\n```\n\nOriginal python error message:\n\n```\n$ python type_error.py\nTraceback (most recent call last):\n  File \"E:\\scripts\\type_error.py\", line 1, in <module>\n    \"\u3042\u3044\u3046\u3048\u304a\" + 123\n    ~~~~~~~~^~~~~\nTypeError: can only concatenate str (not \"int\") to str\n```\n\nWhen using etupem:\n\n![type_error](https://github.com/nodai2hITC/etupem/assets/25577113/c66b7368-bbf8-4918-8539-ef46067b4d6f)\n\n```\n$ pythonja type_error.py\nTraceback (most recent call last):\n  File \"E:\\scripts\\type_error.py\", line 1, in <module>\n    \"\u3042\u3044\u3046\u3048\u304a\" + 123\n    ~~~~~~~~^~~~~\nTypeError: can only concatenate str (not \"int\") to str\n\u4e0a\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u672c\u6765\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u3059\u3002\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u8abf\u3079\u308b\u5834\u5408\u306f\u3001\u4e0a\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u691c\u7d22\u3057\u3066\u4e0b\u3055\u3044\u3002\n\u3010\u578b\u306b\u95a2\u3059\u308b\u30a8\u30e9\u30fc(TypeError)\u3011\n\u30d5\u30a1\u30a4\u30eb\u300cE:\\scripts\\type_error.py\u300d\u306e 1\u884c\u76ee\u3067\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002\n    \"\u3042\u3044\u3046\u3048\u304a\" + 123\n    ~~~~~~~~~~~~~^~~~~\n\u6587\u5b57\u5217\u306b \u6574\u6570(int\u578b)\u3092\u7d50\u5408\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\n```\n\n## Example2\n\n```python:name_error.py\nPrint(\"Hello, World!\")\n```\n\nOriginal python error message:\n\n```\n$ python name_error.py\nTraceback (most recent call last):\n  File \"E:\\scripts\\name_error.py\", line 1, in <module>\n    Print(\"Hello, World!\")\n    ^^^^^\nNameError: name 'Print' is not defined. Did you mean: 'print'?\n```\n\nWhen using etupem:\n\n![name_error](https://github.com/nodai2hITC/etupem/assets/25577113/a6f8fd9b-a666-4f53-baa7-f36327dc3c6c)\n\n```\n$ pythonja name_error.py\nTraceback (most recent call last):\n  File \"E:\\scripts\\name_error.py\", line 1, in <module>\n    Print(\"Hello, World!\")\n    ^^^^^\nNameError: name 'Print' is not defined. Did you mean: 'print'?\n\u4e0a\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u672c\u6765\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u3059\u3002\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u8abf\u3079\u308b\u5834\u5408\u306f\u3001\u4e0a\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u691c\u7d22\u3057\u3066\u4e0b\u3055\u3044\u3002\n\u3010\u540d\u524d\u306b\u95a2\u3059\u308b\u30a8\u30e9\u30fc(NameError)\u3011\n\u30d5\u30a1\u30a4\u30eb\u300cE:\\scripts\\name_error.py\u300d\u306e 1\u884c\u76ee\u3067\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002\n    Print(\"Hello, World!\")\n    ^^^^^\n\u300cPrint\u300d\u3068\u3044\u3046\u540d\u524d\u306e\u5909\u6570\u306a\u3069\u306f\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u300cprint\u300d\u306e\u5165\u529b\u30df\u30b9\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f\n```\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "make Easy To Understand Python Error Message for those who are not good at English.",
    "version": "0.4.4",
    "project_urls": {
        "Homepage": "https://github.com/nodai2hITC/etupem/"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d0c282980ad0f970db44fd463b9897d8db9690a244626ee8ceec9f3a3d0e9d16",
                "md5": "085c1a46b8979d379f22018052167bf4",
                "sha256": "540c7ee0958f496f9a30cc5feb9c0d78502d0ee7ee5f68fd35445bfee61113cf"
            },
            "downloads": -1,
            "filename": "etupem-0.4.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "085c1a46b8979d379f22018052167bf4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 10233,
            "upload_time": "2024-07-27T07:26:45",
            "upload_time_iso_8601": "2024-07-27T07:26:45.264570Z",
            "url": "https://files.pythonhosted.org/packages/d0/c2/82980ad0f970db44fd463b9897d8db9690a244626ee8ceec9f3a3d0e9d16/etupem-0.4.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-27 07:26:45",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "nodai2hITC",
    "github_project": "etupem",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "etupem"
}
        
Elapsed time: 0.25815s