python-oraclesql-orm
Python to Oracle SQL Object Relationship Mapping(ORM)
Authors
- Alexandra Kmet
- Stanislav Dzundza
Install
Preinstallation:
- Download Oracle Instant Client for your OS
- Unzip it
- Create ORACLE_CLIENT environment variable with unzipped directory path
- Reload your machine
Installation
Project can be downloaded or installed using PyPI To install from PyPI:
- ensure you have already installed Python 3.7+ and pip on machine
- open terminal and run command
pip install py-2-oracle-sql-orm
Database
We provide database deployed on Azure
User: lab3
Password: lab3
Host: 40.117.92.106/pdb1
Usage
Rules:
- Types of attribule must be specified
class Test:
int_attr = int
str_attr = str
list_attr = list()
object_attr = TestAttr
def __init__(self, int_attr, str_attr, list_attr, object_attr):
self.int_attr = int_attr
self.str_attr = str_attr
self.list_attr = list_attr
self.object_attr = object_attr
Supported types: int, float, str, list, tuple, dict, set, frozenset, object
-
Create instanse of
DbCredentialsand set your database credentials>>> db_credentials = DbCredentials('lab3', 'lab3', '40.117.92.106/pdb1')
-
Create instanse of
Py2SQLand connect to database>>> orm = Py2SQL() >>> orm.db_connect(db_credentials)
-
Use provided methods
-
Don't forget to disconnect
>>> orm.db_disconnect()
Example
For better understanding it is highly recommended to start from examples included in project
Classes for demonstration are located in demo_classes.py
Run main.py to start demonstration
Metadata
Release files for py-2-oracle-sql-orm 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| py_2_oracle_sql_orm-1.0.1.tar.gz | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_2_oracle_sql_orm-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.4 kB
Release files / py_2_oracle_sql_orm-1.0.1.tar.gz
| Download URL | py_2_oracle_sql_orm-1.0.1.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
77c61fd59dc18ca71be3925c0b8ed5cd6aa8f9972e7b828e6a74a4c9050397f3
|
|
BLAKE2b-256 checksum How to use checksums |
73a4601bc672c9d3692cc6de06da4bcb306e4386413840a8470da6de88a4ec24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
|
Release files / py_2_oracle_sql_orm-1.0.1-py3-none-any.whl
| Download URL | py_2_oracle_sql_orm-1.0.1-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
711f0b449ed914a9d97ed8e53b0052e87ae70f5ebd39ef374bed9b81c5572f67
|
|
BLAKE2b-256 checksum How to use checksums |
71f4faf305f23dae06ab2ff35f1dfa7770d2f45cbe2f39d37fc2527f743eb177
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
|