Usage examples

Usage examples#

Before run#

Examples in this section use connection settings from the there.env file.

there.env should be filled with values from the PythonHere app Settings section:

# PythonHere device IP address
THERE_HOST=127.0.0.1

# Port, as set in PythonHere app Settings section
THERE_PORT=8022

# Username, as set in PythonHere app Settings section
THERE_USERNAME=here

# Password, as set in PythonHere app Settings section
THERE_PASSWORD=xxx

# Optional: verify the server fingerprint shown on the app's connection screen.
# THERE_HOST_KEY_SHA256=SHA256:<fingerprint-from-the-app>

Host-key verification is optional. Leave the line commented out unless you want to enable it; see the connection settings for details.

When using with Docker#

Content of examples directory are not preserved. work directory can store data that you want to be kept between runs.