Skip to main content

No project description provided

Reason this release was yanked:

Incorrect metadata

Project description

Sancty

Sancty is an extension to jquast/blessed for simple editor-like terminal apps

Usage

Sancty has two major components, Reader (which follows the ReaderProtocol) and Renderer (which follows the RendererProtocol). As you are free to choose your own communication channel and event loop/threading architecture, these do not work out of the box. For implementations that work out of the box, take a look at ProcessReader and ProcessRenderer, which use standard multiprocessing classes to each run on their own thread. You can also spin up a basic editor by running start_terminal().

If you don't want to customize the run architecture, but do want to customize the Reader and Renderer classes, simply extend them (but be sure to still conform to their respective protocols) and pass the classes as variables to start_terminal().

You can also pass a custom replace_dict, which is a dictionary of all possible \\ commands. By default, the key swill correspond to strings that will be replaced by the value strings, but if the key is an integer, a custom special_slash_fn can also be passed to perform arbitrary transformations of the render array. Note that all negative numbers are reserved for this program.

Default \\ commands

default_replace_dict = {
    "clr": (-1, "Clears all text"),
    "help": (-2, "Shows all slash commands"),
}

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

sancty-0.1.0.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

sancty-0.1.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sancty-0.1.0.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.10.0 Linux/5.13.0-7620-generic

File hashes

Hashes for sancty-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0196bbe73b91bb8eb11032a310975b411500f3756a5796262cc6c7b2a77c90c4
MD5 99ddcccde5d17b42edf4153e8da1e1c9
BLAKE2b-256 221f78dc3745673de146123939bfb7ca14821c1ca7868936fc9b6f1bec3f1b65

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sancty-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.10.0 Linux/5.13.0-7620-generic

File hashes

Hashes for sancty-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5e11393f969f7107f7d08b46bc65b26b2edf1ccf1d72e7df09b6a6796c5add3
MD5 399ccc85d4ccd2f583da62d060052b4f
BLAKE2b-256 1d5f2f80319b5575f682de77eb10030ba840cd5c4d35835838cca9055170c9d8

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