Skip to main content

A seamless integration bridge between PyQt and PostgreSQL, enabling rapid development of database-backed PyQt applications with robust data handling capabilities.

Project description

Чтобы добавить текст в файл README.md на английском языке, вы можете использовать следующий шаблон. Создайте или откройте файл README.md в корневой папке вашего проекта и вставьте в него следующее содержание:


pyqt-connector

pyqt-connector is a fundamental Python library designed to ensure reliable and efficient integration between PostgreSQL and PyQt. It serves as a critical component for developers looking to build powerful graphical applications with a relational database as the foundation for data storage and processing. Without pyqt-connector, synergy between the high-performance PostgreSQL database and the flexible PyQt GUI capabilities cannot be achieved.

Features

  • Simplified Connection: Automates the process of setting up connections with the PostgreSQL database in PyQt applications.
  • Transaction Management: Provides convenient tools for managing transactions, optimizing performance and security of your applications.
  • Asynchronous Support: Includes support for asynchronous database operations, allowing for the development of responsive GUI applications.

Installation

Install pyqt-connector via pip:

pip install pyqt-connector

This command will automatically install all necessary dependencies, including psycopg2 for PostgreSQL interaction and PyQt for GUI creation.

Example of Connecting to PostgreSQL

To use pyqt-connector for connecting to PostgreSQL, ensure you have a connection set up with your database. Here's a basic example demonstrating how to do this using psycopg2:

import sys
from PyQt5.QtWidgets import QApplication, QMainWindow
import psycopg2
from pyqt_connector import create_connection  # Assuming this is part of your library

class MainWindow(QMainWindow):
    def __init__(self):
        super().__init__()
        self.initUI()
    
    def initUI(self):
        self.setWindowTitle('Example of Connecting to PostgreSQL via pyqt-connector')
        self.setGeometry(100, 100, 600, 400)
        self.show()

        # Connect to the database
        self.connectToDatabase()

    def connectToDatabase(self):
        conn = create_connection(dbname='your_dbname', user='your_user', 
                                 password='your_password', host='your_host')
        cur = conn.cursor()
        # You can execute SQL queries here
        cur.close()
        conn.close()

if __name__ == '__main__':
    app = QApplication(sys.argv)
    ex = MainWindow()
    sys.exit(app.exec_())

In the example above, create_connection is a function from your pyqt-connector library that facilitates establishing a connection with the PostgreSQL database. This is a fictional example, assuming you have such functionality in your library.

License

pyqt-connector is distributed under the MIT License, allowing its use in both private and commercial projects with minimal restrictions.

Community and Support

For support, discussion of new features, and communication with other developers, visit our GitHub repository.


Simply save this as README.md in the root directory of your project. Adjust the content as necessary to match the specifics and functionalities of your library.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyqt-connector-2.9.9.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyqt_connector-2.9.9-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file pyqt-connector-2.9.9.tar.gz.

File metadata

  • Download URL: pyqt-connector-2.9.9.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for pyqt-connector-2.9.9.tar.gz
Algorithm Hash digest
SHA256 4fce058b68324f77cba2ff796b656a5116f850492f9044306a0fa89afa621a64
MD5 ea732ed47593376d79766a269a99b736
BLAKE2b-256 522b9e7c4bf290a66ed7a090e1307ad135205ce50c04a4ad8342178eadb43cb6

See more details on using hashes here.

File details

Details for the file pyqt_connector-2.9.9-py3-none-any.whl.

File metadata

  • Download URL: pyqt_connector-2.9.9-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for pyqt_connector-2.9.9-py3-none-any.whl
Algorithm Hash digest
SHA256 8e3fe422af157661460570078a72672e0166df456b78a8772ee87ea71da77e8a
MD5 0a718a0ea494340bf2d73562b9ba59df
BLAKE2b-256 8e43053a34fd95172c4b361e83f139f882a8dc12087835d1288d5bc9de2064b4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page