EmDashify — -- → —
The most unnecessary Python library you'll actually use.
Why EmDashify?
LLMs made the em dash (—) hard to ignore. Pew Research Center found that em dashes appeared about twice as often in sampled English-language web text as in 2023. That doesn't make an em dash proof of AI authorship.
The problem? Most QWERTY keyboards have a - key, but no dedicated — key.
EmDashify converts -- to — in Python, your terminal, or text files. No AI. No runtime dependencies. Just punctuation.
Quick start
pip install emdashify
emdashify "Hello -- world"
# Hello — world
from emdashify import convert
convert("Hello -- world") # "Hello — world"
convert("hello--world", compact=True) # "hello—world"
Files
emdashify --file notes.md --diff
emdashify --file notes.md --output notes-fixed.md
emdashify --file notes.md --check
Safe by default: only standalone -- markers are converted. Flags (--help), dates, and --- remain unchanged. Markdown code spans and blocks are protected, and files aren't overwritten implicitly. Use --compact for word--word.
Requires Python 3.10+. See release instructions for development and publishing.
License
BSD-3-Clause-Attribution. Redistributing the package requires preserving the license notices and this acknowledgment:
This product includes software developed by edujbarrios (https://github.com/edujbarrios/EmDashify).
Metadata
Release files for emdashify 0.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 |
|---|---|---|---|---|
| emdashify-0.1.0.tar.gz | 12.3 kB | With provenance | Details for emdashify-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| emdashify-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for emdashify-0.1.0-py3-none-any.whl |
Total release size: 20.4 kB
Release files / emdashify-0.1.0.tar.gz
| Download URL | emdashify-0.1.0.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0cec30560aac772a338a0104860ad5c88ee54ec0de12520a25f0da1713d57b6b
|
|
BLAKE2b-256 checksum How to use checksums |
109be07c9637c66aef0ea6a5b306510122a6037520475c5ba9b7ef52ce407d2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logRelease files / emdashify-0.1.0-py3-none-any.whl
| Download URL | emdashify-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
39287be6898b3fd9568a985b0d01c44c793aefa88b2fa655ae4441af9c2ffc18
|
|
BLAKE2b-256 checksum How to use checksums |
5fc07e66bb4c8309bdaa8a80a5cde17683a8e7a4b15f4c552d5aa4df124b35e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logSecurity for emdashify 0.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for emdashify-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logA 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.