Show and edit pandas DataFrame in GUI with PySide2.
git clone https://github.com/stanislavsabev/qspreadsheet.git
cd qspreadsheet
pip install .
python src/example.py
.
Setup virtual environment and activate it.
python -m venv .venv
source ./.venv/bin/activate
.\venv\Scripts\activate.bat
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-dev.txt
pip install -e .
Run pytest
, flake8
and mypy
in a command line...
$ pytest
...
tests\test_imports.py ......x
[100%]
----------- coverage: platform win32, python 3.7.9-final-0 -----
Name Stmts Miss Cover
------------------------------------------------------
src\qspreadsheet\__init__.py 0 0 100%
src\qspreadsheet\constants.py 3 0 100%
src\qspreadsheet\qt.py 7 0 100%
src\qspreadsheet\table_view.py 16 10 38%
src\qspreadsheet\table_widget.py 24 0 100%
src\qspreadsheet\types.py 9 0 100%
------------------------------------------------------
TOTAL 59 10 83%
======= 13 passed, 1 xfailed, 1 warning in 1.10s ===============
$ mypy src
Success: no issues found in 6 source files
$ flake8 src tests
0
..or using tox
(Change py37 according to your python version)
$ tox -e py37,mypy,flake8
...
______________________________________________________________________________ summary ___
py37: commands succeeded
mypy: commands succeeded
flake8: commands succeeded
congratulations :)