Skip to main content

An ultra-lightweight and simple Python engine designed for building text-based terminal applications with dynamic line buffering and rendering support.

Project description

pyterappeng (Python Terminal Application Engine)

pyterappeng is an ultra-lightweight engine for creating text and terminal applications in Python. It allows you to initialize text buffers and update the screen content.

Features

  • Simple start
  • Dynamic buffer
  • Built-in update cycle

Installation

Copy the pyterappeng.py file into the root directory of your project.

Usage

The engine works on a buffering principle: you initialize lines, fill them with content, and render them.

import pyterappeng

pyterappeng.create_lines(2)

pyterappeng.lines[0] = "Hello, Terminal!"
pyterappeng.lines[1] = "This is line number two."

pyterappeng.update()

API Documentation

create_lines(lines_count: int)

Creates an internal buffer for storing the lines of your application. lines_count is the total number of lines to display.

lines: list

A global list of application lines. Modify the elements directly using indexes from 0 to lines_count - 1.

update()

Prints all lines from the lines list to the console.

Roadmap

  • Add automatic console clearing before each update call
  • Implement keypress handling for user input
  • Add support for text coloring via ANSI codes

License

This project is licensed under the GNU General Public License (GPL).

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

pyterappeng-0.1.0.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyterappeng-0.1.0-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file pyterappeng-0.1.0.tar.gz.

File metadata

  • Download URL: pyterappeng-0.1.0.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for pyterappeng-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fcf854eb009b498f3f43eb8cc0f0121ed06bc32d8aeafe91d80958cf15ddc42c
MD5 969d478349b0f7bfa41dfdd010c3f413
BLAKE2b-256 8eb086a0e48487d7a5c4d5841fc54c408601ed0ad08e5ee3f1e4d5a75c787f30

See more details on using hashes here.

File details

Details for the file pyterappeng-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyterappeng-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for pyterappeng-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d78acbd34f49e2a47559cc00f3d07848189402bfe949c02592f10b73e28c9b1
MD5 a2d47c77530505020ec909a1a30eed67
BLAKE2b-256 b5324e887cdb7446dee778aef6b6845f0931d0a373b9c64fe2f5035657baa0d3

See more details on using hashes here.

Supported by

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