numeric
¶
ASTx Data Types module.
Classes:
-
Complex
–Base class for complex numbers.
-
Complex32
–Complex32 data type class.
-
Complex64
–Complex64 data type class.
-
Float16
–Float16 data type expression.
-
Float32
–Float32 data type expression.
-
Float64
–Float64 data type expression.
-
Floating
–AST for the literal float number.
-
Int128
–Int128 data type expression.
-
Int16
–Int16 data type expression.
-
Int32
–Int32 data type expression.
-
Int64
–Int64 data type expression.
-
Int8
–Int8 data type expression.
-
Integer
–Integer number data type expression.
-
Number
–Number data type expression.
-
SignedInteger
–Signed integer number data type expression.
-
UInt128
–UInt128 data type expression.
-
UInt16
–UInt16 data type expression.
-
UInt32
–UInt32 data type expression.
-
UInt64
–UInt64 data type expression.
-
UInt8
–UInt8 data type expression.
-
UnsignedInteger
–Unsigned integer number data type expression.
Complex
¶
Bases: Number
Base class for complex numbers.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
388 389 390 391 392 393 394 395 396 397 398 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
404 405 406 407 408 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
265 266 267 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
259 260 261 262 263 |
|
Complex32
¶
Bases: Complex
Complex32 data type class.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
388 389 390 391 392 393 394 395 396 397 398 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
404 405 406 407 408 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
265 266 267 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
259 260 261 262 263 |
|
Complex64
¶
Bases: Complex
Complex64 data type class.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
388 389 390 391 392 393 394 395 396 397 398 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
404 405 406 407 408 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
265 266 267 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
259 260 261 262 263 |
|
Float16
¶
Bases: Floating
Float16 data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
388 389 390 391 392 393 394 395 396 397 398 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
404 405 406 407 408 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
265 266 267 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
259 260 261 262 263 |
|
Float32
¶
Bases: Floating
Float32 data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
388 389 390 391 392 393 394 395 396 397 398 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
404 405 406 407 408 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
265 266 267 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
259 260 261 262 263 |
|
Float64
¶
Bases: Floating
Float64 data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
388 389 390 391 392 393 394 395 396 397 398 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
404 405 406 407 408 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
265 266 267 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
259 260 261 262 263 |
|
Floating
¶
Bases: Number
AST for the literal float number.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
388 389 390 391 392 393 394 395 396 397 398 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
404 405 406 407 408 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
265 266 267 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
259 260 261 262 263 |
|
Int128
¶
Bases: SignedInteger
Int128 data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
388 389 390 391 392 393 394 395 396 397 398 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
404 405 406 407 408 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
265 266 267 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
259 260 261 262 263 |
|
Int16
¶
Bases: SignedInteger
Int16 data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
388 389 390 391 392 393 394 395 396 397 398 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
404 405 406 407 408 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
265 266 267 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
259 260 261 262 263 |
|
Int32
¶
Bases: SignedInteger
Int32 data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
388 389 390 391 392 393 394 395 396 397 398 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
404 405 406 407 408 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
265 266 267 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
259 260 261 262 263 |
|
Int64
¶
Bases: SignedInteger
Int64 data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
388 389 390 391 392 393 394 395 396 397 398 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
404 405 406 407 408 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
265 266 267 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
259 260 261 262 263 |
|
Int8
¶
Bases: SignedInteger
Int8 data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
388 389 390 391 392 393 394 395 396 397 398 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
404 405 406 407 408 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
265 266 267 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
259 260 261 262 263 |
|
Integer
¶
Bases: AnyType
Integer number data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
388 389 390 391 392 393 394 395 396 397 398 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
404 405 406 407 408 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
265 266 267 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
259 260 261 262 263 |
|
Number
¶
Bases: AnyType
Number data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
388 389 390 391 392 393 394 395 396 397 398 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
404 405 406 407 408 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
265 266 267 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
259 260 261 262 263 |
|
SignedInteger
¶
Bases: Integer
Signed integer number data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
388 389 390 391 392 393 394 395 396 397 398 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
404 405 406 407 408 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
265 266 267 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
259 260 261 262 263 |
|
UInt128
¶
Bases: UnsignedInteger
UInt128 data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
388 389 390 391 392 393 394 395 396 397 398 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
404 405 406 407 408 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
265 266 267 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
259 260 261 262 263 |
|
UInt16
¶
Bases: UnsignedInteger
UInt16 data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
388 389 390 391 392 393 394 395 396 397 398 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
404 405 406 407 408 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
265 266 267 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
259 260 261 262 263 |
|
UInt32
¶
Bases: UnsignedInteger
UInt32 data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
388 389 390 391 392 393 394 395 396 397 398 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
404 405 406 407 408 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
265 266 267 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
259 260 261 262 263 |
|
UInt64
¶
Bases: UnsignedInteger
UInt64 data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
388 389 390 391 392 393 394 395 396 397 398 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
404 405 406 407 408 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
265 266 267 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
259 260 261 262 263 |
|
UInt8
¶
Bases: UnsignedInteger
UInt8 data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
388 389 390 391 392 393 394 395 396 397 398 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
404 405 406 407 408 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
265 266 267 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
259 260 261 262 263 |
|
UnsignedInteger
¶
Bases: Integer
Unsigned integer number data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
388 389 390 391 392 393 394 395 396 397 398 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
404 405 406 407 408 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
265 266 267 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
259 260 261 262 263 |
|