Python ncurses terminal client to Zino
Project description
Python curses package to interface with Zino.
Split from internal project PyRitz on 2023-03-30.
Configuration
There needs to be a file .ritz.tcl, conventionally placed in your home-directory.
- Example .ritz.tcl::
set Secret ZINO1SERVERTOKEN_A set User USERNAME_1 set Server my.zino.server.com set Port 8001
set _Secret(ALTERNATE) ZINO1SERVERTOKEN_B set _User(ALTERNATE) USERNAME_2 set _Server(ALTERNATE) alternative.zino.server.com set _Port(ALTERNATE) 8001
The top four lines configures the default server. Secret and User is created by the admin of the zino server. Server and Port hopefully needs no explanation.
Running curitz without the -p-argument would connect to “my.zino.server.com”, authenticated as USER_1.
The bottom four lines are optional. They are an example of how to configure alternative servers. Running curitz with the /--argument would connect to the alternative server:
``$ curitz -p ALTERNATE``
This would connect to “alternative.zino.server.com”, authenticated as USER_2.
Running
After installingOnce it is on your path the terminal program curitz will be available to run.
Run curitz -h for info about the available arguments.
Testing
This library is testable with unittests. When testing it starts a Zino emulator that reponds correctly to requests as the real server would do.
If you have all currently supported pythons in your path, you can test them all, with an HTML coverage report placed in htmlcov/:
tox
To test on a specific python other than current, run:
tox -e py{version}
where version is of the form “311” for Python 3.11.
Install
To use curitz we recommend installing it to your local user, for instance with pip`'s ``--user-flag:
pip install --user .
if installing from source or:
pip install --user curitz
if installing from Pypi. This should normally put the binary and library under .local on Linux.
If you develop python programs other than curitz we recommend that you install with pipx. curitz and its dependencies will then be stored on your user but separately from any other thing you are working on.
Development
Some minimal pre-commit hooks are included, install by running pre-commit install.
See the file .git-blame-ignore-revs for commits to ignore when running git blame. Use it like so:
git blame --ignore-revs-file .git-blame-ignore-revs FILE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file curitz-0.9.21.tar.gz
.
File metadata
- Download URL: curitz-0.9.21.tar.gz
- Upload date:
- Size: 27.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f4d8f97067220ea9c5d9ad526675dadd6afcea21996a3a496a0e377046a3069 |
|
MD5 | 3c1f3d54ca1d308975b5c8e0dbaadcb5 |
|
BLAKE2b-256 | d490d028ad1e82949d91aeddef5b17a914ef55ca6d52fcf1403044bb7aedcc10 |
File details
Details for the file curitz-0.9.21-py3-none-any.whl
.
File metadata
- Download URL: curitz-0.9.21-py3-none-any.whl
- Upload date:
- Size: 24.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20253906fb96a4015f4736c80513eade92d87ca2a54dfd98b2285a335eb2d640 |
|
MD5 | 3dfc9af56904b2bcfb6978c34c78018d |
|
BLAKE2b-256 | 3cca2b668bbe25a5459234442e0015158425761bcac572e4dbc83a4ddcfbb9ec |