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
Table formatting
There is more than one way to format a table in plain text. The third optional argument named tablefmt defines how the table is formatted.
Supported table formats are:
| Parameter | Type | Value | Parameter | Type | Value |
|---|---|---|---|---|---|
| tablefmt | string | plain |
tablefmt | string | orgtbl |
| tablefmt | string | simple |
tablefmt | string | asciidoc |
| tablefmt | string | github |
tablefmt | string | jira |
| tablefmt | string | grid |
tablefmt | string | presto |
| tablefmt | string | simple_grid |
tablefmt | string | pretty |
| tablefmt | string | rounded_grid |
tablefmt | string | psql |
| tablefmt | string | heavy_grid |
tablefmt | string | rst |
| tablefmt | string | mixed_grid |
tablefmt | string | mediawiki |
| tablefmt | string | double_grid |
tablefmt | string | moinmoin |
| tablefmt | string | fancy_grid |
tablefmt | string | youtrack |
| tablefmt | string | outline |
tablefmt | string | html |
| tablefmt | string | simple_outline |
tablefmt | string | unsafehtml |
| tablefmt | string | rounded_outline |
tablefmt | string | latex |
| tablefmt | string | heavy_outline |
tablefmt | string | latex_raw |
| tablefmt | string | mixed_outline |
tablefmt | string | latex_booktabs |
| tablefmt | string | double_outline |
tablefmt | string | latex_longtable |
| tablefmt | string | fancy_outline |
tablefmt | string | textile |
| tablefmt | string | pipe |
tablefmt | string | tsv |
More details : table | Notebook Example
Metadata
Release files for xTerm 1.6.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xterm-1.6.6.tar.gz | 32.3 kB | Without provenance | Details for xterm-1.6.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xTerm-1.6.6-py3-none-any.whl | Python 3 | none | any | Details for xTerm-1.6.6-py3-none-any.whl |
Total release size: 63.1 kB
Release files / xterm-1.6.6.tar.gz
| Download URL | xterm-1.6.6.tar.gz |
|---|---|
| Size | 32.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c38c01d170c04503a5a1c11578442df1d09c6c65a6ae0314dff6ee993188081e
|
|
BLAKE2b-256 checksum How to use checksums |
b695252a7a99e2abf42f078a97b06cff0731787820aa333609fd0266fae1bf30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / xTerm-1.6.6-py3-none-any.whl
| Download URL | xTerm-1.6.6-py3-none-any.whl |
|---|---|
| Size | 30.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c0fde796ebf6383786d2328f75c529bb5bece5c77873561552ef1d682867e78b
|
|
BLAKE2b-256 checksum How to use checksums |
0783197ff6599c1d961b455022f7e5e7066c3ec1a8150829b8b79c221d775419
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for xTerm 1.6.6
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.