Package: pyqt-sql-demo
PyQT based SQL query executor demo exampleThis is a demo example of using PyQT and SQLite via standard Python DB-API interface.
It's created to be used as a tutorial or reference.
It usesQtWidgetsfor interface,QTableViewfor displaying SQL query results,pygmentsfor syntax highlighting, andsqlite3for db connection.![PyPI - License](https://img.shields.io/pypi/l/pyqt-sql-demo?style=plastic)
![PyPI](https://img.shields.io/pypi/v/pyqt-sql-demo?style=plastic)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pyqt-sql-demo?style=plastic)
![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg?style=plastic)FeaturesExecutes user's DDL/DML SQL queriesPython3, PyQt5, DB-API 2.0 (does not use QtSql!)Connection string field available to user (default: localdemo.dbfile)Query field available to userSQL syntax highlighting usingpygmentslibraryButtons to execute or fetch query and to commit or rollback the resultsQTableView is used to display resultsInstallation & UsageUsing pip (end user installation)Install it from PyPI into your Python. This is a no-development way to install the package. An executablepyqtsqldemowill become available to you in yourPATHenvironmental variable.$pip3installpyqt-sql-demoLaunch via terminal.$pyqt-sql-demoUsing poetry (development)Install the package into a virtual environment using Poetry.$poetryinstallRun using poetry.$poetryrunpyqt-sql-demoDevelopmentUse pyenvI recommend installing and usingpyenvto manage isolated Python versions on your machine that do not interfere with your system wide Python installation and with other Python versions.
For example, you might have Python 2.7.15 as your system default interpreter, but at the same time you need both Python 3.7.2 for some other projects and Python 3.8.5 for this project installed on the same machine. Best way to achieve this is to usepyenv.After installingpyenvinstall suitable Python version. This project was developed using Python 3.6 but was later upgraded to support latest 3.8.5.$pyenvinstall3.8.5You'll notice.pyenv-versionfile in the root directory of the project, so whenever youcdinto project directorypyenvwill automatically start using Python version specified in that file in this directory.Use poetryPoetry is the latest and most admirable python package manager in existence (as of 2020). This project is packed and distributed using Poetry.The command below executed in the project's root directory will set up a virtual environment using current python version (system wide or the one specified using.pyenv-versionfile) and install all required dependencies into that virtual environment.$poetryinstall

InstallingdependenciesfromlockfileMake modifications and run project:$poetryrunpyqt-sql-demoMake sure you runBlackto format everything properly:$poetryrunblack.

Alldone!✨🍰✨11filesleftunchangedBuild project using poetry$poetrybuild

Buildingpyqt-sql-demo(1.0.0)-Buildingsdist-Builtpyqt-sql-demo-1.0.0.tar.gz-Buildingwheel-Builtpyqt_sql_demo-1.0.0-py3-none-any.whlBug reportingPlease create an issue in GitHub Issues for this project if you have a question or would like to report a bug. When reporting an issue be sure to provide as many details as possible and use proper formatting.Nice details to provide when opening an issue:Reliable way to reproduce a bug/issueWhat was expected?What you got instead?What is your suggestion or clarification question?ScreenshotsLogsLicenseCopyright © 2020 Vagiz DuseevPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.