Constants

jetstream.constants.API_VERSION = 70

Version of the API spoken by this Python package.

jetstream.constants.BUILD_VERSION = (3, 0, 0)

Version of JetStream this Python package came from.

jetstream.constants.DEFAULT_API_PORT = 8886

By default, the API will connect to a server using the following TCP control port.

jetstream.constants.DEFAULT_SERVER_ADDRESS = 'localhost'

By default, the API will attempt to connect to a server running on ‘localhost’.

jetstream.constants.DEFAULT_TIMEOUT_SECONDS = 10

By default, connection attempts will timeout and fail if unresponsive for 10 seconds.

jetstream.constants.FILETYPE_DIRECTORY = 2

Identify a manifest mapping item as a directory.

Type:

Manifest flags

jetstream.constants.FILETYPE_REGULAR_FILE = 4

Identify a manifest mapping item as a regular file.

Type:

Manifest flags

jetstream.constants.MINIMUM_API_VERSION = 43

Oldest server API version this package will talk to. A server below this is refused at connect time rather than driven with commands it cannot honour – see the minimum_api_version note in global_constants.py for why the floor exists and when to bump it.

jetstream.constants.OVERWRITE_ALWAYS = 4

Use partfiles, and overwrite existing files.

Type:

Overwrite Mode

jetstream.constants.OVERWRITE_IN_PLACE_SAME_SIZE = 2

Overwrite files only if the existing file is same or zero (0) size.

Type:

Overwrite Mode

jetstream.constants.OVERWRITE_NEVER = 3

Use partfiles, and never overwrite existing files. Instead of overwriting, the partfile will be left in place.

Type:

Overwrite Mode

jetstream.constants.OVERWRITE_VERSIONED = 5

Use partfiles, and overwrite existing files. The original file will be backed up with a .jetbak extension.

Type:

Overwrite Mode

jetstream.constants.PERMISSIONS

Fine grained API permissions.

Follow the symlink and copy the file contents.

Type:

Symbolic Links

Ignore (do not copy) symbolic links.

Type:

Symbolic Links

jetstream.constants.TRANSFER_FLAG_NONE = 0

Disable both read and write flags. This is most useful for performance and network debugging.

Type:

Transfer flags

jetstream.constants.TRANSFER_FLAG_READ = 1

Enable read flag. Transfers with this flag will skip writing to disk at destination, and will only read at sender side. This is most useful for performance and network debugging.

Type:

Transfer flags

jetstream.constants.TRANSFER_FLAG_READ_WRITE = 3

Enable both read and write flags. This is the default value.

Type:

Transfer flags

jetstream.constants.TRANSFER_FLAG_WRITE = 2

Enable write flag. Transfers with this flag will will skip reading from disk, and will only write at the destination. This is most useful for performance and network debugging.

Type:

Transfer flags

jetstream.constants.TRANSFER_FLAG_WRITE_MTIME = 4

Set the modification time on the destination to match the source.

Type:

Transfer flags

jetstream.constants.TRANSFER_FLAG_WRITE_ONLY_NEWER = 8

Don’t write the file if the destination file exists and is newer than the source.

Type:

Transfer flags