No project description provided
Project description
GlobalKit
Version: 1.4
Introduction
GlobalKit is a module that provides alphabets from various languages in different scripts. It can be used for language-related tasks, educational purposes and more.
Installation
Installing module using pip:
pip install GlobalKit
or pip3 install GlobalKit
How to use
GlobalKit contains lots of alphabets (strings) in supported languages:
- English
- Spanish
- French
- Dutch
- Portuguese
- Italian
- Finnish
- Swedish
- Norwegian
- Russian
- Ukrainian
- Polish
- numbers, space, new string, tab, empty
convert_to_list(string)
converts string
into a list.
check(string, *alphabets)
verifies if string
is present in any of the specified alphabets
.
is_contains_spaces(string)
checks if string
contains any spaces.
is_contains_numbers(string)
checks if string
contains any numbers.
is_contains_alphabetic(string)
checks if string
contains any alphabetic letters.
is_contains_lowercase(string)
checks if string
contains any lowercase letters.
is_contains_uppercase(string)
checks if string
contains any uppercase letters.
is_contains_special(string)
checks if string
contains any special characters.
is_contains_substring(string, substring)
checks if string
contains substring that you want.
Examples:
import GlobalKit as gk
print(gk.english) # Output: abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
from GlobalKit import convert_to_list
result_list = convert_to_list('example')
print(result_list) # Output: ['e', 'x', 'a', 'm', 'p', 'l', 'e']
from GlobalKit import check, english, russian_vowels, numbers
result1: bool = check('e', english)
result2: bool = check('1', english, numbers)
result3: bool = check('h', russian_vowels)
print(result1) # Output: True
print(result2) # Output: True
print(result3) # Output: False
from GlobalKit import is_contains_spaces, is_contains_uppercase, is_contains_special, is_contains_substring
result1: bool = is_contains_spaces('Hello, world!')
result2: bool = is_contains_uppercase('hello, world!')
result3: bool = is_contains_special('Hello, world!')
result4: bool = is_contains_substring('Hello, world!', 'world')
print(result1) # Output: True
print(result2) # Output: False
print(result3) # Output: True
print(result4) # Output: True
Contact
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
File details
Details for the file GlobalKit-1.4.tar.gz
.
File metadata
- Download URL: GlobalKit-1.4.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd956a3a411566605ce00b13470c80ef3e594939330519e38ca769e8b62e5ef1 |
|
MD5 | fec51ba23ed13d14ef9236234dab92cf |
|
BLAKE2b-256 | 26942ad512d71f7998593842cea58b5f9fc86bf931ce78948f23af6f484e4cdc |