`Pytsql` allows to run mssql sripts, typically run via GUIs, via CLI.
Project description
pytsql
pytsql
allows to run mssql scripts, typically run from GUIs, from Python.
This, in turn, eases concurrent, scheduled and chained execution of scripts in a workflow. Put differently, it enables automated execution of Microsoft sql server scripts.
Moreover, pytsql
supports parametrization of scripts, akin to templating.
Please have a look at our documentation if you're curious about more details.
Installation
To install, execute:
pip install pytsql
or in a conda
environment
mamba install pytsql
Be aware that depending on your platform, you'will need specific drivers (Windows, Linux, macOS).
Usage
pytsql
is tailored to run with MSSQL. Other sql dialects are not supported.
The main function of interest is execute
. It requires a sqlalchemy
Engine
object as well as the path to the sql script of interest. A typical use case might look as follows:
import pytsql
from sqlalchemy import sa
db_connection_string = "connection_to_my_database"
engine = sa.get_engine(db_connection_string)
pytsql.execute("my_sql_script.sql", engine)
Please also have a look at our documentation sections on usage and development.
Credits
Inspiration drawn from codebuff.
Original authors: Alex Gonopolskiy Kevin Klein Encho Mishinev
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for pytsql-1.1.1-pp39-pypy39_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d24b8006ba51b1b507a23f20f63d9423666aa4e481e051cb7fa773241617b223 |
|
MD5 | 62dbf12500e642ff641e16997be13959 |
|
BLAKE2b-256 | 818b7f9157fa9e4fc1577f362f320a57adf074cf113df0da6fe87ca0396a0d12 |
Hashes for pytsql-1.1.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10372d510c2237bbb8a0806e35db4aa642c7d9c453f56a447afb6155895755b3 |
|
MD5 | d36fd2007dfa013c6babaeb5ac817379 |
|
BLAKE2b-256 | bfd4f51052bc4ad235600077561910a03c8f558ddbbe7a0b4b3000f16e59ee38 |
Hashes for pytsql-1.1.1-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 296c77eb84a2c6c09afc1c2f773f7aadb0abdc9c38c9f3c300e4f72f61f27c6f |
|
MD5 | ea232375f0ec1760dc469e72eb0f33a8 |
|
BLAKE2b-256 | 80f3b5651f5c321ae5b9a419077721ea823f9eb240710332180dcb154ca0f3c9 |
Hashes for pytsql-1.1.1-pp39-pypy39_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e40dd860574a00d8a8c0c73feca784dfef44458a27156894b0fabb4ecf87be9 |
|
MD5 | ce6d6ac296dc557c6ed2b92825ab6706 |
|
BLAKE2b-256 | 89d0f52449a40baeda79445e72783c7e316b9c39b41c5d03374883162c6e55d9 |
Hashes for pytsql-1.1.1-pp38-pypy38_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3716fdf07494fc1ce201995e1dc5b16774693d43d2d8ae652a8503428be9ac6 |
|
MD5 | 64a86312cdff28e5a2adaa72966a2b3d |
|
BLAKE2b-256 | 7ad61349dffbe05ca425721e1b2547439fe6136e62972e8650a18e750e53bfc8 |
Hashes for pytsql-1.1.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 385871197d05451db80e757a684a404ff688bfd140e6730cafe7becf16d371cf |
|
MD5 | 542a69351a7cf8591da4b3d65f9dcfa8 |
|
BLAKE2b-256 | a19327600e909849596092328a54529010150b1bf5a7639d3394eca721ac4510 |
Hashes for pytsql-1.1.1-pp38-pypy38_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd57910e58d942d713ce6dc2c2b7f24e07464cb70db3f1436bec0ff5b9609589 |
|
MD5 | 10f5b22830c5e9a6cd2302f64eb6da56 |
|
BLAKE2b-256 | 4d68947105054b969f80c170f177b001f0d1962db1b909e381be4eedfce131c6 |
Hashes for pytsql-1.1.1-pp38-pypy38_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5883fcd000d2bc9bb7073a830daaa7423bb2cfca677ac41fcf06a88bdd83ac5b |
|
MD5 | bcaf27071cbda0298b4008d376632a2d |
|
BLAKE2b-256 | 878d14644f05a9e98587e6c53481c929d71769b3c1aac2a23db9d88af9f47202 |
Hashes for pytsql-1.1.1-pp37-pypy37_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f07a05fe926c42bfa8d606c1436378b472ad80104a14054733d76250a74bb72c |
|
MD5 | d18af4813177cfd6e4d9681fdb812203 |
|
BLAKE2b-256 | 5b20075896fe98872611623db30c096556baa8f914509dad94a8d7602421e781 |
Hashes for pytsql-1.1.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c2d6ede37a007cc48d3f574e871856fde51709b74f0227703719ea045eede94 |
|
MD5 | a4a5a091fb5cd31720c46a727e7e227b |
|
BLAKE2b-256 | 036eeb6ce4f96cda270087a6f8dbe9fd74ea314f2d51acf0c216345bb5f5b785 |
Hashes for pytsql-1.1.1-pp37-pypy37_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66e1ef83a63d1668c4a95f3f8735ee6a4e426df69350a1cccb53f1460bbb82ce |
|
MD5 | e33889c1892cd99361f56a9dac9008fa |
|
BLAKE2b-256 | 5dd585f3a7708201c697d5ad76c26a9f54de0dcc03b7986e189dbf1af1e4ce0c |
Hashes for pytsql-1.1.1-pp37-pypy37_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3a1e5efe2021ae1ab729ab235bdb825f69c9b5d53eba7313abc4f05bd697857 |
|
MD5 | 4b781506962b65bf0a6f2fc0a7ece870 |
|
BLAKE2b-256 | e8899920aa4551f7928a011ec5c3ccbcbfd650e367384c218ea2b32fc5e7d0cd |
Hashes for pytsql-1.1.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e24dd8faa6fdec31a4df4c3736a69df48528e4ffc1adea643a6770acf22ce5a |
|
MD5 | 57951b78826ae8a5c7d04c0396ba4482 |
|
BLAKE2b-256 | f565e5d10d4c9c1e2fd9bfe18f6a74945fd90bcc63301051c57eb9a299d5a941 |
Hashes for pytsql-1.1.1-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9ee95da4a0e626b38dded04356b4c126c330581779477c76fa3900aca25a3e8 |
|
MD5 | 7ec46edb42debcc6456822f484a4071e |
|
BLAKE2b-256 | f2100b89c71841ae7b40b858d68c7282a2900456840b88201bea5d1248d8bf00 |
Hashes for pytsql-1.1.1-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa9ffbd29b315065343f5edc82444c879edb48f08779a7765f38d3797e16a8c3 |
|
MD5 | 4d9a107862b566db25461f08f80a0d9c |
|
BLAKE2b-256 | c07eeef720a667a673b54505bf60da4aaf846a9c8198c52a2bfaf7e9229be803 |
Hashes for pytsql-1.1.1-cp311-cp311-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdf878527157cb7c6665786d237ce732c5273f47bef4ee1fac990f1b0884eb1d |
|
MD5 | 608a1a9cf560c047ce784fa9ea52444d |
|
BLAKE2b-256 | 33fb42d0180edfebb3456d90a39e78d41405eb1e72517c951bcac32511d79b2a |
Hashes for pytsql-1.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d90e77ce347370760c59b72e918f51a3e567f4910320ae18e7cfc7eaff39023 |
|
MD5 | d9cebb3666309753835d63fb14a9bdab |
|
BLAKE2b-256 | 0b03884562afbe85ca93ad3aeb9cc05e2891341b50721666432b849cd4a0ea46 |
Hashes for pytsql-1.1.1-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34318dacff67238780928155cef63c2014b4e2d78ae98a97863df01be714834b |
|
MD5 | 18bc970eb534605db8cba330b2a0efd7 |
|
BLAKE2b-256 | 37bd1e75e732c5332f862f9154e331703edded9fe22162fecea8d27af8680d57 |
Hashes for pytsql-1.1.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc790932042b41948e488c39830770dd8f8b6f15574bb7d9bce001c9221e396e |
|
MD5 | fce622938736d3b8ec2e2fad0c455f58 |
|
BLAKE2b-256 | 3b7d8e5ea19917bc4959d873398791924bb5563c0a77c5bef533200a46bf7348 |
Hashes for pytsql-1.1.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8ad9bb03e82101d0eb2e331e3baeddd41ae2de1eafe37353345fcad0466aad5 |
|
MD5 | dd5b76dec5af786046b9ba0e46030f66 |
|
BLAKE2b-256 | 9562c239701ad670a55f9c310d1a1abb09c4c97169c913b779cde4c89a2e2ed3 |
Hashes for pytsql-1.1.1-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09d055d12a14e862bdd50c98f1931aa462c7681087bde67097f3d5533383fc8f |
|
MD5 | 8b991f03560aa31a13cbfdc2aef22a91 |
|
BLAKE2b-256 | b79406deaa1d9b00ad0f5de57ac7046a4ea99cce3538f0ca309035b24523595e |
Hashes for pytsql-1.1.1-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45f8b552175b66e5e77087a0f0e5d6f48e7b7a62341b2f25d0fcb50d8d4510fb |
|
MD5 | 387a2928e775219de016c067d9e394f6 |
|
BLAKE2b-256 | 6c7abb3fb87f81a64b30a484b19539767c71309c7879fc0d1b0036492e5d5c51 |
Hashes for pytsql-1.1.1-cp310-cp310-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 752a34e7a3c37a8a9f59aa0921aed8059ad1615c9b0b697d246936832951845d |
|
MD5 | 4d53db5529359a00111a8830e6ee2650 |
|
BLAKE2b-256 | 633bdbe6648b728b708799a6e4cf1dd7e3769ce2caa0062f77cf6dd952bc4e28 |
Hashes for pytsql-1.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bded965be72e4d2f389cf558e430ff3f5534a820209fb4302ce6c10efc965d7 |
|
MD5 | 044c11c41273fd460a5e073598aee2ad |
|
BLAKE2b-256 | cfc0185640a9bd5a65efb3e96bff5cc4559c47a2ace044c3ff7ce15a74e4ad1c |
Hashes for pytsql-1.1.1-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d36e9efa890bbe0a52de68b0e48b7f74ed499e9372fb626ba8ca26fe721bd10 |
|
MD5 | b7e214ebbde998c0de3acb7c247f617e |
|
BLAKE2b-256 | 012dd5ee6bbdf009cbe6aaeb78ceb4a694e995c55e7985f97765a7d5803fb81b |
Hashes for pytsql-1.1.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | afb6cf21d17cc1ad37fdd34579b528b2488ba66d48ded3deecdd7d10046aab18 |
|
MD5 | de84af8e714d695f8a410f42226b80ea |
|
BLAKE2b-256 | 05595ce94cfd422ac822fefec68e604a4d1b2d363e8bd28696fc81fb8eb13e34 |
Hashes for pytsql-1.1.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e109d08671b2340d12ab33faae3756435006a999997e778aa455d40cae7cde6b |
|
MD5 | 56fd505964b5165680f409e81d423c41 |
|
BLAKE2b-256 | d0ff75f4de06493f1fa26978ab2e78fd238f0d65d568011e1f7e3d2244e6d402 |
Hashes for pytsql-1.1.1-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14cb9b6a8505b34b1abd32922eefbf90d183e490c59e67ce6cd3a2f61f36bf4c |
|
MD5 | 2215efc8c1600e44a52990eb30e03a80 |
|
BLAKE2b-256 | f98cd73ba7ae7f44c1658f84d3142f90fe85a7ee982280bf0cdc01ee9330a645 |
Hashes for pytsql-1.1.1-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1694185dc05134d98795a6b6cc0a41e22b2f585be738dc31822395d68a06f68d |
|
MD5 | fec87a7c6d1724d787fd55222d079175 |
|
BLAKE2b-256 | a4b6f91fe82bafea011cb31f056cb1f7db7912dd36f38ec53d80d85b958569fd |
Hashes for pytsql-1.1.1-cp39-cp39-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e69f67c6603deba86ca18153f06f04039cb6b1c489eecdb1b9da0b1fad1456c7 |
|
MD5 | 3ae519e38a41ec4e2d4d51c2a117cf94 |
|
BLAKE2b-256 | 90c0410b6689265862f66d9450c32cf5affec3a0540be2167dd6e5f2641ca0a9 |
Hashes for pytsql-1.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10294ae0c48350486d7c70ebb358211af13ca107ecb1de33d961299027dbd900 |
|
MD5 | aa05e89f464177757b2922d3e7ebc1c8 |
|
BLAKE2b-256 | f6ce6e1f0f4507cd2e6aa6f3c313af95fed78ff7e71c65d58258f327bb6685eb |
Hashes for pytsql-1.1.1-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f20d79184fe4d124f6bf8cb0701bb0abaa8f4e22350923e5c285bcaaa5ecd2c |
|
MD5 | 74bf6f03e5305f9df79765697fb97416 |
|
BLAKE2b-256 | 0de96168883a64bd7afe12cb1b3f7abd70cf74b71cee16d4f6f08ca9104a77b1 |
Hashes for pytsql-1.1.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cec43f188e24d639530042c3a45749fbbf9cd42bd03eebe3f4a7c3d0431a57eb |
|
MD5 | a6a7992edc8a84babea0c2645c5dcc4d |
|
BLAKE2b-256 | 95dee96d8e62f11316453ada4f3fcf8f703c2eab5bc03c67038fe9e8d764374b |
Hashes for pytsql-1.1.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab8dbe1a82d06f4aa532f5932eb3dcacff28ac1f4fd4247540070dc5f2b46283 |
|
MD5 | 556ff6a27d7cc2487163082ed6c3b434 |
|
BLAKE2b-256 | 78151ac0c0c2b18986cc69b308914a5ebd0cef93da3529a61c2c34fde88d2964 |
Hashes for pytsql-1.1.1-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18bc034f2f8cdee922263f88bd1898160e5fa456ce884cc89d461a4857b534b3 |
|
MD5 | 43c2374f37f24e18adabdd045fbf23e7 |
|
BLAKE2b-256 | 30f5cf96bcc20f266d6c993ab0aa8ff11a0fbcc033e0be584f96eb7317b76a6b |
Hashes for pytsql-1.1.1-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81d9004786ac6aa45eba30470d686ac0d9b72e2eaf3d884b6f0b82ef5e11e531 |
|
MD5 | 3cd47b57697fdeb90445e39d4e89a4e1 |
|
BLAKE2b-256 | 600f77cd487b43182e32ca937a75d154ea738f8c2dc97b3c354a90d2324f6fb3 |
Hashes for pytsql-1.1.1-cp38-cp38-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd8a4851e1e77dd86fe5fa004f630837548a7fa57245ba4ced1a6bf832e597d9 |
|
MD5 | 7b05823047285e241905f944e6a5a936 |
|
BLAKE2b-256 | ddf66d3edebe284bf0b2b26d71d2b1958967c8abc70d782c258e10f80eb3d711 |
Hashes for pytsql-1.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 027d24632a5dba113a4e8ed9242a06a0347f2b938a73172da989eeb69addb95e |
|
MD5 | af8c0ddb726284236e5fa8b622d39cf7 |
|
BLAKE2b-256 | 5be98194ce9a3bea47064a8eba11136b3c7b09db8a6a13fc006a4a09a02ff6a8 |
Hashes for pytsql-1.1.1-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b55bf4aefd5ed85e14a343125575c92991bedada331b7bb5dca6f7ce0e3252cb |
|
MD5 | 62f5104467959498c4ab1b823d6992d5 |
|
BLAKE2b-256 | 4f100629779a60ab0a225851b285bd56c0b0138d6d6618dc768c34162bdb706c |
Hashes for pytsql-1.1.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f11f37ab50661e2863f6eda4ae80038db1e949afcdf8aa56d5ba82a675531a10 |
|
MD5 | 9b3d2ea88bef6201b93b9eb116b08057 |
|
BLAKE2b-256 | af4293bb33cbef9444907d33e829a123bbd1c3b1be7c4c415474fcbb2d16e06f |
Hashes for pytsql-1.1.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b664780af351761abb7dd5a887be1f8488616406a76622e0abc1e43143df86e2 |
|
MD5 | 46d4b2ba626f7087b9084657fd38053e |
|
BLAKE2b-256 | 178d9d50a1e5e919d9b66a1569ed37d30e2e030442cb6b437b2a348a1f7db9ad |
Hashes for pytsql-1.1.1-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca61237685e4018cb28b3bd930433b8eddb049edfcdab087b4787c75d3a2c717 |
|
MD5 | dc822e7777e853bb94c204b40ffc16ca |
|
BLAKE2b-256 | c04e5027029cd0ef688c06919decef947b7a313dbe8e36898dfac39c8853e799 |
Hashes for pytsql-1.1.1-cp37-cp37m-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cf2d19b585e990fd94cff4d6e154823875eaa255ba05789bcae9396891e5546 |
|
MD5 | bedcf628db09a98632cbbed1317bfe4b |
|
BLAKE2b-256 | 386901550d9d7cf0349a831adcda971e234328c2c54b6140b3882cfe8e6f3ebd |
Hashes for pytsql-1.1.1-cp37-cp37m-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50b08057a3c656c9d4ad787c145d16901c75803b7ccae14010304858af4758de |
|
MD5 | fcf3b810cbe856b678ebbfc9303a58ac |
|
BLAKE2b-256 | 9b44416ed7ed57d864ee430989fa27970312afd92a71649fd86ea49b2b547817 |
Hashes for pytsql-1.1.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fd5d0710d7c585fa4b5b55086f82f4c307f38f35f75f00527eecf3c35d5ad8c |
|
MD5 | 2d552a752a7076b358ef020f92074d56 |
|
BLAKE2b-256 | a3334b647057e527de206cf5eacef18077d48a9469eea764e156e77678f638b5 |
Hashes for pytsql-1.1.1-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a2f3eda52ae80a6f87a4fa1b6dc5d32e845a26ffc3b9ab64bc9150d0363bc1f |
|
MD5 | 05f4f999e67001be30325d0d8db5b917 |
|
BLAKE2b-256 | 609e1cbae22fdb8e156816f43b0d00cb56697dbd3250b81fdbdbda72431dcb6f |
Hashes for pytsql-1.1.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c872bed6a4b2abc9723842aa7c700ceacaf5bc2e4c8560cb5ede3a713edac3af |
|
MD5 | 4f54bb81e45b060c67c17d778807f791 |
|
BLAKE2b-256 | b9e5cbf45e140dd281f02763734e6cb9c8fa3e09794230fabd8c7c142fc79867 |