Skip to main content

Negar-GUI

PyPI code size GitHub language count GitHub top language GitHub forks GitHub license GitHub stars GitHub issues Downloads Downloads GitHub last commit

Graphical User interface for negar

Negar's English view Negar's Persian view

Installation

PyPi

python-negar is available on PyPi:

$ pip install negar-gui

Git

You can retrieve the latest stable changes from the GitHub server:

$ git clone https://github.com/javadr/negar-gui.git
$ cd negar-gui
$ python setup.py install

Zip, Tarball

You can download the latest tarball.

*nix

Get the latest tarball & install:

$ wget -O negar-gui-master.tar.gz https://github.com/javadr/negar-gui/archive/master.tar.gz
$ tar xvzf negar-gui-master.tar.gz && cd negar-gui-master
$ python setup.py install

Windows

Download the latest zip archive.

https://github.com/javadr/negar-gui/archive/master.zip

Decompress it, and run the following command in the root directory of negar-gui

$ python setup.py install

Requirements

The GUI is relied on python-negar as well as PyQt5/6, pyperclip, pyuca, redlines, regex, requests, qrcode, docopt, Image, pyqtdarktheme, and toml. If you want to just run it by calling the script, you need to install its dependencies.

$ pip install python-negar PyQt5 PyQt6 pyuca pyperclip redlines regex requests qrcode docopt Image pyqtdarktheme toml

Usage

Just use one of the following in your terminal.

$ negar-gui

or simply

$ negar

Persian keyboard on startup

If a Persian keyboard layout is installed, Negar switches to it when it starts and switches back when it closes (turn it off in Settings → Persian Keyboard on Startup). This works on Windows, macOS, KDE Plasma, Sway and X11 desktops. GNOME has no built-in way for apps to change the layout, so there you need the Shyriiwook extension.

AI grammar fix

The AI button works without setup through Pollinations, which is free but slow and rate-limited. For better results, open AI → AI Provider..., pick a provider and paste your own API key. Google Gemini, Groq and OpenRouter give free keys, and OpenAI is paid. Keys are stored in plain text in the settings file (on Linux and macOS the file is made readable only by your user).

Docker

A Docker image is available on Docker Hub:

$ docker pull javadr/negar-gui

Build it locally:

$ make docker-build

Run on X11

$ docker run --rm \
    -e DISPLAY=$DISPLAY \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -v $HOME/.config/negar-gui:/home/negar/.config/negar-gui \
    javadr/negar-gui

Run on Wayland

$ docker run --rm \
    -e QT_QPA_PLATFORM=wayland \
    -e XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR \
    -e WAYLAND_DISPLAY=$WAYLAND_DISPLAY \
    -v $XDG_RUNTIME_DIR/$WAYLAND_DISPLAY:$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY \
    --device /dev/dri \
    -v $HOME/.config/negar-gui:/home/negar/.config/negar-gui \
    javadr/negar-gui

Auto-detect (via Makefile)

$ make docker-run

Metadata

Release files for negar-gui 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for negar-gui 1.2.1
File Size Uploaded Provenance Actions
negar_gui-1.2.1.tar.gz 209.1 kB Without provenance Details for negar_gui-1.2.1.tar.gz

Release files / negar_gui-1.2.1.tar.gz

Download URL negar_gui-1.2.1.tar.gz
Size 209.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6646734b1c76c6ab50b31ea3eaa7492b908b5ce2cfd241a1ad9d6f5ee1a2dbad
BLAKE2b-256 checksum
How to use checksums
fc2d0e5614def9a1a9d3cc3ba349c227f14a1b203be771b2dfaa933a24d771ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Security for negar-gui 1.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.

Release history Release notifications | RSS feed

This release

1.2.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page