SYNC COMMIT

This commit is contained in:
Sebastian Lenzlinger 2024-01-04 16:18:28 +01:00
parent 4c5e7e1251
commit 843ed0a1a3
2 changed files with 128 additions and 98 deletions

View File

@ -29,19 +29,49 @@ fixed_map_zurich_original_coords = folium.Map(
) )
def create_heat_view(): def create_heat_view():
pass create_heat_view_sql = """
CREATE VIEW heat AS
SELECT
ST_Y(geometry) AS latitude,
ST_X(geometry) AS longitude,
AccidentYear AS Weight
FROM
accidents
WHERE
ST_Y(geometry) IS NOT NULL AND
ST_X(geometry) IS NOT NULL AND
AccidentYear IS NOT NULL;
"""
remote_db = RemoteDB()
remote_db.execute_query(create_heat_view_sql)
remote_db.close()
logger.info("Heat View Created")\
def get_heat_view():
create_heat_view()
get_heat_view_sql = """
SELECT latitude, longitude, weight
FROM heat;
"""
remote_db = RemoteDB()
# Get heat map data from database
try:
result = remote_db.execute_query(get_heat_view_sql)
logger.info(f"Succesfully retrieved result {result}")
return result
except Exception as e:
logger.exception(f"Failed getting result with exception {e}")
finally:
remote_db.close()
def create_acc_map(): def create_acc_map():
acc_gdf = gpd.read_file(accidents_filepath)
acc_gdf['latitude'] = acc_gdf.geometry.y
acc_gdf['longitude'] = acc_gdf.geometry.x
# Ensure we're dealing with floats # Process heat map data
acc_gdf['latitude'] = acc_gdf['latitude'].astype(float) pass
acc_gdf['longitude'] = acc_gdf['longitude'].astype(float) #heat_df = pd.DataFrame(result, columns=['latitude', 'longitude', 'weight'])
# Build heat dataframe used for mapping
heat_df = acc_gdf
heat_df = heat_df[['latitude', 'longitude']]
heat_df = heat_df.dropna(axis=0, subset=['latitude', 'longitude'])
heat_df = heat_df.dropna(axis=0, subset=['latitude', 'longitude'])

View File

