Prop
#
Bases: object
__eq__(value)
#
Return self==value.
__ge__(value)
#
Return self>=value.
__gt__(value)
#
Return self>value.
__hash__()
#
Return hash(self).
__le__(value)
#
Return self<=value.
__lt__(value)
#
Return self<value.
__ne__(value)
#
Return self!=value.
__repr__()
#
Return repr(self).
aware_datetime(value)
staticmethod
#
Construct a Prop holding a timezone-aware datetime (stored as UTC).
Naive datetimes are accepted and interpreted as UTC, matching the
convention used elsewhere in Raphtory's time inputs.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
datetime
|
a datetime. Naive datetimes are treated as UTC. |
required |
Returns:
| Type | Description |
|---|---|
Prop
|
|
bool(value)
staticmethod
#
decimal(value)
staticmethod
#
Construct a Prop holding an arbitrary-precision decimal.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
Decimal | str | int | float
|
the value to wrap. Strings must
parse as a decimal. Note that floats only have ~15-17 digits of
precision — pass a string or |
required |
Returns:
| Type | Description |
|---|---|
Prop
|
|