Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

curitz-0.9.22.tar.gz (27.9 kB view details)

Uploaded Source

Built Distribution

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

curitz-0.9.22-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

Details for the file curitz-0.9.22.tar.gz.

File metadata

  • Download URL: curitz-0.9.22.tar.gz
  • Upload date:
  • Size: 27.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for curitz-0.9.22.tar.gz
Algorithm Hash digest
SHA256 c13fe57daa2820f6fe385be716ab0ce6a14b1e41e27e59c532cbc57faf93f60c
MD5 9d8f154134fe891eeb3e9e0795dfd6e0
BLAKE2b-256 6b2adbeca809adf8e0e64d8473e1f2dbc2e5f6f8cba1ced3de5e54df0b7e4a96

See more details on using hashes here.

File details

Details for the file curitz-0.9.22-py3-none-any.whl.

File metadata

  • Download URL: curitz-0.9.22-py3-none-any.whl
  • Upload date:
  • Size: 24.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for curitz-0.9.22-py3-none-any.whl
Algorithm Hash digest
SHA256 9c5d5c161c43a51a71906db1d2c704441ea49a346a81376d197e6d0c6afdd024
MD5 6278973a8b73847813b084d710d252d7
BLAKE2b-256 db84fcf934374d7ae73219e000074a9faafa21855aa9eaa87037f7380d4bbbc7

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