Text Conventions

Very often some concepts discussed in Ivy here, and especially those involving modules and dependencies, require to be discussed by text (e-mail, textual doc, console, …​), and so benefit from convention in this area.

The conventions have been adopted with Ivy 2.0 are the following:

what pattern example

a module without revision



a module with revision



a module with (some) configurations



a module with revision and (some) configurations



a module’s artifact



a module’s artifact with revision



Another usual text representation used is to represent dependencies using a dash followed by greater than sign: ->

To group a set of set of modules, we recommend using curly braces { }.

With these conventions, it’s easy to give a concise and detailed overview of a set of modules and their dependencies.

For instance:

#A;2-> { #B;[1.0,1.5] #C;[2.0,2.5] }

In full words here is how it could be written:

module A revision 2 depends on module B with the version constraint [1.0,1.5], and on module C with the version constraint [2.0,2.5].
module B revision 1.4 depends on module D revision 1.5.
module B revision 1.5 depends on module D revision 2.0.
module C revision 2.5 depends on module D with the version constraint [1.0,1.6].

As you can see, using text conventions is much more concise.

Another benefit is that these conventions are usually used in Ivy console output, and can also be used in some cases to be parsed into Ivy objects (we use it for test cases, for instance). To make sure text parsing works fine, we recommend using only a limited range of characters for each attributes of your module identifiers.

Here is the recommended characters set for each attribute:


a-z A-Z 0-9 - / . _ + =


a-z A-Z 0-9 - / . _ + =


a-z A-Z 0-9 - / . _ + =


a-z A-Z 0-9 - / . _ + = , [ ] { } ( ) : @


a-z A-Z 0-9 - / . _ + =


a-z A-Z 0-9 - / . _ + =


a-z A-Z 0-9 - / . _ + =