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"),
}
Metadata
Release files for sancty 0.2.1
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 |
|---|---|---|---|---|
| sancty-0.2.1.tar.gz | 11.3 kB | Without provenance | Details for sancty-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sancty-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for sancty-0.2.1-py3-none-any.whl |
Total release size: 24.1 kB
Release files / sancty-0.2.1.tar.gz
| Download URL | sancty-0.2.1.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a7d7dfc3738bd9db484e5d06ef5fbd88b42b8fc95dbabd373963dcae5e152222
|
|
BLAKE2b-256 checksum How to use checksums |
fa65dc9c480145cf70c57553f12c4201c49ef3819f4e1b701ef82faadd93cf81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / sancty-0.2.1-py3-none-any.whl
| Download URL | sancty-0.2.1-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c2a05ecaa2f5243e7ab171fe3404cc1d1d540a78face8ac4f7222b3c56c6ff4e
|
|
BLAKE2b-256 checksum How to use checksums |
e1c2686f2ce314550163610e70659652f75ff698bf262b72940b0e6308ad9dfd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Security for sancty 0.2.1
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.