Library Documentation
This is the documentation for the libraries available in PocketML.
Libraries
- math
Advanced mathematical functions, functions on
Number
s - either
Either type for errors etc.
- tea
Graphics framework inspired by TEA. Uses kivy and VDOM-diffing internally. Supports GUIs, canvas graphics & shaders
- image
A library for kivy textures. An
Img
is a kivy texture. Images can be loaded from disk or created programmatically. - shaders
Internally used for working with kivy glsl shaders
- parsing
A lark-based parser. Generated data compatible with a sum type of the form
data Expr = CapitalizedRuleName ... | ...
- maybe
Maybe type with monad implementation
- numpy
A library for using numpy in PocketML.
- string
Functions for working with the builtin
String
type. - sound
Library for kivys sound system.
- dict
Dictionaries with
String
-keys. Internally python dicts. - graphing
Plotting functions in 2D using the TEA framework. Generates a TEA-widget.
- calculus
Basic numeric calculus functions like differentiation, integration, series.
- list
A simple linked list implementation.
- ugraph
A simplistic Undirected graph.
- std
Imports lib.string, lib.maybe, lib.list, lib.util, lib.dict. Use for brevity.
- util
Util functions for the OS, kivy process, network and more.
- input
Simple binding for getting input from terminalout.