Python3Script Xojo Plugin

Python3Entity Class (console safe)

A class that represents Python entities. It can be String, Integer, Dictionary or Tuple for example.

Python3EntityBase
   Python3Entity

class Python3Entity

Constructors

Python3Entity (console safe) This constructor is Private since this class should be constructed with the shared methods on the class.

Properties

BooleanValue (console safe) Returns Boolean value from the entity.
BytesValue (console safe) Returns Python3Bytes value from the entity.
DictionaryValue (console safe) Returns Python3Dictionary value from the entity.
DoubleValue (console safe) Returns Double value from the entity.
FitsInInt32 (console safe) Returns true if the value of the entity fits in 32 bit integer.
Int32Value (console safe) Returns 32 bit signed integer value from the entity.
Int64Value (console safe) Returns 64 bit signed integer value from the entity.
IsBoolean (console safe) Returns true if the entity contains Boolean, else false.
IsBytes (console safe) Returns true if the entity contains Bytes, else false.
IsDictionary (console safe) Returns true if the entity contains Dictionary, else false.
IsDouble (console safe) Returns true if the entity contains Double number, else false.
IsInteger (console safe) Returns true if the value is integer.
IsList (console safe) Returns true if the entity contains List, else false.
IsObject (console safe) Returns true if the value stores an object.
IsString (console safe) Returns true if the entity contains String, else false.
IsTuple (console safe) Returns true if the entity contains Tuple, else false.
ListValue (console safe) Returns Python3List value from the entity.
ObjectValue (console safe) Returns Object value from the entity.
StringValue (console safe) Returns UTF8 encoded String value from the entity.
TupleValue (console safe) Returns Python3Parameters value which represents a Tuple from the entity.
UInt64Value (console safe) Returns 64 bit unsigned integer value from the entity.

Methods

shared FromBooleanConstructs Python3Entity from a Boolean value.
shared FromDoubleConstructs Python3Entity from a Double value.
shared FromInt32Constructs Python3Entity from a Int32 value.
shared FromInt64Constructs Python3Entity from a Int64 value.
shared FromObjectConstructs Python3Entity from a Xojo Object value.
shared FromPtrCreates Python3Entity instance from a Ptr.
shared FromStringConstructs Python3Entity from a String value.
shared FromUInt64Constructs Python3Entity from a UInt64 value.
GetPtr (Inherited) (console safe) Gets pointed to the actual python object under the hood.
Hash (Inherited) (console safe) Computes and return the hash value of the object.
ToString (Inherited) (console safe) Computes a string representation of the object. Returns the string representation on success, empty string on failure.

Supported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit