swiftsimio.swiftsnap module

swiftsnap: check the metadata of a SWIFT snapshot easily from the command line.

See the -h invocation for more details.

swiftsimio.swiftsnap.decode(bytestring: object) str[source]

Decode input if it is a bytestring.

If the input is not a bytestring, we instead try to interpret it as a string.

Parameters:

bytestring (object) – The (possibly) bytes object.

Returns:

The resulting string.

Return type:

str

swiftsimio.swiftsnap.swiftsnap() None[source]

Access SWIFT snapshot metadata from the command line.

For details see the command line argument parser help.