Skip to main content

Greek Alphabet

A Python module for working with the Greek alphabet.

Usage

Importing the module

from greek_alphabet import Alphabet

Getting a list of all Greek alphabet characters

alphabet_list = Alphabet.get_list()

Getting a dictionary of all Greek alphabet characters

alphabet_dict = greek_alphabet.Alphabet.get_dict()

The get_dict() method takes two optional parameters:

  • key: a function that takes an AlphabetChar object and returns a string to use as the dictionary key. By default, the Greek name of the character is used.
  • value: a function that takes an AlphabetChar object and returns the value to use in the dictionary. By default, the AlphabetChar object is used.

Converting between upper and lower case

# Convert a lower case letter to upper case
upper_case_char = greek_alphabet.Alphabet.upper('a')

# Convert an upper case letter to lower case
lower_case_char = greek_alphabet.Alphabet.lower('Γ')

AlphabetChar class

The AlphabetChar class represents a single character of the Greek alphabet. It has the following attributes:

  • char: the character itself
  • capitalized: the capitalized version of the character
  • name: the name of the character in Greek
  • lower: the lower case equivalent of the character

License

This module is released under the MIT License. See LICENSE for more information.

Metadata

Release files for greek-alphabet 1.0

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

Source distribution (sdist)

Source distribution for greek-alphabet 1.0
File Size Uploaded Provenance Actions
greek_alphabet-1.0.tar.gz 3.6 kB Without provenance Details for greek_alphabet-1.0.tar.gz

Release files / greek_alphabet-1.0.tar.gz

Download URL greek_alphabet-1.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
dd8111046bb0d54cf248ccc30da12da93730ff58bbd1409d887af5c5baba5e31
BLAKE2b-256 checksum
How to use checksums
7b00955c266787c2e3949ca7eab6f01b583638dddade1a4c424db75b97da64ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Security for greek-alphabet 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.

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 This release

1 release file 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