Return the entire alphabet except one (or more) letters.
Project description
A dumb Python utility that returns the full alphabet with one or more letters removed. Shoutout to Alberta Tech for the idea. Thought it was silly and wanted to do it.
Installation
pip install alphabet-except
Usage
from alphabet_except import except_letter, except_letters
# Exclude a single letter
except_letter('e')
# → 'abcdfghijklmnopqrstuvwxyz'
# Uppercase alphabet
except_letter('E', case='upper')
# → 'ABCDFGHIJKLMNOPQRSTUVWXYZ'
# Both cases
except_letter('e', case='both')
# → 'abcdfghijklmnopqrstuvwxyzABCDFGHIJKLMNOPQRSTUVWXYZ'
# Exclude multiple letters
except_letters('a', 'e', 'i', 'o', 'u')
# → 'bcdfghjklmnpqrstvwxyz'
# Multiple letters, both cases
except_letters('a', 'e', 'i', 'o', 'u', case='both')
# → 'bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ'
API
except_letter(letter, case='lower')
| Parameter | Type | Description |
|---|---|---|
letter |
str |
Single letter to exclude |
case |
str |
'lower', 'upper', or 'both' |
except_letters(*letters, case='lower')
Same as above but accepts multiple letters to exclude.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
alphabet_except-0.1.1.tar.gz
(2.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file alphabet_except-0.1.1.tar.gz.
File metadata
- Download URL: alphabet_except-0.1.1.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
caf0fea2f1dded4f740f7fa48f432a2955ce949a9c059a28fa6841ff369689b1
|
|
| MD5 |
721984bc23b858d1b61c70b09967fbd3
|
|
| BLAKE2b-256 |
41ef51eb428b4e57c74df973618d0d6684c3b6302bef49d6b62a5ca25b1a03ed
|
File details
Details for the file alphabet_except-0.1.1-py3-none-any.whl.
File metadata
- Download URL: alphabet_except-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1483fd9c1c00644c160d3de8f7601d6c861fedd23d121bfe244cf22f887e9de1
|
|
| MD5 |
c08a25d3430349bd9e9dcfa7c3199044
|
|
| BLAKE2b-256 |
327df965ace1249c724d7a9c3820574577ace69cb66374af2f51e82832e3ae5f
|