return output from unixODBC `odbcinst` command
Project description
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'
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
odbcinst-1.0.0.tar.gz
(1.9 kB
view details)
Built Distribution
File details
Details for the file odbcinst-1.0.0.tar.gz
.
File metadata
- Download URL: odbcinst-1.0.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a21d9e04db3c22ae0344d6f3c4d75eb2984f789bf9488bc2b7c7a942c91e91a |
|
MD5 | 32002d7eff0f653390efd65bb42481ab |
|
BLAKE2b-256 | 053dc44447f50e3078631a543a25457e54a2bf4650ed49033eb372e09e51ff32 |
File details
Details for the file odbcinst-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: odbcinst-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e74cd82779c38d37ac8f56bd7adb334034246569189f8ca6d268045d882150d |
|
MD5 | 6183f6b627f95c587e642e9a9fd72cf1 |
|
BLAKE2b-256 | 503cd8e14fac3578cf46c7c02faae40be9c5368f119665b7f9cc7e0dd71e60cf |