odbcinst
return output from unixODBC odbcinst command
Installation
pip install odbcinst
Usage
The .j() function executes odbcinst -j. If called with no argument it
returns a dict. If called with a str argument it returns the specified value.
from pprint import pprint
import odbcinst
pprint(odbcinst.j())
"""console output:
{'DRIVERS': '/etc/odbcinst.ini',
'FILE DATA SOURCES': '/etc/ODBCDataSources',
'SQLLEN Size': '8',
'SQLSETPOSIROW Size': '8',
'SQLULEN Size': '8',
'SYSTEM DATA SOURCES': '/etc/odbc.ini',
'USER DATA SOURCES': '/home/gord/.odbc.ini',
'unixODBC': '2.3.4'}
"""
print(repr(odbcinst.j("unixODBC")))
# '2.3.4'
If unixODBC is not installed then the results are
pprint(odbcinst.j())
"""console output:
{'unixODBC': None}
"""
print(repr(odbcinst.j("SYSTEM DATA SOURCES")))
# None
Release files for odbcinst 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 | |
|---|---|---|---|
| odbcinst-1.0.1.tar.gz | 2.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| odbcinst-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.1 kB
Release files / odbcinst-1.0.1.tar.gz
| Download URL | odbcinst-1.0.1.tar.gz |
|---|---|
| Size | 2.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ef77a59ad8bb2da72535fae05e684829141d887ae2f36d57078624c6d230b30
|
|
BLAKE2b-256 checksum How to use checksums |
fe6b12a753b3e0363bec280779bf7bf3417e7a47da707797ff062faf63ea2e21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
|
Release files / odbcinst-1.0.1-py3-none-any.whl
| Download URL | odbcinst-1.0.1-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a92157168560ecc85f9d734b707784ec567b652241d28b5913ed6328264834e2
|
|
BLAKE2b-256 checksum How to use checksums |
5b39cd2337d6dd7f45b8aff0cfb85d9cda2dec247c2a688735755a7b8c0ee814
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
|