The Python implementation of MistQL can be installed via
pip install mistql.
import mistql length = mistql.query('count @', [1, 2, 3])print(length)
mistql package exports#
|The query interface for MistQL|
|The current version of MistQL installed|
Separate from the specification of the language, the python implementation maps from
Python types to MistQL types in a specific manner, as documented by the table below. As
the following is NOT part of the language, rather the library, the correspondence
may change with further releases of the
mistql package, following semver.
Note that this is generally very restrictive in what it allows, but can be easily expanded as necessary. For examples, iterables as a whole may, outside of specific cases, be casted directly to MistQL array types.
If this correspondence doesn't work for you for some reason, please open an issue and describe the situation carefully. This correspondence is easier to change than the language itself.
|Infinity and NaN casted to |