Skip to main content

Professional modding to the terminal and changing the font of string texts

Project description

python Package xTerm

xTerm

Install

Windows Install with pip

pip install xTerm

Linux Install with pip3

pip3 install xTerm

Upgrade xterm Python Package : pip install --upgrade xTerm or pip3 install --upgrade xTerm

from xTerm import Maths
# class shortcut
maths = Maths(font_type="Sans_Serif")
# or
maths = Maths(font_type="Sans_Serif_bold")
# or
maths = Maths(font_type="Sans_Serif_italic")
# or
maths = Maths(font_type="Sans_Serif_bold_italic")
# or
maths = Maths(font_type="Mathematical_bold")
# or
maths = Maths(font_type="Mathematical_italic")
# or
maths = Maths(font_type="Mathematical_Fraktur")
# or
maths = Maths(font_type="Mathematical_bold_Fraktur")
# or
maths = Maths(font_type="Mathematical_double_struck")
# or
maths = Maths(font_type="Mathematical_monospace")
# converet string model to any unicode font ,
converted_text = maths.Convert("Hello World")
print(converted_text)

Alpha Mode (Convert Font String)

Convert String Text To Unicode Font Display

from xTerm import Alpha
# shortcut class
alpha = Alpha.Maths(font_type="Sans_Serif_bold_italic")
# text string for convert
converted_text = alpha.Convert("Hello World")
# Print Output
print(converted_text)
# Hello World

Table Mode (Create Table Data on Terminal)

Draw Table Data On Any Terminal

from xTerm import Table
table = Table([["User01", "34"], ["User02", "56"]], ["User", "ID"], "simple_grid")
print(table)

Output:

┌────────┬──────┐
│ User   │   ID │
├────────┼──────┤
│ User01 │   34 │
├────────┼──────┤
│ User02 │   56 │
└────────┴──────┘

from xTerm import Table
# Create Table Data List
table = Table([
    ["File 01", 233345],
    ["File 02", 545660],
    ["File 03", 100057],
    ["File 04", 438103]],
    ["File Name", "Download"]
    , "simple_grid")
# Output:
# ┌─────────────┬────────────┐
# │ File Name   │   Download │
# ├─────────────┼────────────┤
# │ File 01     │     233345 │
# ├─────────────┼────────────┤
# │ File 02     │     545660 │
# ├─────────────┼────────────┤
# │ File 03     │     100057 │
# ├─────────────┼────────────┤
# │ File 04     │     438103 │
# └─────────────┴────────────┘

Table Funcation

  • table_data: Any,
  • headers: tuple = (),
  • tablefmt: str = "simple",
  • floatfmt: str = _DEFAULT_FLOATFMT,
  • intfmt: str = _DEFAULT_INTFMT,
  • numalign: str = _DEFAULT_ALIGN,
  • stralign: str = _DEFAULT_ALIGN,
  • missingval: str = _DEFAULT_MISSINGVAL,
  • showindex: str = "default",
  • disable_numparse: bool = False,
  • colglobalalign: Any = None,
  • colalign: Any = None,
  • maxcolwidths: Any = None,
  • headersglobalalign: Any = None,
  • headersalign: Any = None,
  • rowalign: Any = None,
  • maxheadercolwidths: Any = None) -> JupyterHTMLStr | LiteralString | str

More details : table

Binder

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xterm-1.3.9.tar.gz (31.5 kB view details)

Uploaded Source

Built Distribution

xTerm-1.3.9-py3-none-any.whl (30.3 kB view details)

Uploaded Python 3

File details

Details for the file xterm-1.3.9.tar.gz.

File metadata

  • Download URL: xterm-1.3.9.tar.gz
  • Upload date:
  • Size: 31.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for xterm-1.3.9.tar.gz
Algorithm Hash digest
SHA256 cfc2ab82f2f1a785ea31803caf5233f18050bf9a44c7eb26c0afd187a16cf4a4
MD5 a762164bdf5293c8ac3b61280302a9b6
BLAKE2b-256 8d7eeb4b9966f560480d6ec1b43f4aae0bfdf54a08ba6033a4f649757ea15140

See more details on using hashes here.

File details

Details for the file xTerm-1.3.9-py3-none-any.whl.

File metadata

  • Download URL: xTerm-1.3.9-py3-none-any.whl
  • Upload date:
  • Size: 30.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for xTerm-1.3.9-py3-none-any.whl
Algorithm Hash digest
SHA256 85bc2c2154f0acc67b473989d11eb63bf023ed95751f7b40241855652d1feb24
MD5 c6b1bc49cc56179a77f504c1b5abe171
BLAKE2b-256 57c9c62a1ae7fb7657de397009849c4c5fc6eb97081510249f22bb0d100f1f4f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page