The Standard Library
The standard library is a collection of modules built into the Pyro binary.
All standard library modules are submodules of the root module std
.
import std::math; assert math::abs(-1) == 1;
Standard Library Modules
- args
-
A library for parsing command line arguments.
- base64
-
Functions for encoding and decoding base64.
- cmd
-
Convenience functions for running common system binaries.
- curl
-
A library for making HTTP requests using
curl
. - cgi
-
A utility module for writing CGI scripts in Pyro.
- constants
-
Useful constants.
- csrng
-
Utilities for generating cryptographically-secure random numbers.
- fs
-
File system utilities.
- html
-
Utility functions for working with HTML.
- json
-
Utility functions for working with JSON.
- log
-
A simple logging library.
- math
-
Mathematical functions.
- pretty
-
Support for pretty-printing.
- prng
-
Utilities for generating pseudo-random numbers.
- pyro
-
A utility module for interacting with the Pyro VM.
- sendmail
-
A utility module for sending email.
- url
-
A utility module for handling URLs.