Say It To My Face
Have you ever written a bunch of code and everything is going well for the first time in computer history, and then some dreaded exception kills your hopes and dreams? Did you then make menacing glances at the computer, the source of all of your problems, and mutter “I bet you wouldn’t say that to my face.”
Well now it can.
And it will.
Usage
To have the interpreter tell you about your failings, the say_exceptions_to_my_face function is available. It uses a logging handler to read exception messages that come in through an exception hook.
>>> import say_it_to_my_face
>>> say_it_to_my_face.say_exceptions_to_my_face()
>>> raise AttributeError("lol that's not an attribute")
# A voice will read the message to you
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: lol that's not an attribute
You can also have all of your logs read to you via that log handler. You can also pass it the name of a voice to use, though by default it picks this up from your locale.
>>> import logging
>>> import say_it_to_my_face
>>> handler = say_it_to_my_face.SayItToMyFace(voice="Daniel")
>>> logger = logging.getLogger()
>>> logger.addHandler(handler)
>>> logger.critical("why did you do that?")
Requirements
Python >= 3.3
The say program on OS X or apparently the espeak on Ubuntu, though I haven’t tried it, it just looks similar.
Metadata
Release files for say_it_to_my_face 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| say_it_to_my_face-1.0.tar.gz | 2.6 kB | Without provenance | Details for say_it_to_my_face-1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| say_it_to_my_face-1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for say_it_to_my_face-1.0-py2.py3-none-any.whl |
Total release size: 7.7 kB
Release files / say_it_to_my_face-1.0.tar.gz
| Download URL | say_it_to_my_face-1.0.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a6a3cb02e3ec60a65a99edd6d28cb317ec2415d5c6c3fffe2472e6026765526
|
|
BLAKE2b-256 checksum How to use checksums |
4842b67e40db335158a09e1981312523239899987561ed892b8655335cb0e118
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / say_it_to_my_face-1.0-py2.py3-none-any.whl
| Download URL | say_it_to_my_face-1.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
d11a71cbaa1fea86ee01ccb491298325f6a3546cb01b9e222bcd8ad7fc38cb78
|
|
BLAKE2b-256 checksum How to use checksums |
4380c6ef0ed4fc6cfa6ca3083d860d70348c4305ee25b10e4a46e2dac93b4da7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for say_it_to_my_face 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.