Coder Social home page Coder Social logo

qspreadsheet's Introduction

qspreadsheet

Show and edit pandas DataFrame in GUI with PySide2.

tests


Usage

Install

git clone https://github.com/stanislavsabev/qspreadsheet.git
cd qspreadsheet
pip install .

See example

python src/example.py.

Development Setup

Setup virtual environment and activate it.

Linux / Mac

python -m venv .venv
source ./.venv/bin/activate

Windows

.\venv\Scripts\activate.bat

Install requirements

python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-dev.txt

Install as editable package

pip install -e .

Local development

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 :)

qspreadsheet's People

Contributors

stanislavsabev avatar

Watchers

 avatar  avatar

Forkers

diamond7

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.