Skip to content

algopy_testing.primitives.string

StringRepresents a UTF-8 encoded string backed by Bytes, accessible via .bytes.

Bases: algopy_testing.protocols.BytesBacked

Represents a UTF-8 encoded string backed by Bytes, accessible via .bytes.

Works with str literals instead of bytes literals. Due to lack of AVM support for unicode, indexing and length operations are not supported. Use .bytes.length for byte length.

Construct an instance from the underlying bytes (no validation)

Get the underlying Bytes.