SQLConn
Advanced tools
+4
-22
| Metadata-Version: 2.1 | ||
| Name: SQLConn | ||
| Version: 0.0.9 | ||
| Version: 0.0.10 | ||
| Summary: This package facilitates easy SQL database integration. | ||
| Home-page: https://github.com/janyoungjin/SQLConn | ||
| Author: janyoungjin | ||
| Keywords: mysql,postgresql,sqlite,mssql,oracle,sql | ||
| Keywords: mysql,postgresql,sqlite,mssql,sql | ||
| Description-Content-Type: text/markdown | ||
@@ -15,4 +15,2 @@ Requires-Dist: pandas | ||
| Requires-Dist: sqlite3 | ||
| Provides-Extra: oracle | ||
| Requires-Dist: cx_Oracle; extra == "oracle" | ||
@@ -23,3 +21,3 @@ # SQLConn | ||
| SQLConn은 다양한 SQL 데이터베이스 관리 시스템(DBMS)에 연결하여 데이터를 쉽게 조작하고 관리할 수 있는 Python 패키지입니다. 이 패키지는 MySQL, PostgreSQL, Microsoft SQL Server, Oracle 및 SQLite 데이터베이스에 대한 지원을 포함합니다. | ||
| SQLConn은 다양한 SQL 데이터베이스 관리 시스템(DBMS)에 연결하여 데이터를 쉽게 조작하고 관리할 수 있는 Python 패키지입니다. 이 패키지는 MySQL, PostgreSQL, Microsoft SQL Server 및 SQLite 데이터베이스에 대한 지원을 포함합니다. | ||
@@ -39,3 +37,2 @@ ### 기능 | ||
| - Microsoft SQL Server | ||
| - Oracle | ||
| - SQLite | ||
@@ -51,8 +48,2 @@ | ||
| 만약 OracleConn클래스를 쓰고 싶다면 아래와 같이 설치해야합니다: | ||
| ```bash | ||
| pip install SQLConn['oracle'] | ||
| ``` | ||
| ### 클래스 소개 | ||
@@ -66,3 +57,2 @@ | ||
| | `PostgreSQLConn` | PostgreSQL 데이터베이스와의 연결을 관리합니다. | SQLConn에게 상속 받았습니다 | | ||
| | `OracleConn` | Oracle 데이터베이스와의 연결을 관리합니다. | SQLConn에게 상속 받았습니다 | | ||
| | `SQLiteConn` | SQLite 파일 기반 데이터베이스와의 연결을 관리합니다. | SQLConn에게 상속 받았습니다 | | ||
@@ -135,3 +125,3 @@ | ||
| SQLConn is a Python package that connects to various SQL database management systems (DBMS) to easily manipulate and manage data. This package includes support for MySQL, PostgreSQL, Microsoft SQL Server, Oracle, and SQLite databases. | ||
| SQLConn is a Python package that connects to various SQL database management systems (DBMS) to easily manipulate and manage data. This package includes support for MySQL, PostgreSQL, Microsoft SQL Server and SQLite databases. | ||
@@ -151,3 +141,2 @@ ### function | ||
| - Microsoft SQL Server | ||
| - Oracle | ||
| - SQLite | ||
@@ -163,8 +152,2 @@ | ||
| If you want to use the OracleConn class, you must install it as follows: | ||
| ```bash | ||
| pip install SQLConn['oracle'] | ||
| ``` | ||
| ### class info | ||
@@ -178,3 +161,2 @@ | ||
| | `PostgreSQLConn` | Manages connections to PostgreSQL databases. | protected SQLConn | | ||
| | `OracleCon` | Manages Oracle database relationships. | protected SQLConn | | ||
| | `SQLiteConn` | Manages SQLite file-based database relationships. | protected SQLConn | | ||
@@ -181,0 +163,0 @@ |
+2
-18
@@ -5,3 +5,3 @@ # SQLConn | ||
| SQLConn은 다양한 SQL 데이터베이스 관리 시스템(DBMS)에 연결하여 데이터를 쉽게 조작하고 관리할 수 있는 Python 패키지입니다. 이 패키지는 MySQL, PostgreSQL, Microsoft SQL Server, Oracle 및 SQLite 데이터베이스에 대한 지원을 포함합니다. | ||
| SQLConn은 다양한 SQL 데이터베이스 관리 시스템(DBMS)에 연결하여 데이터를 쉽게 조작하고 관리할 수 있는 Python 패키지입니다. 이 패키지는 MySQL, PostgreSQL, Microsoft SQL Server 및 SQLite 데이터베이스에 대한 지원을 포함합니다. | ||
@@ -21,3 +21,2 @@ ### 기능 | ||
| - Microsoft SQL Server | ||
| - Oracle | ||
| - SQLite | ||
@@ -33,8 +32,2 @@ | ||
| 만약 OracleConn클래스를 쓰고 싶다면 아래와 같이 설치해야합니다: | ||
| ```bash | ||
| pip install SQLConn['oracle'] | ||
| ``` | ||
| ### 클래스 소개 | ||
@@ -48,3 +41,2 @@ | ||
| | `PostgreSQLConn` | PostgreSQL 데이터베이스와의 연결을 관리합니다. | SQLConn에게 상속 받았습니다 | | ||
| | `OracleConn` | Oracle 데이터베이스와의 연결을 관리합니다. | SQLConn에게 상속 받았습니다 | | ||
| | `SQLiteConn` | SQLite 파일 기반 데이터베이스와의 연결을 관리합니다. | SQLConn에게 상속 받았습니다 | | ||
@@ -117,3 +109,3 @@ | ||
| SQLConn is a Python package that connects to various SQL database management systems (DBMS) to easily manipulate and manage data. This package includes support for MySQL, PostgreSQL, Microsoft SQL Server, Oracle, and SQLite databases. | ||
| SQLConn is a Python package that connects to various SQL database management systems (DBMS) to easily manipulate and manage data. This package includes support for MySQL, PostgreSQL, Microsoft SQL Server and SQLite databases. | ||
@@ -133,3 +125,2 @@ ### function | ||
| - Microsoft SQL Server | ||
| - Oracle | ||
| - SQLite | ||
@@ -145,8 +136,2 @@ | ||
| If you want to use the OracleConn class, you must install it as follows: | ||
| ```bash | ||
| pip install SQLConn['oracle'] | ||
| ``` | ||
| ### class info | ||
@@ -160,3 +145,2 @@ | ||
| | `PostgreSQLConn` | Manages connections to PostgreSQL databases. | protected SQLConn | | ||
| | `OracleCon` | Manages Oracle database relationships. | protected SQLConn | | ||
| | `SQLiteConn` | Manages SQLite file-based database relationships. | protected SQLConn | | ||
@@ -163,0 +147,0 @@ |
+2
-5
@@ -8,3 +8,3 @@ from setuptools import setup, find_packages | ||
| name='SQLConn', | ||
| version='0.0.9', | ||
| version='0.0.10', | ||
| description='This package facilitates easy SQL database integration.', | ||
@@ -22,8 +22,5 @@ long_description=long_description, | ||
| ], | ||
| extras_require={ | ||
| 'oracle': ['cx_Oracle'] | ||
| }, | ||
| packages=find_packages(exclude=[]), | ||
| url='https://github.com/janyoungjin/SQLConn', | ||
| keywords=['mysql', 'postgresql', 'sqlite', 'mssql', 'oracle', 'sql'] | ||
| keywords=['mysql', 'postgresql', 'sqlite', 'mssql', 'sql'] | ||
| ) |
| Metadata-Version: 2.1 | ||
| Name: SQLConn | ||
| Version: 0.0.9 | ||
| Version: 0.0.10 | ||
| Summary: This package facilitates easy SQL database integration. | ||
| Home-page: https://github.com/janyoungjin/SQLConn | ||
| Author: janyoungjin | ||
| Keywords: mysql,postgresql,sqlite,mssql,oracle,sql | ||
| Keywords: mysql,postgresql,sqlite,mssql,sql | ||
| Description-Content-Type: text/markdown | ||
@@ -15,4 +15,2 @@ Requires-Dist: pandas | ||
| Requires-Dist: sqlite3 | ||
| Provides-Extra: oracle | ||
| Requires-Dist: cx_Oracle; extra == "oracle" | ||
@@ -23,3 +21,3 @@ # SQLConn | ||
| SQLConn은 다양한 SQL 데이터베이스 관리 시스템(DBMS)에 연결하여 데이터를 쉽게 조작하고 관리할 수 있는 Python 패키지입니다. 이 패키지는 MySQL, PostgreSQL, Microsoft SQL Server, Oracle 및 SQLite 데이터베이스에 대한 지원을 포함합니다. | ||
| SQLConn은 다양한 SQL 데이터베이스 관리 시스템(DBMS)에 연결하여 데이터를 쉽게 조작하고 관리할 수 있는 Python 패키지입니다. 이 패키지는 MySQL, PostgreSQL, Microsoft SQL Server 및 SQLite 데이터베이스에 대한 지원을 포함합니다. | ||
@@ -39,3 +37,2 @@ ### 기능 | ||
| - Microsoft SQL Server | ||
| - Oracle | ||
| - SQLite | ||
@@ -51,8 +48,2 @@ | ||
| 만약 OracleConn클래스를 쓰고 싶다면 아래와 같이 설치해야합니다: | ||
| ```bash | ||
| pip install SQLConn['oracle'] | ||
| ``` | ||
| ### 클래스 소개 | ||
@@ -66,3 +57,2 @@ | ||
| | `PostgreSQLConn` | PostgreSQL 데이터베이스와의 연결을 관리합니다. | SQLConn에게 상속 받았습니다 | | ||
| | `OracleConn` | Oracle 데이터베이스와의 연결을 관리합니다. | SQLConn에게 상속 받았습니다 | | ||
| | `SQLiteConn` | SQLite 파일 기반 데이터베이스와의 연결을 관리합니다. | SQLConn에게 상속 받았습니다 | | ||
@@ -135,3 +125,3 @@ | ||
| SQLConn is a Python package that connects to various SQL database management systems (DBMS) to easily manipulate and manage data. This package includes support for MySQL, PostgreSQL, Microsoft SQL Server, Oracle, and SQLite databases. | ||
| SQLConn is a Python package that connects to various SQL database management systems (DBMS) to easily manipulate and manage data. This package includes support for MySQL, PostgreSQL, Microsoft SQL Server and SQLite databases. | ||
@@ -151,3 +141,2 @@ ### function | ||
| - Microsoft SQL Server | ||
| - Oracle | ||
| - SQLite | ||
@@ -163,8 +152,2 @@ | ||
| If you want to use the OracleConn class, you must install it as follows: | ||
| ```bash | ||
| pip install SQLConn['oracle'] | ||
| ``` | ||
| ### class info | ||
@@ -178,3 +161,2 @@ | ||
| | `PostgreSQLConn` | Manages connections to PostgreSQL databases. | protected SQLConn | | ||
| | `OracleCon` | Manages Oracle database relationships. | protected SQLConn | | ||
| | `SQLiteConn` | Manages SQLite file-based database relationships. | protected SQLConn | | ||
@@ -181,0 +163,0 @@ |
@@ -7,4 +7,1 @@ pandas | ||
| sqlite3 | ||
| [oracle] | ||
| cx_Oracle |
| from .SQLConn import MSSQLConn | ||
| from .SQLConn import MYSQLConn | ||
| from .SQLConn import OracleConn | ||
| from .SQLConn import PostgresqlConn | ||
@@ -8,2 +7,2 @@ from .SQLConn import SQLiteConn | ||
| __all__ = ["MSSQLConn", "MYSQLConn", "OracleConn", "PostgresqlConn", "SQLiteConn","SQLConn"] | ||
| __all__ = ["MSSQLConn", "MYSQLConn", "PostgresqlConn", "SQLiteConn","SQLConn"] |
+0
-18
@@ -97,21 +97,3 @@ from pandas import read_sql | ||
| return f'mssql+pyodbc://{self.__user}:{self.__password}@{self.__host}:{self.__port}/{self.__database}' | ||
| class OracleConn(SQLConn): | ||
| def __init__(self, password: str, host: str = '127.0.0.1', user: str = "system", database: str = "xe", port: str | int = 1521) -> None: | ||
| try: | ||
| import cx_Oracle | ||
| except ImportError: | ||
| raise ImportError("cx_Oracle is not installed. Please install it using 'pip install SQLConn[oracle]'") | ||
| super().__init__() | ||
| self.__host = host | ||
| self.__user = user | ||
| self.__password = password | ||
| self.__database = database | ||
| self.__port = int(port) | ||
| self._conn = cx_Oracle.connect(self.__user, self.__password, f'{self.__host}:{self.__port}/{self.__database}') | ||
| @property | ||
| def URL(self): | ||
| return f'oracle+cx_oracle://{self.__user}:{self.__password}@{self.__host}:{self.__port}/?service_name={self.__database}' | ||
| class PostgresqlConn(SQLConn): | ||
@@ -118,0 +100,0 @@ def __init__(self,password:str,host:str='127.0.0.1',user:str="postgres",database:str="postgres",port:str|int=5432) -> None: |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
36090
-7.31%136
-12.82%