IC Standard Library
ic is a reserved keyword and the entry-point to the IC Standard
Library which comes with IC CLI.
from ic import util
See also the IC Standard Library for more information.
.ic file inside the current brick folder (where the
file is located) and sub-folders can be imported by any other local
.ic files. However, you cannot escape from the folder containing the
brick.yaml file and go up in the file system.
from . import foo
- If an
index.icfile exists in the current folder, then it is imported and the
foosymbol is loaded.
- Otherwise, a
foo.icfile is imported and the
foovariable refers to all symbols inside
from .bar import baz
- If a
bar.icfile exists in the current folder, then it is imported and the
bazsymbol is loaded.
- If a
barfolder exists in the current folder, then the
bar/index.icfile is imported.
- If both a
bar.icfile and a
barfolder exist, then the
IC Public Index
Anything that is not
ic nor local is imported from the IC Public
If you don't specify any version inside the
brick.yaml file, then the
latest version is automatically requested and downloaded from the
IC Public Index. The
brick.yaml file is also updated accordingly.
from jdoe import hello_world
See also the Dependency Management guide for more information.