tsdk-git
Install
pip install tsdk-git
Usage
Copy database example
from tsdk import DbConfig, OdbcDrivers, copy_data
source = DbConfig(OdbcDrivers.SQLite, "", "database1.db", "", "", False)
destination = DbConfig(OdbcDrivers.MicrosoftSQLServer, "localhost", "database2", "uid", "pwd", False)
copy_data(source, destination)
Server object example
Set TsdkServer configuration
s = TsdkServer()
s.set_configuration(OdbcDrivers.MicrosoftSQLServer, "localhost", "tsdk", "", "", True)
Save configuration
Save to custom file
s.save_configuration("conf_test.json")
Save to default file
s.save_configuration()
Setup TsdkServer System Tables
Safely call this function for the first time, Should be used with care, it will delete exsisting system tables
s.setup_database()
Export/Import System Tables
Find sample system tables in release v1.0.0 Assets
Export system tables to Excel file
Call setup_database before exporting system tables for the first time
s.export_system_tables(r"c:/users/ali/desktop/tsdk_system_tables.xlsx")
Import system tables from Excel file,
Should be used with care, it will overwrite existing system tables
s.import_system_tables(r"c:/users/ali/desktop/tsdk_system_tables.xlsx")
Execute SQL statement on SQL server
s.execute_sql("select * from table")
Load database table to dataframe
return tuple df, err
df, err = s.sql_to_dataframe("select * from table")
Load dataframe to database table
s.dataframe_to_db(df, "table_name", index=False)
Load Excel file with multiple sheets to database tables,
Sheet names will be used as table name
s.load_all_excel_sheets_to_db(excel_file)
Load Excel sheet to database table
s.load_excel_sheet_to_db(excel_file, sheet_name)
Load CSV file to database table
s.load_csv_to_db(csv_file, table_name)
Run Audit
nr_basic_audit_v2()
Run Scheduler
df, err = s.sql_to_dataframe("SELECT * FROM scheduler")
sch = TsdkScheduler(jobs_df=df)
sch.start()
Metadata
Release files for tsdk-git 5.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tsdk_git-5.3.4.tar.gz | 22.5 kB | Without provenance | Details for tsdk_git-5.3.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tsdk_git-5.3.4-py3-none-any.whl | Python 3 | none | any | Details for tsdk_git-5.3.4-py3-none-any.whl |
Total release size: 44.6 kB
Release files / tsdk_git-5.3.4.tar.gz
| Download URL | tsdk_git-5.3.4.tar.gz |
|---|---|
| Size | 22.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2785437531418082866222987b5f8dc8a467d862438fc2fa3dcf5b48e7606776
|
|
BLAKE2b-256 checksum How to use checksums |
d7a256041b86e97be9bb5835dcdb1567b5ee5d98332de9a2d525280a0c744b18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.1
|
Release files / tsdk_git-5.3.4-py3-none-any.whl
| Download URL | tsdk_git-5.3.4-py3-none-any.whl |
|---|---|
| Size | 22.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2133889664ac84f3f803d710d0e682532d3221113249e0dfe3872290df9cfaca
|
|
BLAKE2b-256 checksum How to use checksums |
f63643e73893c4277b7fb155007454d6f7287c51c0eeb493aa0a9dd975aa3a3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.1
|
Security for tsdk-git 5.3.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.