Coder Social home page Coder Social logo

nitrix's Introduction

Nitrix - A TUI Matrix client

Nitrix is a terminal user interface (TUI) Matrix client written in Python using Textual and the matrix-nio library.

Installation

Nitrix can be installed using pip:

# Create a virtual environment
python3 -m venv nitrix_venv
source nitrix_venv/bin/activate

# Install Nitrix
pip install git+https://github.com/ThomasJRyan/Nitrix

And run using:

nitrix

Development

To install Nitrix for development, clone the repository and install the dependencies:

git clone [email protected]:ThomasJRyan/Nitrix.git
cd Nitrix
pip install -e .
pip install -r requirements-dev.txt

When developing, you can run Nitrix using:

cd src/nitrix
textual run --dev app.py

nitrix's People

Contributors

thomasjryan avatar juliasoriasmith avatar

Watchers

 avatar

Forkers

juliasoriasmith

nitrix's Issues

There should be ghosttext for the login text

When typing in the homeserver, its unclear how you want the format for the homeserver URL,
e.g. matrix. URL, just the URL. Other clients can auto extrapolate the sub-domain, e.g. appending matrix. to the start of the URL.
I would add a temp ghosttext that has an example, e.g. matrix.org, that'll erase when you actually enter the field

Login error on button press

I attempted to login and i received this error:
╭───────────────────── Traceback (most recent call last) ──────────────────────╮
│ /home/julia/venv/lib/python3.10/site-packages/nitrix/screens/login/screen.py │
│ :65 in on_button_pressed │
│ │
│ 62 │ │
│ 63 │ async def on_button_pressed(self, event: Button.Pressed): │
│ 64 │ │ if event.button.id == "loginscreen_submit": │
│ ❱ 65 │ │ │ await self.try_login() │
│ 66 │ │
│ 67 │ async def try_login(self): │
│ 68 │ │ homeserver, username, password = self.get_inputs() │
│ │
│ ╭─────── locals ────────╮ │
│ │ event = Pressed() │ │
│ │ self = LoginScreen() │ │
│ ╰───────────────────────╯ │
│ │
│ /home/julia/venv/lib/python3.10/site-packages/nitrix/screens/login/screen.py │
│ :80 in try_login │
│ │
│ 77 │ │ │ self.app.switch_screen("main") │
│ 78 │ │ │ return │
│ 79 │ │ │
│ ❱ 80 │ │ raise LoginError │
│ 81 │
│ │
│ ╭──────────────────── locals ─────────────────────╮ │
│ │ client = None │ │
│ │ homeserver = Input(id='loginscreen_homeserver') │ │
│ │ password = Input(id='loginscreen_password') │ │
│ │ self = LoginScreen() │ │
│ │ username = Input(id='loginscreen_username') │ │
│ ╰─────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────╯
LoginError

When raising the login error the debug doesnt print the actual error message, it just prints the errortype, LoginError, with no extra details

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.