# SoftBank Robotics documentation What's new in NAOqi 2.8?

# qi.Module API

## Introduction

Modules allow you to organize your code. qi modules are pretty much like Python modules. Since everything in libqi is type-erased, you can load a module written in C++ from Python.

Note

Creating modules in Python is not yet supported.

## Prerequisite

You must create a qi.Application before using qi.module or it will most likely not work.

## Reference

### Example

    mymodule = qi.module("mymodule")

    myObj = mymodule.MyClass()
    mymodule.myFunction()

Glossary Site map Index Support Contact Legal Notices