Skip to main content

deemoji

A tiny Unix filter that removes Unicode emoji from UTF-8 text streams while leaving everything else untouched.

Usage

python3 deemoji.py < input.txt > output.txt
printf 'Hello 🌍!\n' | python3 deemoji.py

What is removed

  • Single emoji: 😀, 🚀
  • Country flags: 🇨🇿
  • Skin-tone variants: 👍🏽
  • Zero-width-joiner sequences: 👨‍👩‍👧‍👦, 👩‍🚀
  • Keycap sequences: 9️⃣
  • Emoji with emoji presentation selector: ❤️

What is preserved

  • ASCII and digits
  • National characters: Příliš žluťoučký, 你好
  • Mathematical symbols: ∀x∈ℝ
  • Box-drawing characters: ┌─┐
  • Text-presentation variants: ❤︎ (kept)

Tests

python3 -munittest -v test_deemoji

Updating emoji data

_emoji_data.py is generated from the Unicode emoji-test.txt file:

python3 generate_emoji_table.py --version 16.0

Only the standard library is required.

Metadata

Release files for deemoji 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deemoji 1.0.1
File Size Uploaded Provenance
deemoji-1.0.1.tar.gz 20.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for deemoji 1.0.1
File Interpreter ABI Platform
deemoji-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 41.1 kB

Release files / deemoji-1.0.1.tar.gz

Download URL deemoji-1.0.1.tar.gz
Size 20.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3065d9c41fb6132d43f3091cedd4c882c7a93a22daf06b189c03ffc83336047c
BLAKE2b-256 checksum
How to use checksums
2af88241f21bc7f22c4be0710d1ad4a5e3d29135592f64095d7a643e228ea5ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.14

Release files / deemoji-1.0.1-py3-none-any.whl

Download URL deemoji-1.0.1-py3-none-any.whl
Size 20.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
89ea48faf49c8435352819e13766a24798115e0e10fd3c74d176ad0ad6668b47
BLAKE2b-256 checksum
How to use checksums
04a801174709ca5f571e0031ad97b62305e67c7bd4ed5c66cb0c7be9b4557fea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.14

Security for deemoji 1.0.1

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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page