A package for character sets
Project description
CHARS
chars is a simple Python package that provides functions to get different sets of characters including uppercase letters, lowercase letters, numbers, and special characters.
Features
- Retrieve uppercase letters
- Retrieve lowercase letters
- Retrieve numbers
- Retrieve special characters
- Retrieve a combination of all character sets
Installation
You can install the package using pip3:
pip3 install chars
Usage
Importing the Package
To use the functions provided by the package, you first need to import the chars module:
from mypackage import chars
Retrieving Uppercase Letters
You can retrieve all uppercase letters using the uppercase function:
uppercase_chars = chars.uppercase()
print(uppercase_chars)
# Output: ABCDEFGHIJKLMNOPQRSTUVWXYZ
Retrieving Lowercase Letters
To get all lowercase letters, use the lowercase function:
lowercase_chars = chars.lowercase()
print(lowercase_chars)
# Output: abcdefghijklmnopqrstuvwxyz
Retrieving Numbers
If you need all numeric characters, use the numbers function:
numbers = chars.numbers()
print(numbers)
# Output: 1234567890
Retrieving Special Characters
For special characters, use the specialchars function:
special_chars = chars.specialchars()
print(special_chars)
# Output: ~`!@#$%^&*()-_=+|[]\{|};':",./<> ?
Retrieving All Characters
To get a combination of uppercase letters, lowercase letters, numbers, and special characters, use the all function:
all_chars = chars.all()
print(all_chars)
# Output: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~`!@#$%^&*()-_=+|[]\{|};':",./<>? 1234567890
You can install the package using pip3:
pip3 install chars
License
This project is licensed under the MIT License. See the LICENSE file for details.
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
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 chars-0.1.2.tar.gz.
File metadata
- Download URL: chars-0.1.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cccb3471bc5335a8e522fa10cfa8d6dd1f2289bd03a1924069d9485adfe9bfc5
|
|
| MD5 |
15d02803ea2cba5cbdebf4e3f325215d
|
|
| BLAKE2b-256 |
97744942e4dcce738f8fcc87e9c49bb10943c418cf1c66e3f18511a2a40ee7b8
|
File details
Details for the file chars-0.1.2-py3-none-any.whl.
File metadata
- Download URL: chars-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bf24e797a9710759c72680631140e351cc4e4a56df419998117f4de3b466eaa
|
|
| MD5 |
76a913b714807fe5adc7c44414557287
|
|
| BLAKE2b-256 |
1faf821aeb72850d460c08820e2f763179d36e1e0e7e3bb7edd5bfe75e8cbec3
|