Python 3.12 with ODBC, Pandas, and Requests
1.3K
This Docker image provides a Python 3.12 environment with the following pre-installed:
pyodbc: For connecting Python applications to ODBC-compliant databases, including Microsoft SQL Server.pandas: A powerful data analysis and manipulation library.requests: A user-friendly HTTP library for making API requests.python:3.12-slimpyodbcpandasrequestsTo use this image, pull it from Docker Hub:
podman pull docker.io/ibaytar/python3.12-odbc-pandas-requests:latest
Here is an example of how you might connect to an SQL Server database using pyodbc:
import pyodbc
conn = pyodbc.connect(
'DRIVER={ODBC Driver 17 for SQL Server};'
'SERVER=your_server_name;'
'DATABASE=your_db_name;'
'UID=your_username;'
'PWD=your_password'
)
cursor = conn.cursor()
cursor.execute('SELECT * FROM your_table')
for row in cursor:
print(row)
conn.close()
Content type
Image
Digest
sha256:ab9190222…
Size
143.8 MB
Last updated
almost 2 years ago
docker pull ibaytar/python3.12-odbc-pandas-requests