This release is a pre-release and may not be stable for production use.
Ipython ODBC SQL Magic
IPython Magic untuk menjalankan SQL menggunakan ODBC secara langsung pada notebook cell.
Pemasangan
$ pip3 install ipython-dawet-sql
Penggunaan
Load Ekstensi
Untuk dapat menggunakan, ekstensi harus di load terlebih dahulu ke notebook yang sedang digunakan.
%load_ext dawetsql
Database Connection
Membuka Koneksi
%dawetsql
Setelah line magic dieksekusi, selanjutnya isi form sesuai dengan konfigurasi ODBC. Username dan password optional jika sudah diset di konfigurasi ODBC sistem.
Untuk me-restart koneksi, cukup klik connect, dawetsql akan otomatis menutup koneksi terlebih dahulu sebelum membuka koneksi baru lagi.
Menutup Koneksi
%dawetsqlclose
Menjalankan SQL
%%dawetsql
SELECT * FROM tables
WHERE somecolumn = 'somevalue'
Preview hasil query ditampilkan menggunakan pandas.DataFrame dengan default limit 10 baris.
Available arguments
| Arguments | Type | Default | Descriptions |
|---|---|---|---|
-l --limit |
Integer | 10 | Set limit query untuk preview |
-o --output |
String | _ |
Nama output hasil query. |
Contoh Penggunaan
Menyimpan Hasil query ke Python Variable
%%dawetsql --ouput variablename
SELECT * FROM tables
WHERE somecolumn = 'somevalue'
Menyimpan Hasil Query ke File
Cell Magic %%dawetsql akan otomatis menyimpan hasil query kedalam file jika nama output memiliki ekstensi .csv, .pkl, dan .xlsx
%%dawetsql --output filename.csv
SELECT * FROM tables
WHERE somecolumn = 'somevalue'
Widgets
Schema Explorer Widget
Widget ini digunakan untuk meng-explore database skema, tabel, kolom, dan tipe kolom.
%explorer [-f --force]
Table Detail
Query Builder
Table Data Preview
Settings
File konfigurasi dawetsql tersimpan pada direktori ~/.dawetsql.
Lain-lain
SQL Autocomplete
Cell magic %%dawetsql mendukung SQL Autocomplete. Fitur ini masih bersifat eksperimental. Autocomplete untuk nama tabel dan kolom tersedia setelah pengguna menjalankan magic %explore.
Legal
Package ini dirilis di bawah lisensi MIT.
Metadata
Release files for ipython-dawet-sql 0.1b8
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 |
|---|---|---|---|---|
| ipython-dawet-sql-0.1b8.tar.gz | 11.1 kB | Without provenance | Details for ipython-dawet-sql-0.1b8.tar.gz |
Release files / ipython-dawet-sql-0.1b8.tar.gz
| Download URL | ipython-dawet-sql-0.1b8.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
676dd181de07b48321436d19e5e5303185f93510f0422dbc9fc033f557015dc3
|
|
BLAKE2b-256 checksum How to use checksums |
6d8fbb5d916403b17ad6a9676b72ef1f36ca85a18d8ea710d635a93d6815b05e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.2
|
Security for ipython-dawet-sql 0.1b8
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.