friendly-traceback-0.7.9
0.7.9
0.7.8
0.7.7
0.7.61
0.7.6
0.7.59
0.7.57
0.7.56
0.7.55
0.7.54
0.7.53
0.7.52
0.7.51
0.7.5
0.7.48
0.7.47
0.7.46
0.7.45
0.7.44
0.7.43
0.7.42
0.7.41
0.7.40
0.7.4
0.7.39
0.7.37
0.7.36
0.7.35
0.7.34
0.7.33
0.7.32
0.7.31
0.7.30
0.7.3
0.7.28
0.7.27
0.7.26
0.7.25
0.7.24
0.7.23
0.7.22
0.7.21
0.7.20
0.7.2
0.7.19
0.7.18
0.7.17
0.7.16
0.7.15
0.7.14
0.7.13
0.7.12
0.7.11
0.7.10
0.7.1
0.7.0
0.6.8
0.6.7
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.9
0.5.8
0.5.7
0.5.62
0.5.61
0.5.60
0.5.6
0.5.59
0.5.58
0.5.57
0.5.56
0.5.55
0.5.54
0.5.53
0.5.52
0.5.51
0.5.50
0.5.5
0.5.49
0.5.48
0.5.47
0.5.46
0.5.45
0.5.44
0.5.43
0.5.42
0.5.41
0.5.40
0.5.4
0.5.39
0.5.38
0.5.37
0.5.36
0.5.35
0.5.34
0.5.33
0.5.32
0.5.31
0.5.30
0.5.3
0.5.29
0.5.28
0.5.27
0.5.26
0.5.25
0.5.24
0.5.23
0.5.22
0.5.21
0.5.20
0.5.2
0.5.19
0.5.18
0.5.17
0.5.16
0.5.15
0.5.14
0.5.13
0.5.12
0.5.11
0.5.10
0.5.1
0.5.0
0.4.99
0.4.98
0.4.97
0.4.96
0.4.95
0.4.94
0.4.93
0.4.92
0.4.90
0.4.89
0.4.88
0.4.87
0.4.86
0.4.83
0.4.82
0.4.81
0.4.80
0.4.79
0.4.77
0.4.76
0.4.75
0.4.72
0.4.71
0.4.70
0.4.69
0.4.68
0.4.67
0.4.66
0.4.65
0.4.64
0.4.63
0.4.62
0.4.61
0.4.60
0.4.59
0.4.58
0.4.57
0.4.56
0.4.55
0.4.54
0.4.53
0.4.52
0.4.5
0.4.42
0.4.4
0.4.39
0.4.36
0.4.33
0.4.32
0.4.31
0.4.3
0.4.26
0.4.25
0.4.24
0.4.23
0.4.22
0.4.21
0.4.20
0.4.2
0.4.19
0.4.18
0.4.14
0.4.13
0.4.12
0.4.111
0.4.110
0.4.109
0.4.108
0.4.107
0.4.106
0.4.105
0.4.104
0.4.103
0.4.102
0.4.101
0.4.100
0.4.1
0.4.0
0.3.166
0.3.164
0.3.163
0.3.162
0.3.161
0.3.160
0.3.159
0.3.158
0.3.157
0.3.156
0.3.155
0.3.154
0.3.153
0.3.152
0.3.151
0.3.150
0.3.149
0.3.148
0.3.147
0.3.146
0.3.145
0.3.144
0.3.143
0.3.142
0.2.9
0.2.8
0.2.7
0.2.6
0.2.5
0.2.41
0.2.40
0.2.4
0.2.39
0.2.37
0.2.36
0.2.35
0.2.34
0.2.33
0.2.32
0.2.31
0.2.30
0.2.3
0.2.29
0.2.28
0.2.27
0.2.26
0.2.25
0.2.24
0.2.23
0.2.22
0.2.21
0.2.20
0.2.2
0.2.19
0.2.18
0.2.17
0.2.16
0.2.15
0.2.14
0.2.13
0.2.12
0.2.11
0.2.10
0.2.1
0.2.0
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.12
0.1.11
0.1.10
0.1.1
0.1.0
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.39
0.0.38
0.0.37
0.0.36
0.0.35
0.0.34
0.0.33
0.0.32
0.0.31
0.0.30
0.0.3
0.0.29
0.0.28
0.0.27
0.0.26
0.0.25
0.0.24
0.0.23
0.0.22
0.0.21
0.0.20
0.0.2
0.0.19
0.0.18
0.0.17
0.0.16
0.0.15
0.0.14
0.0.13
0.0.10
0.0.1
0.7.9
0.7.8
0.7.7
0.7.61
0.7.6
0.7.59
0.7.57
0.7.56
0.7.55
0.7.54
0.7.53
0.7.52
0.7.51
0.7.5
0.7.48
0.7.47
0.7.46
0.7.45
0.7.44
0.7.43
0.7.42
0.7.41
0.7.40
0.7.4
0.7.39
0.7.37
0.7.36
0.7.35
0.7.34
0.7.33
0.7.32
0.7.31
0.7.30
0.7.3
0.7.28
0.7.27
0.7.26
0.7.25
0.7.24
0.7.23
0.7.22
0.7.21
0.7.20
0.7.2
0.7.19
0.7.18
0.7.17
0.7.16
0.7.15
0.7.14
0.7.13
0.7.12
0.7.11
0.7.10
0.7.1
0.7.0
0.6.8
0.6.7
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.9
0.5.8
0.5.7
0.5.62
0.5.61
0.5.60
0.5.6
0.5.59
0.5.58
0.5.57
0.5.56
0.5.55
0.5.54
0.5.53
0.5.52
0.5.51
0.5.50
0.5.5
0.5.49
0.5.48
0.5.47
0.5.46
0.5.45
0.5.44
0.5.43
0.5.42
0.5.41
0.5.40
0.5.4
0.5.39
0.5.38
0.5.37
0.5.36
0.5.35
0.5.34
0.5.33
0.5.32
0.5.31
0.5.30
0.5.3
0.5.29
0.5.28
0.5.27
0.5.26
0.5.25
0.5.24
0.5.23
0.5.22
0.5.21
0.5.20
0.5.2
0.5.19
0.5.18
0.5.17
0.5.16
0.5.15
0.5.14
0.5.13
0.5.12
0.5.11
0.5.10
0.5.1
0.5.0
0.4.99
0.4.98
0.4.97
0.4.96
0.4.95
0.4.94
0.4.93
0.4.92
0.4.90
0.4.89
0.4.88
0.4.87
0.4.86
0.4.83
0.4.82
0.4.81
0.4.80
0.4.79
0.4.77
0.4.76
0.4.75
0.4.72
0.4.71
0.4.70
0.4.69
0.4.68
0.4.67
0.4.66
0.4.65
0.4.64
0.4.63
0.4.62
0.4.61
0.4.60
0.4.59
0.4.58
0.4.57
0.4.56
0.4.55
0.4.54
0.4.53
0.4.52
0.4.5
0.4.42
0.4.4
0.4.39
0.4.36
0.4.33
0.4.32
0.4.31
0.4.3
0.4.26
0.4.25
0.4.24
0.4.23
0.4.22
0.4.21
0.4.20
0.4.2
0.4.19
0.4.18
0.4.14
0.4.13
0.4.12
0.4.111
0.4.110
0.4.109
0.4.108
0.4.107
0.4.106
0.4.105
0.4.104
0.4.103
0.4.102
0.4.101
0.4.100
0.4.1
0.4.0
0.3.166
0.3.164
0.3.163
0.3.162
0.3.161
0.3.160
0.3.159
0.3.158
0.3.157
0.3.156
0.3.155
0.3.154
0.3.153
0.3.152
0.3.151
0.3.150
0.3.149
0.3.148
0.3.147
0.3.146
0.3.145
0.3.144
0.3.143
0.3.142
0.2.9
0.2.8
0.2.7
0.2.6
0.2.5
0.2.41
0.2.40
0.2.4
0.2.39
0.2.37
0.2.36
0.2.35
0.2.34
0.2.33
0.2.32
0.2.31
0.2.30
0.2.3
0.2.29
0.2.28
0.2.27
0.2.26
0.2.25
0.2.24
0.2.23
0.2.22
0.2.21
0.2.20
0.2.2
0.2.19
0.2.18
0.2.17
0.2.16
0.2.15
0.2.14
0.2.13
0.2.12
0.2.11
0.2.10
0.2.1
0.2.0
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.12
0.1.11
0.1.10
0.1.1
0.1.0
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.39
0.0.38
0.0.37
0.0.36
0.0.35
0.0.34
0.0.33
0.0.32
0.0.31
0.0.30
0.0.3
0.0.29
0.0.28
0.0.27
0.0.26
0.0.25
0.0.24
0.0.23
0.0.22
0.0.21
0.0.20
0.0.2
0.0.19
0.0.18
0.0.17
0.0.16
0.0.15
0.0.14
0.0.13
0.0.12
0.0.11
0.0.10
0.0.1
توضیحات
Friendlier tracebacks in any language.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | friendly-traceback-0.7.9 |
| نام | friendly-traceback |
| نسخه کتابخانه | 0.7.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Andre Roberge |
| ایمیل نویسنده | Andre.Roberge@gmail.com |
| آدرس صفحه اصلی | https://github.com/friendly-traceback/friendly-traceback |
| آدرس اینترنتی | https://pypi.org/project/friendly-traceback/ |
| مجوز | - |

