Skip to main content

Python database operations package

Project description

Database

This module was created to easily access different databases. Now it supports only Oracle connection, other DBs will be added in future versions.

Oracle

Examples:

  • use:
    from db.oracle import Oracle
    
    conn = Oracle(
        db='tns',
        username='user',
        password='pwd'
    )
    
    # query
    query = conn.sql(
        stmt='''
            select :test
            from DUAL d
        ''',
        params={
            'test': 123
        }
    )
    print(f'query: {query}')
    
    dml = conn.sql(
        stmt='''
            delete
            from TABLE_NAME tn
            where tn.ID > :id
        ''',
        params={
            'id': 1234
        }
    )
    print(f'dml: {dml}')
    
    plsql = conn.plsql(
        stmt='''
            begin
                :val2 := :val1 + 5;
                :val4 := :val4 + :val2;
            end;
        ''',
        params={
            'val1': 10,  # in-param
            'val4': 3  # in/out-param
        },
        params_out={
            'val2': int,  # out-param
            'val4': int  # in/out-param
        }
    )
    print(f'plsql: {plsql}')
    

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

ruth_db-2022.0.0-cp313-cp313-win_amd64.whl (45.8 kB view details)

Uploaded CPython 3.13Windows x86-64

ruth_db-2022.0.0-cp313-cp313-musllinux_1_2_x86_64.whl (309.1 kB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

ruth_db-2022.0.0-cp313-cp313-musllinux_1_2_i686.whl (297.1 kB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ i686

ruth_db-2022.0.0-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (301.6 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

ruth_db-2022.0.0-cp313-cp313-macosx_11_0_arm64.whl (48.8 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

ruth_db-2022.0.0-cp312-cp312-win_amd64.whl (46.0 kB view details)

Uploaded CPython 3.12Windows x86-64

ruth_db-2022.0.0-cp312-cp312-musllinux_1_2_x86_64.whl (315.1 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

ruth_db-2022.0.0-cp312-cp312-musllinux_1_2_i686.whl (302.7 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ i686

ruth_db-2022.0.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (300.2 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

ruth_db-2022.0.0-cp312-cp312-macosx_11_0_arm64.whl (49.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

ruth_db-2022.0.0-cp311-cp311-win_amd64.whl (47.2 kB view details)

Uploaded CPython 3.11Windows x86-64

ruth_db-2022.0.0-cp311-cp311-musllinux_1_2_x86_64.whl (310.9 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

ruth_db-2022.0.0-cp311-cp311-musllinux_1_2_i686.whl (304.9 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ i686

ruth_db-2022.0.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (298.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

ruth_db-2022.0.0-cp311-cp311-macosx_11_0_arm64.whl (49.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

Details for the file ruth_db-2022.0.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: ruth_db-2022.0.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 45.8 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for ruth_db-2022.0.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 3274e2ae7252d521d776fd5274f053391b76bf3f8af326ed4338ca1c86bcaa1a
MD5 ccaa2e7add96d7aea3967abe66ef6279
BLAKE2b-256 5ed70db9c7ab0fc0e7ac33caad3123bd75571e6db0e1ee63c671b4edfaf73d6c

See more details on using hashes here.

File details

Details for the file ruth_db-2022.0.0-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for ruth_db-2022.0.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c4ea1dff2f6e3beb087d5b4d6c67a306ad10341f43465c3fdd6ba03c5087f574
MD5 63d463e4b4f817767702d87f7922f691
BLAKE2b-256 db771bba44b7699f8cda171407e893b2c030623c7ee5ff0d620db4d7b9163825

See more details on using hashes here.

File details

Details for the file ruth_db-2022.0.0-cp313-cp313-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for ruth_db-2022.0.0-cp313-cp313-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 fbb3b02a45382d3f7806603050aceebd9032fa4f5e1a64b4800c8ce432e0925e
MD5 d1e3bcd2e418e117c378c1b2ba579f25
BLAKE2b-256 914c9e03c288827a1743a75d081df734c6b27e480bed586f6838586be3193b4b

See more details on using hashes here.

File details

Details for the file ruth_db-2022.0.0-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ruth_db-2022.0.0-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 134bb35374b5650b139efbdf2c0cd953273eb4103dcc1306d52fbe3e20b91c20
MD5 b30eeb0cec10760164fd366b8e0839d7
BLAKE2b-256 46c1ea571fbc9b435004d161ac1ad7504bd5c0418dbd9ceaa36310903ac8a07d

See more details on using hashes here.

File details

Details for the file ruth_db-2022.0.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ruth_db-2022.0.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 74b8fe3c4d73e5e9644d1235dfb60e8669b7c7c7d6ca353c0e4ef12232c9026b
MD5 53155a69aea8394ac71468f276d07372
BLAKE2b-256 304d22dfe5f7afaa7d6364b955218b1ae591c8dd0cb997b572bd26900a5f56ce

See more details on using hashes here.

File details

Details for the file ruth_db-2022.0.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: ruth_db-2022.0.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 46.0 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for ruth_db-2022.0.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 93e7c5c4f6fbedacc96180dc8dd40f92fd1c640054190372d65713de6a1accb5
MD5 50a3afcad1d94278f7f40432c34b2a87
BLAKE2b-256 a914d619d07d8ff74a8c15cd7ab1211c8fff6f8a95cf19d7e256c44a4ddc378e

See more details on using hashes here.

File details

Details for the file ruth_db-2022.0.0-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for ruth_db-2022.0.0-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 218f0d27595b6859e8ad8986c3600f8133f1d63b1079883b6f6ee770f863dc1e
MD5 7b3bffda50e687b6aa8419c4c6f0e4e4
BLAKE2b-256 cdc24b2f35241417af7e05000fab6cc49d3c2084e7b3ccb3562d61a9b9b40c6f

See more details on using hashes here.

File details

Details for the file ruth_db-2022.0.0-cp312-cp312-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for ruth_db-2022.0.0-cp312-cp312-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 5ea9aee2103a9769bc657f7a5e225a8e5baadf345ed306ea535190bc7b2f243c
MD5 ad21f565f139b94bb3962af2a5816cff
BLAKE2b-256 4322f8fc58eab9da1c034ab3920fda2762b35147fd5ae8650fb6a71688c7beab

See more details on using hashes here.

File details

Details for the file ruth_db-2022.0.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ruth_db-2022.0.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 84e2b13de8bf0dc6cdccae5cee72f7affdc384a40478c12f343dbbe1d4b59b36
MD5 e6f99e3b88ea2d21b710c7866befd8a2
BLAKE2b-256 f1650cdea3a501c2a8982b89b8ad2e989e9cbf88da35c3d39b8d410f38cc155f

See more details on using hashes here.

File details

Details for the file ruth_db-2022.0.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ruth_db-2022.0.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 02dbf8c4782d686e48d959d0535d6479fc109506fe8050711ee6ad5d6335edba
MD5 10a8e7e78da72f2bd3053a147eafedd3
BLAKE2b-256 73662b8586a602b7880b11a822280330f2726b4d0c6494c42428d48afa8c39bf

See more details on using hashes here.

File details

Details for the file ruth_db-2022.0.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: ruth_db-2022.0.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 47.2 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for ruth_db-2022.0.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 58da819c53d12c66b215f19d7898bee98441775acaf08574c0550fe0c8cdfb61
MD5 d4df66df9c92c58c30ec70addc252ecd
BLAKE2b-256 9e36bbdafbe942c65007781c7165fdafab6eb78e4c6127bcdc41a907cba7151d

See more details on using hashes here.

File details

Details for the file ruth_db-2022.0.0-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for ruth_db-2022.0.0-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2e6f92f795074c9c573790c2a8bd7f760988117c61ca7f1c4124f8d45373c257
MD5 1e64a54f727c9ec1b34a09a8f52cd0f1
BLAKE2b-256 94c4c3d2541d0fadbb755a619938c543bf4fd391e72db2e516bdf2fcc3031a77

See more details on using hashes here.

File details

Details for the file ruth_db-2022.0.0-cp311-cp311-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for ruth_db-2022.0.0-cp311-cp311-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 523576fa122d7fb4384751b68396254c24d9659560f279c05cc2c251612ac319
MD5 1ba82e4e63dd9e415eb6793bd4b12ab0
BLAKE2b-256 ff730f0f8ee921ff64129b0b4b365f0bcc5f17a2f5b44eb6a512bb86f24efb1c

See more details on using hashes here.

File details

Details for the file ruth_db-2022.0.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ruth_db-2022.0.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0890982256e7d484cceec7899263c2d2878505072c10daaf6bc42cc4826672cc
MD5 cef84e7c695694d5c3329869f85aa8f7
BLAKE2b-256 2d9cdfa139364b9bb695034daefe0a6394cb7e0000616e048118fef492cbdbab

See more details on using hashes here.

File details

Details for the file ruth_db-2022.0.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ruth_db-2022.0.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aa067d2e6ea3120a4fb1daebe32b659556844d93906952a5c4e9e5b7319ea790
MD5 c3fc2e312cf237912aacf06e8e52367b
BLAKE2b-256 e7a798de6aa92720c7490b5bf5b6591fcdf360c47013ee97044f09a770280204

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