@ -7,8 +7,8 @@
"metadata": { "metadata": {
"collapsed": true, "collapsed": true,
"ExecuteTime": { "ExecuteTime": {
"end_time": "2024-01-04T15:00:59.587867376Z", "end_time": "2024-01-04T15:06:22.066455620Z",
"start_time": "2024-01-04T15:00:59.470683932Z" "start_time": "2024-01-04T15:06:21.950613935Z"
} }
}, },
"outputs": [], "outputs": [],
@ -24,71 +24,71 @@
"name": "stderr", "name": "stderr",
"output_type": "stream", "output_type": "stream",
"text": [ "text": [
"2024-01-04 16:00:59,621 - paramiko.transport - DEBUG - starting thread (client mode): 0xefbb5010\n", "2024-01-04 16:06:22,110 - paramiko.transport - DEBUG - starting thread (client mode): 0xd9a91790\n",
"2024-01-04 16:00:59,622 - paramiko.transport - DEBUG - Local version/idstring: SSH-2.0-paramiko_3.4.0\n", "2024-01-04 16:06:22,112 - paramiko.transport - DEBUG - Local version/idstring: SSH-2.0-paramiko_3.4.0\n",
"2024-01-04 16:00:59,654 - paramiko.transport - DEBUG - Remote version/idstring: SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.6\n", "2024-01-04 16:06:22,151 - paramiko.transport - DEBUG - Remote version/idstring: SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.6\n",
"2024-01-04 16:00:59,655 - paramiko.transport - INFO - Connected (version 2.0, client OpenSSH_8.9p1)\n", "2024-01-04 16:06:22,152 - paramiko.transport - INFO - Connected (version 2.0, client OpenSSH_8.9p1)\n",
"2024-01-04 16:00:59,685 - paramiko.transport - DEBUG - === Key exchange possibilities ===\n", "2024-01-04 16:06:22,188 - paramiko.transport - DEBUG - === Key exchange possibilities ===\n",
"2024-01-04 16:00:59,685 - paramiko.transport - DEBUG - kex algos: curve25519-sha256, curve25519-sha256@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, sntrup761x25519-sha512@openssh.com, diffie-hellman-group-exchange-sha256, diffie-hellman-group16-sha512, diffie-hellman-group18-sha512, diffie-hellman-group14-sha256, kex-strict-s-v00@openssh.com\n", "2024-01-04 16:06:22,188 - paramiko.transport - DEBUG - kex algos: curve25519-sha256, curve25519-sha256@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, sntrup761x25519-sha512@openssh.com, diffie-hellman-group-exchange-sha256, diffie-hellman-group16-sha512, diffie-hellman-group18-sha512, diffie-hellman-group14-sha256, kex-strict-s-v00@openssh.com\n",
"2024-01-04 16:00:59,686 - paramiko.transport - DEBUG - server key: rsa-sha2-512, rsa-sha2-256, ecdsa-sha2-nistp256, ssh-ed25519\n", "2024-01-04 16:06:22,189 - paramiko.transport - DEBUG - server key: rsa-sha2-512, rsa-sha2-256, ecdsa-sha2-nistp256, ssh-ed25519\n",
"2024-01-04 16:00:59,687 - paramiko.transport - DEBUG - client encrypt: chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com\n", "2024-01-04 16:06:22,189 - paramiko.transport - DEBUG - client encrypt: chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com\n",
"2024-01-04 16:00:59,687 - paramiko.transport - DEBUG - server encrypt: chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com\n", "2024-01-04 16:06:22,190 - paramiko.transport - DEBUG - server encrypt: chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com\n",
"2024-01-04 16:00:59,688 - paramiko.transport - DEBUG - client mac: umac-64-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1\n", "2024-01-04 16:06:22,190 - paramiko.transport - DEBUG - client mac: umac-64-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1\n",
"2024-01-04 16:00:59,688 - paramiko.transport - DEBUG - server mac: umac-64-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1\n", "2024-01-04 16:06:22,190 - paramiko.transport - DEBUG - server mac: umac-64-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1\n",
"2024-01-04 16:00:59,688 - paramiko.transport - DEBUG - client compress: none, zlib@openssh.com\n", "2024-01-04 16:06:22,190 - paramiko.transport - DEBUG - client compress: none, zlib@openssh.com\n",
"2024-01-04 16:00:59,689 - paramiko.transport - DEBUG - server compress: none, zlib@openssh.com\n", "2024-01-04 16:06:22,190 - paramiko.transport - DEBUG - server compress: none, zlib@openssh.com\n",
"2024-01-04 16:00:59,689 - paramiko.transport - DEBUG - client lang: <none>\n", "2024-01-04 16:06:22,191 - paramiko.transport - DEBUG - client lang: <none>\n",
"2024-01-04 16:00:59,689 - paramiko.transport - DEBUG - server lang: <none>\n", "2024-01-04 16:06:22,191 - paramiko.transport - DEBUG - server lang: <none>\n",
"2024-01-04 16:00:59,690 - paramiko.transport - DEBUG - kex follows: False\n", "2024-01-04 16:06:22,191 - paramiko.transport - DEBUG - kex follows: False\n",
"2024-01-04 16:00:59,690 - paramiko.transport - DEBUG - === Key exchange agreements ===\n", "2024-01-04 16:06:22,191 - paramiko.transport - DEBUG - === Key exchange agreements ===\n",
"2024-01-04 16:00:59,690 - paramiko.transport - DEBUG - Strict kex mode: True\n", "2024-01-04 16:06:22,192 - paramiko.transport - DEBUG - Strict kex mode: True\n",
"2024-01-04 16:00:59,691 - paramiko.transport - DEBUG - Kex: curve25519-sha256@libssh.org\n", "2024-01-04 16:06:22,192 - paramiko.transport - DEBUG - Kex: curve25519-sha256@libssh.org\n",
"2024-01-04 16:00:59,691 - paramiko.transport - DEBUG - HostKey: ssh-ed25519\n", "2024-01-04 16:06:22,192 - paramiko.transport - DEBUG - HostKey: ssh-ed25519\n",
"2024-01-04 16:00:59,691 - paramiko.transport - DEBUG - Cipher: aes128-ctr\n", "2024-01-04 16:06:22,192 - paramiko.transport - DEBUG - Cipher: aes128-ctr\n",
"2024-01-04 16:00:59,691 - paramiko.transport - DEBUG - MAC: hmac-sha2-256\n", "2024-01-04 16:06:22,193 - paramiko.transport - DEBUG - MAC: hmac-sha2-256\n",
"2024-01-04 16:00:59,691 - paramiko.transport - DEBUG - Compression: none\n", "2024-01-04 16:06:22,193 - paramiko.transport - DEBUG - Compression: none\n",
"2024-01-04 16:00:59,692 - paramiko.transport - DEBUG - === End of kex handshake ===\n", "2024-01-04 16:06:22,193 - paramiko.transport - DEBUG - === End of kex handshake ===\n",
"2024-01-04 16:00:59,765 - paramiko.transport - DEBUG - Resetting outbound seqno after NEWKEYS due to strict mode\n", "2024-01-04 16:06:22,271 - paramiko.transport - DEBUG - Resetting outbound seqno after NEWKEYS due to strict mode\n",
"2024-01-04 16:00:59,766 - paramiko.transport - DEBUG - kex engine KexCurve25519 specified hash_algo <built-in function openssl_sha256>\n", "2024-01-04 16:06:22,271 - paramiko.transport - DEBUG - kex engine KexCurve25519 specified hash_algo <built-in function openssl_sha256>\n",
"2024-01-04 16:00:59,767 - paramiko.transport - DEBUG - Switch to new keys ...\n", "2024-01-04 16:06:22,272 - paramiko.transport - DEBUG - Switch to new keys ...\n",
"2024-01-04 16:00:59,768 - paramiko.transport - DEBUG - Resetting inbound seqno after NEWKEYS due to strict mode\n", "2024-01-04 16:06:22,272 - paramiko.transport - DEBUG - Resetting inbound seqno after NEWKEYS due to strict mode\n",
"2024-01-04 16:00:59,769 - paramiko.transport - DEBUG - Got EXT_INFO: {'server-sig-algs': b'ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com', 'publickey-hostbound@openssh.com': b'0'}\n", "2024-01-04 16:06:22,272 - paramiko.transport - DEBUG - Got EXT_INFO: {'server-sig-algs': b'ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com', 'publickey-hostbound@openssh.com': b'0'}\n",
"2024-01-04 16:00:59,769 - paramiko.transport - DEBUG - Attempting public-key auth...\n", "2024-01-04 16:06:22,272 - paramiko.transport - DEBUG - Attempting public-key auth...\n",
"2024-01-04 16:00:59,859 - paramiko.transport - DEBUG - userauth is OK\n", "2024-01-04 16:06:22,371 - paramiko.transport - DEBUG - userauth is OK\n",
"2024-01-04 16:00:59,903 - paramiko.transport - INFO - Authentication (publickey) failed.\n", "2024-01-04 16:06:22,417 - paramiko.transport - INFO - Authentication (publickey) failed.\n",
"2024-01-04 16:00:59,931 - paramiko.transport - DEBUG - starting thread (client mode): 0xefbb7c50\n", "2024-01-04 16:06:22,450 - paramiko.transport - DEBUG - starting thread (client mode): 0xd9a9af10\n",
"2024-01-04 16:00:59,932 - paramiko.transport - DEBUG - Local version/idstring: SSH-2.0-paramiko_3.4.0\n", "2024-01-04 16:06:22,451 - paramiko.transport - DEBUG - Local version/idstring: SSH-2.0-paramiko_3.4.0\n",
"2024-01-04 16:00:59,969 - paramiko.transport - DEBUG - Remote version/idstring: SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.6\n", "2024-01-04 16:06:22,488 - paramiko.transport - DEBUG - Remote version/idstring: SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.6\n",
"2024-01-04 16:00:59,970 - paramiko.transport - INFO - Connected (version 2.0, client OpenSSH_8.9p1)\n", "2024-01-04 16:06:22,488 - paramiko.transport - INFO - Connected (version 2.0, client OpenSSH_8.9p1)\n",
"2024-01-04 16:00:59,994 - paramiko.transport - DEBUG - === Key exchange possibilities ===\n", "2024-01-04 16:06:22,512 - paramiko.transport - DEBUG - === Key exchange possibilities ===\n",
"2024-01-04 16:00:59,995 - paramiko.transport - DEBUG - kex algos: curve25519-sha256, curve25519-sha256@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, sntrup761x25519-sha512@openssh.com, diffie-hellman-group-exchange-sha256, diffie-hellman-group16-sha512, diffie-hellman-group18-sha512, diffie-hellman-group14-sha256, kex-strict-s-v00@openssh.com\n", "2024-01-04 16:06:22,513 - paramiko.transport - DEBUG - kex algos: curve25519-sha256, curve25519-sha256@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, sntrup761x25519-sha512@openssh.com, diffie-hellman-group-exchange-sha256, diffie-hellman-group16-sha512, diffie-hellman-group18-sha512, diffie-hellman-group14-sha256, kex-strict-s-v00@openssh.com\n",
"2024-01-04 16:00:59,996 - paramiko.transport - DEBUG - server key: rsa-sha2-512, rsa-sha2-256, ecdsa-sha2-nistp256, ssh-ed25519\n", "2024-01-04 16:06:22,514 - paramiko.transport - DEBUG - server key: rsa-sha2-512, rsa-sha2-256, ecdsa-sha2-nistp256, ssh-ed25519\n",
"2024-01-04 16:00:59,996 - paramiko.transport - DEBUG - client encrypt: chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com\n", "2024-01-04 16:06:22,514 - paramiko.transport - DEBUG - client encrypt: chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com\n",
"2024-01-04 16:00:59,996 - paramiko.transport - DEBUG - server encrypt: chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com\n", "2024-01-04 16:06:22,514 - paramiko.transport - DEBUG - server encrypt: chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com\n",
"2024-01-04 16:00:59,997 - paramiko.transport - DEBUG - client mac: umac-64-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1\n", "2024-01-04 16:06:22,514 - paramiko.transport - DEBUG - client mac: umac-64-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1\n",
"2024-01-04 16:00:59,997 - paramiko.transport - DEBUG - server mac: umac-64-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1\n", "2024-01-04 16:06:22,515 - paramiko.transport - DEBUG - server mac: umac-64-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1\n",
"2024-01-04 16:00:59,998 - paramiko.transport - DEBUG - client compress: none, zlib@openssh.com\n", "2024-01-04 16:06:22,515 - paramiko.transport - DEBUG - client compress: none, zlib@openssh.com\n",
"2024-01-04 16:00:59,998 - paramiko.transport - DEBUG - server compress: none, zlib@openssh.com\n", "2024-01-04 16:06:22,515 - paramiko.transport - DEBUG - server compress: none, zlib@openssh.com\n",
"2024-01-04 16:00:59,998 - paramiko.transport - DEBUG - client lang: <none>\n", "2024-01-04 16:06:22,516 - paramiko.transport - DEBUG - client lang: <none>\n",
"2024-01-04 16:00:59,999 - paramiko.transport - DEBUG - server lang: <none>\n", "2024-01-04 16:06:22,516 - paramiko.transport - DEBUG - server lang: <none>\n",
"2024-01-04 16:00:59,999 - paramiko.transport - DEBUG - kex follows: False\n", "2024-01-04 16:06:22,517 - paramiko.transport - DEBUG - kex follows: False\n",
"2024-01-04 16:01:00,000 - paramiko.transport - DEBUG - === Key exchange agreements ===\n", "2024-01-04 16:06:22,517 - paramiko.transport - DEBUG - === Key exchange agreements ===\n",
"2024-01-04 16:01:00,000 - paramiko.transport - DEBUG - Strict kex mode: True\n", "2024-01-04 16:06:22,517 - paramiko.transport - DEBUG - Strict kex mode: True\n",
"2024-01-04 16:01:00,000 - paramiko.transport - DEBUG - Kex: curve25519-sha256@libssh.org\n", "2024-01-04 16:06:22,517 - paramiko.transport - DEBUG - Kex: curve25519-sha256@libssh.org\n",
"2024-01-04 16:01:00,000 - paramiko.transport - DEBUG - HostKey: ssh-ed25519\n", "2024-01-04 16:06:22,517 - paramiko.transport - DEBUG - HostKey: ssh-ed25519\n",
"2024-01-04 16:01:00,001 - paramiko.transport - DEBUG - Cipher: aes128-ctr\n", "2024-01-04 16:06:22,517 - paramiko.transport - DEBUG - Cipher: aes128-ctr\n",
"2024-01-04 16:01:00,001 - paramiko.transport - DEBUG - MAC: hmac-sha2-256\n", "2024-01-04 16:06:22,517 - paramiko.transport - DEBUG - MAC: hmac-sha2-256\n",
"2024-01-04 16:01:00,001 - paramiko.transport - DEBUG - Compression: none\n", "2024-01-04 16:06:22,517 - paramiko.transport - DEBUG - Compression: none\n",
"2024-01-04 16:01:00,002 - paramiko.transport - DEBUG - === End of kex handshake ===\n", "2024-01-04 16:06:22,518 - paramiko.transport - DEBUG - === End of kex handshake ===\n",
"2024-01-04 16:01:00,004 - paramiko.transport - DEBUG - EOF in transport thread\n", "2024-01-04 16:06:22,518 - paramiko.transport - DEBUG - EOF in transport thread\n",
"2024-01-04 16:01:00,089 - paramiko.transport - DEBUG - Resetting outbound seqno after NEWKEYS due to strict mode\n", "2024-01-04 16:06:22,597 - paramiko.transport - DEBUG - Resetting outbound seqno after NEWKEYS due to strict mode\n",
"2024-01-04 16:01:00,090 - paramiko.transport - DEBUG - kex engine KexCurve25519 specified hash_algo <built-in function openssl_sha256>\n", "2024-01-04 16:06:22,598 - paramiko.transport - DEBUG - kex engine KexCurve25519 specified hash_algo <built-in function openssl_sha256>\n",
"2024-01-04 16:01:00,090 - paramiko.transport - DEBUG - Switch to new keys ...\n", "2024-01-04 16:06:22,599 - paramiko.transport - DEBUG - Switch to new keys ...\n",
"2024-01-04 16:01:00,090 - paramiko.transport - DEBUG - Resetting inbound seqno after NEWKEYS due to strict mode\n", "2024-01-04 16:06:22,600 - paramiko.transport - DEBUG - Resetting inbound seqno after NEWKEYS due to strict mode\n",
"2024-01-04 16:01:00,091 - paramiko.transport - DEBUG - Got EXT_INFO: {'server-sig-algs': b'ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com', 'publickey-hostbound@openssh.com': b'0'}\n", "2024-01-04 16:06:22,601 - paramiko.transport - DEBUG - Got EXT_INFO: {'server-sig-algs': b'ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com', 'publickey-hostbound@openssh.com': b'0'}\n",
"2024-01-04 16:01:00,091 - paramiko.transport - DEBUG - Attempting public-key auth...\n", "2024-01-04 16:06:22,601 - paramiko.transport - DEBUG - Attempting public-key auth...\n",
"2024-01-04 16:01:00,192 - paramiko.transport - DEBUG - userauth is OK\n", "2024-01-04 16:06:22,694 - paramiko.transport - DEBUG - userauth is OK\n",
"2024-01-04 16:01:00,244 - paramiko.transport - INFO - Authentication (publickey) successful!\n" "2024-01-04 16:06:22,752 - paramiko.transport - INFO - Authentication (publickey) successful!\n"
] ]
} }
], ],
@ -98,8 +98,8 @@
"metadata": { "metadata": {
"collapsed": false, "collapsed": false,
"ExecuteTime": { "ExecuteTime": {
"end_time": "2024-01-04T15:01:00.276638120Z", "end_time": "2024-01-04T15:06:22.784599466Z",
"start_time": "2024-01-04T15:00:59.590634120Z" "start_time": "2024-01-04T15:06:22.066355304Z"
} }
}, },
"id": "62c8f38132d5cd27" "id": "62c8f38132d5cd27"
@ -112,17 +112,17 @@
"name": "stderr", "name": "stderr",
"output_type": "stream", "output_type": "stream",
"text": [ "text": [
"2024-01-04 16:01:00,277 - paramiko.transport - DEBUG - [chan 0] Max packet in: 32768 bytes\n", "2024-01-04 16:06:22,785 - paramiko.transport - DEBUG - [chan 0] Max packet in: 32768 bytes\n",
"2024-01-04 16:01:00,334 - paramiko.transport - DEBUG - Received global request \"hostkeys-00@openssh.com\"\n", "2024-01-04 16:06:22,810 - paramiko.transport - DEBUG - Received global request \"hostkeys-00@openssh.com\"\n",
"2024-01-04 16:01:00,334 - paramiko.transport - DEBUG - Rejecting \"hostkeys-00@openssh.com\" global request from server.\n", "2024-01-04 16:06:22,811 - paramiko.transport - DEBUG - Rejecting \"hostkeys-00@openssh.com\" global request from server.\n",
"2024-01-04 16:01:00,335 - paramiko.transport - DEBUG - Debug msg: b'/home/sebl/.ssh/authorized_keys:4: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding'\n", "2024-01-04 16:06:22,812 - paramiko.transport - DEBUG - Debug msg: b'/home/sebl/.ssh/authorized_keys:4: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding'\n",
"2024-01-04 16:01:00,358 - paramiko.transport - DEBUG - [chan 0] Max packet out: 32768 bytes\n", "2024-01-04 16:06:22,835 - paramiko.transport - DEBUG - [chan 0] Max packet out: 32768 bytes\n",
"2024-01-04 16:01:00,359 - paramiko.transport - DEBUG - Secsh channel 0 opened.\n", "2024-01-04 16:06:22,835 - paramiko.transport - DEBUG - Secsh channel 0 opened.\n",
"2024-01-04 16:01:01,360 - paramiko.transport - DEBUG - [chan 0] EOF sent (0)\n", "2024-01-04 16:06:23,924 - paramiko.transport - DEBUG - [chan 0] EOF sent (0)\n",
"2024-01-04 16:01:01,361 - paramiko.transport - DEBUG - [chan 1] Max packet in: 32768 bytes\n", "2024-01-04 16:06:23,925 - paramiko.transport - DEBUG - [chan 1] Max packet in: 32768 bytes\n",
"2024-01-04 16:01:01,386 - paramiko.transport - DEBUG - [chan 0] EOF received (0)\n", "2024-01-04 16:06:23,960 - paramiko.transport - DEBUG - [chan 0] EOF received (0)\n",
"2024-01-04 16:01:01,409 - paramiko.transport - DEBUG - [chan 1] Max packet out: 32768 bytes\n", "2024-01-04 16:06:24,128 - paramiko.transport - DEBUG - [chan 1] Max packet out: 32768 bytes\n",
"2024-01-04 16:01:01,409 - paramiko.transport - DEBUG - Secsh channel 1 opened.\n" "2024-01-04 16:06:24,129 - paramiko.transport - DEBUG - Secsh channel 1 opened.\n"
] ]
} }
], ],
@ -132,8 +132,8 @@
"metadata": { "metadata": {
"collapsed": false, "collapsed": false,
"ExecuteTime": { "ExecuteTime": {
"end_time": "2024-01-04T15:01:02.003242832Z", "end_time": "2024-01-04T15:06:24.838445832Z",
"start_time": "2024-01-04T15:01:00.277738067Z" "start_time": "2024-01-04T15:06:22.786527573Z"
} }
}, },
"id": "29b60614b47dbc87" "id": "29b60614b47dbc87"
@ -144,7 +144,7 @@
"outputs": [ "outputs": [
{ {
"data": { "data": {
"text/plain": "[(1, 1250443, 2678956, '2012-01-01', 0, 0, 0, 0, 0, 'Sunday')]" "text/plain": "(1, 1250443, 2678956, '2012-01-01', 0, 0, 0, 0, 0, 'Sunday')"
}, },
"execution_count": 4, "execution_count": 4,
"metadata": {}, "metadata": {},
@ -152,13 +152,13 @@
} }
], ],
"source": [ "source": [
"result" "result[0]"
], ],
"metadata": { "metadata": {
"collapsed": false, "collapsed": false,
"ExecuteTime": { "ExecuteTime": {
"end_time": "2024-01-04T15:01:10.779405322Z", "end_time": "2024-01-04T15:06:24.848769980Z",
"start_time": "2024-01-04T15:01:10.773113980Z" "start_time": "2024-01-04T15:06:24.846327294Z"
} }
}, },
"id": "cddcbd64b8c52d93" "id": "cddcbd64b8c52d93"