# friendly/friendly-traceback
- **friendly_traceback**: Helps understand Python traceback
- **friendly**: Prettier version of the above with some additional enhancements.
This code repository is for **friendly_traceback**.
Unless specified otherwise, from here on, **Friendly** will refer to both
**friendly** and **friendly_traceback**
## Description
Created with Python beginners in mind, but also useful for experienced users,
**Friendly** replaces standard tracebacks
by something easier to understand, translatable into various languages.
Currently, the information provided by **Friendly** is only available
in two languages: English and French.
The additional information provided by **Friendly** includes
`why()` a certain exception occurred,
`what()` it means, exactly `where()` it occurred including
the value of relevant variables, and
[more](https://aroberge.github.io/friendly-traceback-docs/docs/html/).

The screenshot above was taken on Windows. In some other operating systems
you might need to type `python3` instead of `python`: **Friendly**
requires Python version 3.6 or newer.
## Installation
```
python -m pip install friendly_traceback
```
Note that most users should install **friendly** instead of **friendly_traceback**,
```
python -m pip install friendly
```
This needs to be done from a terminal.
In the command shown above,
`python` refers to whatever you need to type to invoke your
favourite Python interpreter.
It could be `python`, `python3`, `py -3.8`, etc.
For some special cases, including
using a specialized editor like [Mu](https://codewith.mu) that has its own way
of installing Python packages, please consult the documentation.
## Documentation
[The documentation is available by clicking here.](https://friendly-traceback.github.io/docs/index.html)
## Example
The following example illustrates the information that can
be provided by **Friendly**.
```
Traceback (most recent call last):
File "<friendly-console:5>", line 1, in <module>
test()
File "<friendly-console:4>", line 2, in test
a = cost(pi)
NameError: name 'cost' is not defined
Did you mean `cos`?
A `NameError` exception indicates that a variable or
function name is not known to Python.
Most often, this is because there is a spelling mistake.
However, sometimes it is because the name is used
before being defined or given a value.
In your program, `cost` is an unknown name.
Instead of writing `cost`, perhaps you meant one of the following:
* Global scope: `cos`, `cosh`, `acos`
Execution stopped on line 1 of file `'<friendly-console:5>'`.
-->1: test()
test: <function test>
Exception raised on line 2 of file `'<friendly-console:4>'`.
1: def test():
-->2: a = cost(pi)
^^^^
global pi: 3.141592653589793
```
## Projects using Friendly
friendly/friendly-traceback is used by:
* [HackInScience](https://hackinscience.org)
* [futurecoder](https://futurecoder.io)
* [CodeGrade](https://www.codegrade.com/blog/friendly-better-error-messages-for-python)
* [ddebug](https://github.com/matan-h/ddebug)
Feel free to contact me to add your project to this list.
## Contribute
Contribute by making suggestions for improvements, pointing out mistakes either in
the documentation or in the information provided by **Friendly**, or finding bugs.
If you speak a language other than English or French and feel ambitious, you might
want to work on translations into your own language.
For more details, see [CONTRIBUTING](CONTRIBUTING.md)
## License: MIT
For more details, see [LICENSE](LICENSE).
Some ideas were adopted from
[DidYouMean-Python (aka BetterErrorMessages)](https://github.com/SylvainDe/DidYouMean-Python)
by Sylvain Desodt, a project that is also using the MIT license; as of October 2021,
that particular project is no longer maintained.
## Code of Conduct
In short: be respectful of everyone.
For more details, see [Code of Conduct](CODE_OF_CONDUCT.md)
## JetBrains support
We graciously acknowledge the support of [JetBrains](
https://www.jetbrains.com/community/opensource/?from=friendly-traceback)
which enables us to use the professional version
of PyCharm for developing **Friendly**.
[](
https://www.jetbrains.com/community/opensource/?from=friendly-traceback)
نیازمندی
| مقدار | نام |
|---|---|
| >=2.0.4 | asttokens |
| >=1.1.0 | executing |
| >=0.2.1 | pure-eval |
| >=0.6.2 | stack-data |
| >=1.16 | six |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl friendly-traceback-0.7.9:
pip install friendly-traceback-0.7.9.whl
نصب پکیج tar.gz friendly-traceback-0.7.9:
pip install friendly-traceback-0.7.9.tar.gz