Skip to main content

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

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.1.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

odbcinst-1.0.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file odbcinst-1.0.1.tar.gz.

File metadata

  • Download URL: odbcinst-1.0.1.tar.gz
  • Upload date:
  • Size: 2.0 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

Hashes for odbcinst-1.0.1.tar.gz
Algorithm Hash digest
SHA256 9ef77a59ad8bb2da72535fae05e684829141d887ae2f36d57078624c6d230b30
MD5 ab9e36dd31dbb58bf2e0cfd56c884901
BLAKE2b-256 fe6b12a753b3e0363bec280779bf7bf3417e7a47da707797ff062faf63ea2e21

See more details on using hashes here.

File details

Details for the file odbcinst-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: odbcinst-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 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

Hashes for odbcinst-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a92157168560ecc85f9d734b707784ec567b652241d28b5913ed6328264834e2
MD5 83ff815ca7ec801a0313e98c605e04c8
BLAKE2b-256 5b39cd2337d6dd7f45b8aff0cfb85d9cda2dec247c2a688735755a7b8c0ee814

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 files

1.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page