---
title: Module
order: 10
description: "A magus stdlib namespace a magusfile imports for host capabilities: filesystem, exec, vcs, and more."
tags: [glossary, core-model]
---

# Module

A magus stdlib namespace a magusfile imports for host capabilities: filesystem,
exec, vcs, and more.

## Elsewhere

A Go module is a versioned set of packages declared by `go.mod`; a JavaScript module is one
file with its imports and exports; a Python module is one `.py` file. A magus module is a
host namespace a Buzz script imports for a capability such as `fs`, `vcs` or `magus`.

## Example

```buzz
import "std";
import "fs";

fun main(args: [str]) > void !> any {
    foreach (p in fs\glob("*.md")) { std\print(p.value); }
}
```

`magus describe module fs` lists every method the module has.

## Used in

<!-- BEGIN GLOSSARY USAGE (generated by glossary-usage-generate from the knowledge graph; edit the generator, not this list) -->

In the docs:

- [Release one module](../guides/releasing.md#release-one-module)
- [The assert module](../guides/testing.md#the-assert-module)
- [Magusfile Module Reference](../reference/buzz/index.md#magusfile-module-reference)

In the code (`magus refs <name>` lists every site):

- `langservice.Module` (Go)
- `std.Module` (Go)
- `gopherbuzz.Module` (Go)
- `scipbuzz.module` (Go)
- `debug.Module` (Go)

<!-- END GLOSSARY USAGE -->

## See also

- [magus stdlib](../reference/buzz/index.md)
- [Buzz](buzz.md)
