1 # The Versatile IKE Control Interface (VICI) protocol #
3 The vici plugin implements the server side of an IPC protocol to configure,
4 monitor and control the IKE daemon charon. It uses request/response and event
5 messages to communicate over a reliable stream based transport.
7 ## Transport protocol ##
9 To provide the service, the plugin opens a listening socket using a reliable,
10 stream based transport. charon relies on the different stream service
11 abstractions provided by libstrongswan, such as TCP and UNIX sockets.
13 A client connects to this service to access functionality. It may send an
14 arbitrary number of packets over the connection before closing it.
16 To exchange data, the transport protocol is segmented into byte sequences.
17 Each byte sequence is prefixed by a 32-bit length header in network order,
18 followed by the data. The maximum segment length is currently limited to 512KB
19 of data, and the length field contains the length of the data only, not
20 including the length field itself.
22 The order of byte sequences must be strict, byte sequences must arrive in the
27 Within the byte sequences defined by the transport layer, both the client
28 and the server can exchange packets. The type of packet defines its structure
29 and purpose. The packet type is a 8-bit identifier, and is the first byte
30 in a transport layer byte sequence. The length of the packet is given by the
33 While a packet type may define the format of the wrapped data freely, currently
34 all types either contain a name, a message or both. The following packet types
35 are currently defined:
37 * _CMD_REQUEST = 0_: A named request message
38 * _CMD_RESPONSE = 1_: An unnamed response message for a request
39 * _CMD_UNKNOWN = 2_: An unnamed response if requested command is unknown
40 * _EVENT_REGISTER = 3_: A named event registration request
41 * _EVENT_UNREGISTER = 4_: A named event deregistration request
42 * _EVENT_CONFIRM = 5_: An unnamed response for successful event (de-)registration
43 * _EVENT_UNKNOWN = 6_: A unnamed response if event (de-)registration failed
44 * _EVENT = 7_: A named event message
46 For packets having a named type, after the packet type an 8-bit length header
47 of the name follows, indicating the string length in bytes of the name tag, not
48 including the length field itself. The name is an ASCII string that is not
51 The rest of the packet forms the exchanged message, the length is determined
52 by the transport byte sequence length, subtracting the packet type and
53 the optional name tag in some messages.
57 Commands are currently always requested by the client. The server replies with
58 a response, or with a CMD_UNKNOWN failure message to let the client know
59 that it does not have a handler for such a command. There is no sequence number
60 to associate responses to requests, so only one command can be active at
61 a time on a single connection.
65 To receive event messages, the client explicitly registers for events by name,
66 and also unregisters if it does not want to receive events of the named kind
67 anymore. The server confirms event registration using EVENT_CONFIRM, or
68 indicates that there is no such event source with EVENT_UNKNOWN.
70 Events may get raised at any time while registered, even during an active
71 request command. This mechanism is used to feed continuous data during a request,
76 The defined packet types optionally wrap a message with additional data.
77 Messages are currently used in CMD_REQUEST/CMD_RESPONSE, and in EVENT packets.
78 A message uses a hierarchial tree of sections. Each section (or the implicit
79 root section) contains an arbitrary set of key/value pairs, lists and
80 sub-sections. The length of a message is not part of the message itself, but
81 the wrapping layer, usually calculated from the transport byte sequence length.
83 The message encoding consists of a sequence of elements. Each element starts
84 with the element type, optionally followed by an element name and/or an element
85 value. Currently the following message element types are defined:
87 * _SECTION_START = 1_: Begin a new section having a name
88 * _SECTION_END = 2_: End a previously started section
89 * _KEY_VALUE = 3_: Define a value for a named key in the current section
90 * _LIST_START = 4_: Begin a named list for list items
91 * _LIST_ITEM = 5_: Define an unnamed item value in the current list
92 * _LIST_END = 6_: End a previously started list
94 Types are encoded as 8-bit values. Types having a name (SECTION_START,
95 KEY_VALUE and LIST_START) have an ASCII string following the type, which itself
96 uses an 8-bit length header. The string must not be null-terminated, the string
97 length does not include the length field itself.
99 Types having a value (KEY_VALUE and LIST_ITEM) have a raw blob sequence,
100 prefixed with a 16-bit network order length. The blob follows the type or the
101 name tag if available, the length defined by the length field does not include
102 the length field itself.
104 The interpretation of any value is not defined by the message format; it can
105 take arbitrary blobs. The application may specify types for specific keys, such
106 as strings or integer representations. The vici plugin currently uses
107 non-null terminated strings as values only; numbers get encoded as strings.
111 Sections may be opened in the implicit root section, or any previously section.
112 They can be nested to arbitrary levels. A SECTION_END marker always closes
113 the last opened section; SECTION_START and SECTION_END items must be balanced
118 Key/Value pair elements may appear in the implicit root section or any explicit
119 sub-section at any level. Key names must be unique in the current section, use
120 lists to define multiple values for a key. Key/values may not appear in lists,
121 use a sub-section instead.
125 Lists may appear at the same locations as Key/Values, and may not be nested.
126 Only a single list may be opened at the same time, and all lists must be closed
127 in valid messages. After opening a list, only list items may appear before the
128 list closing element. Empty lists are allowed, list items may appear within
131 ### Encoding example ###
133 Consider the following structure using pseudo-markup for this example:
140 list1 = [ item1, item2 ]
143 The example above reprensents a valid tree structure, that gets encoded as
144 the following C array:
148 3, 4,'k','e','y','1', 0,6,'v','a','l','u','e','1',
150 1, 8,'s','e','c','t','i','o','n','1',
152 1, 11,'s','u','b','-','s','e','c','t','i','o','n',
154 3, 4,'k','e','y','2', 0,6,'v','a','l','u','e','2',
155 /* sub-section end */
158 4, 5, 'l','i','s','t','1',
160 5, 0,5,'i','t','e','m','1',
162 5, 0,5,'i','t','e','m','2',
169 ## Client-initiated commands ##
171 Based on the packet layer, VICI implements commands requested by the client
172 and responded to by the server using named _CMD_REQUEST_ and _CMD_RESPONSE_
173 packets wrapping messages. The request message may contain command arguments,
174 the response message the reply.
176 Some commands use response streaming, that is, a request triggers a series of
177 events to consecutively stream data to the client before the response message
178 completes the stream. A client must register for the appropriate event to
179 receive the stream, and unregister after the response has been received.
181 The following client issued commands with the appropriate command input and
182 output messages are currently defined:
186 Returns daemon and system specific version information.
189 daemon = <IKE daemon name>
190 version = <strongSwan version>
191 sysname = <operating system name>
192 release = <operating system release>
193 machine = <hardware identifier>
198 Returns IKE daemon statistics and load information.
202 running = <relative uptime in human-readable form>
203 since = <absolute startup time>
206 total = <total number of worker threads>
207 idle = <worker threads currently idle>
209 critical = <threads processing "critical" priority jobs>
210 high = <threads processing "high" priority jobs>
211 medium = <threads processing "medium" priority jobs>
212 low = <threads processing "low" priority jobs>
216 critical = <jobs queued with "critical" priority>
217 high = <jobs queued with "high" priority>
218 medium = <jobs queued with "medium" priority>
219 low = <jobs queued with "low" priority>
221 scheduled = <number of jobs scheduled for timed execution>
223 total = <total number of IKE_SAs active>
224 half-open = <number of IKE_SAs in half-open state>
227 <names of loaded plugins>
229 mem = { # available if built with leak-detective or on Windows
230 total = <total heap memory usage in bytes>
231 allocs = <total heap allocation blocks>
232 <heap-name>* = { # on Windows only
233 total = <heap memory usage in bytes by this heap>
234 allocs = <allocated blocks for this heap>
237 mallinfo = { # available with mallinfo() support
238 sbrk = <non-mmaped space available>
239 mmap = <mmaped space available>
240 used = <total number of bytes used>
241 free = <available but unused bytes>
245 ### reload-settings() ###
247 Reloads _strongswan.conf_ settings and all plugins supporting configuration
251 success = <yes or no>
252 errmsg = <error string on failure>
257 Initiates an SA while streaming _control-log_ events.
260 child = <CHILD_SA configuration name to initiate>
261 timeout = <timeout in seconds before returning>
262 loglevel = <loglevel to issue "control-log" events for>
264 success = <yes or no>
265 errmsg = <error string on failure or timeout>
270 Terminates an SA while streaming _control-log_ events.
273 child = <terminate a CHILD_SA by configuration name>
274 ike = <terminate an IKE_SA by configuration name>
275 child_id = <terminate a CHILD_SA by its reqid>
276 ike_id = <terminate an IKE_SA by its unique id>
277 timeout = <timeout in seconds before returning>
278 loglevel = <loglevel to issue "control-log" events for>
280 success = <yes or no>
281 errmsg = <error string on failure or timeout>
286 Install a trap, drop or bypass policy defined by a CHILD_SA config.
289 child = <CHILD_SA configuration name to install>
291 success = <yes or no>
292 errmsg = <error string on failure>
297 Uninstall a trap, drop or bypass policy defined by a CHILD_SA config.
300 child = <CHILD_SA configuration name to install>
302 success = <yes or no>
303 errmsg = <error string on failure>
308 Lists currently active IKE_SAs and associated CHILD_SAs by streaming _list-sa_
312 noblock = <use non-blocking mode if key is set>
313 ike = <filter listed IKE_SAs by its name>
314 ike_id = <filter listed IKE_SA by its unique id>
316 # completes after streaming list-sa events
319 ### list-policies() ###
321 List currently installed trap, drop and bypass policies by streaming
322 _list-policy_ events.
325 drop = <set to yes to list drop policies>
326 pass = <set to yes to list bypass policies>
327 trap = <set to yes to list trap policies>
328 child = <filter by CHILD_SA configuration name>
330 # completes after streaming list-sa events
335 List currently loaded connections by streaming _list-conn_ events. This
336 call includes all connections known by the daemon, not only those loaded
340 ike = <list connections matching a given configuration name only>
342 # completes after streaming list-conn events
347 Return a list of connection names loaded exclusively over vici, not including
348 connections found in other backends.
352 <list of connection names>
358 List currently loaded certificates by streaming _list-cert_ events. This
359 call includes all certificates known by the daemon, not only those loaded
363 type = <certificate type to filter for, or ANY>
364 subject = <set to list only certificates having subject>
366 # completes after streaming list-cert events
369 ### list-authorities() ###
371 List currently loaded certification authority information by streaming
372 _list-authority_ events.
375 name = <list certification authority of a given name>
377 # completes after streaming list-authority events
380 ### get-authorities() ###
382 Return a list of currently loaded certification authority names.
386 <list of certification authority names>
392 Load a single connection definition into the daemon. An existing connection
393 with the same name gets updated or replaced.
396 <IKE_SA config name> = {
397 # IKE configuration parameters with authentication and CHILD_SA
398 # subsections. Refer to swanctl.conf(5) for details.
400 success = <yes or no>
401 errmsg = <error string on failure>
405 ### unload-conn() ###
407 Unload a previously loaded connection definition by name.
410 name = <IKE_SA config name>
412 success = <yes or no>
413 errmsg = <error string on failure>
418 Load a certificate into the daemon.
421 type = <certificate type, X509|X509CA|X509AA|X509CRL|X509AC>
422 data = <PEM or DER encoded certificate data>
424 success = <yes or no>
425 errmsg = <error string on failure>
430 Load a private key into the daemon.
433 type = <private key type, RSA|ECDSA>
434 data = <PEM or DER encoded key data>
436 success = <yes or no>
437 errmsg = <error string on failure>
440 ### load-shared() ###
442 Load a shared IKE PSK, EAP or XAuth secret into the daemon.
445 type = <private key type, IKE|EAP|XAUTH>
446 data = <raw shared key data>
448 <list of shared key owner identities>
451 success = <yes or no>
452 errmsg = <error string on failure>
455 ### clear-creds() ###
457 Clear all loaded certificate, private key and shared key credentials. This
458 affects only credentials loaded over vici, but additionally flushes the
462 success = <yes or no>
463 errmsg = <error string on failure>
466 ### load-authority() ###
468 Load a single certification authority definition into the daemon. An existing
469 authority with the same name gets replaced.
472 <certification authority name> = {
473 # certification authority parameters
474 # refer to swanctl.conf(5) for details.
476 success = <yes or no>
477 errmsg = <error string on failure>
481 ### unload-authority() ###
483 Unload a previously loaded certification authority definition by name.
486 name = <certification authority name>
488 success = <yes or no>
489 errmsg = <error string on failure>
494 Load an in-memory virtual IP and configuration attribute pool. Existing
495 pools with the same name get updated, if possible.
499 addrs = <subnet of virtual IP pool addresses>
500 <attribute type>* = [
501 # attribute type is one of address, dns, nbns, dhcp, netmask,
502 # server, subnet, split_include, split_exclude or a numerical
503 # attribute type identifier.
504 <list of attributes for type>
508 success = <yes or no>
509 errmsg = <error string on failure>
512 ### unload-pool() ###
514 Unload a previously loaded virtual IP and configuration attribute pool.
515 Unloading fails for pools with leases currently online.
518 name = <virtual IP address pool to delete>
520 success = <yes or no>
521 errmsg = <error string on failure>
526 List the currently loaded pools.
530 base = <virtual IP pool base address>
531 size = <total number of addresses in the pool>
532 online = <number of leases online>
533 offline = <number of leases offline>
537 ## Server-issued events ##
539 Based on the packet layer, the vici plugin raises event messages using named
540 EVENT packets wrapping messages. The message contains event details.
544 The _log_ event is issued to registered clients for each debug log message.
545 This event is not associated with a command.
548 group = <subsystem identifier for debug message>
549 level = <log level, 0-4>
550 thread = <numerical thread identifier issuing the log message>
551 ikesa-name = <name of IKE_SA, if log is associated with any>
552 ikesa-uniqued = <unique identifier of IKE_A, if log associated with any>
553 msg = <log message text>
558 The _control-log_ event is issued for log events during active _initiate_ or
559 _terminate_ commands. It is issued only to clients currently having such
563 group = <subsystem identifier for debug message>
564 level = <log level, 0-4>
565 ikesa-name = <name of IKE_SA, if log associated with any>
566 ikesa-uniqued = <unique identifier of IKE_A, if log associated with any>
567 msg = <log message text>
572 The _list-sa_ event is issued to stream IKE_SAs during an active _list-sas_
576 <IKE_SA config name> = {
577 uniqueid = <IKE_SA unique identifier>
578 version = <IKE version, 1 or 2>
579 state = <IKE_SA state name>
580 local-host = <local IKE endpoint address>
581 local-id = <local IKE identity>
582 remote-host = <remote IKE endpoint address>
583 remote-id = <remote IKE identity>
584 remote-xauth-id = <remote XAuth identity, if XAuth-authenticated>
585 remote-eap-id = <remote EAP identity, if EAP-authenticated>
586 initiator = <yes, if initiator of IKE_SA>
587 initiator-spi = <hex encoded initiator SPI / cookie>
588 responder-spi = <hex encoded responder SPI / cookie>
589 encr-alg = <IKE encryption algorithm string>
590 encr-keysize = <key size for encr-alg, if applicable>
591 integ-alg = <IKE integrity algorithm string>
592 integ-keysize = <key size for encr-alg, if applicable>
593 prf-alg = <IKE pseudo random function string>
594 dh-group = <IKE Diffie-Hellman group string>
595 established = <seconds the IKE_SA has been established>
596 rekey-time = <seconds before IKE_SA gets rekeyed>
597 reauth-time = <seconds before IKE_SA gets re-authenticated>
599 <list of currently queued tasks for execution>
602 <list of tasks currently initiating actively>
605 <list of tasks currently handling passively>
609 uniqueid = <unique CHILD_SA identifier>
610 reqid = <reqid of CHILD_SA>
611 state = <state string of CHILD_SA>
612 mode = <IPsec mode, tunnel|transport|beet>
613 protocol = <IPsec protocol AH|ESP>
614 encap = <yes if using UDP encapsulation>
615 spi-in = <hex encoded inbound SPI>
616 spi-out = <hex encoded outbound SPI>
617 cpi-in = <hex encoded inbound CPI, if using compression>
618 cpi-out = <hex encoded outbound CPI, if using compression>
619 encr-alg = <ESP encryption algorithm name, if any>
620 encr-keysize = <ESP encryption key size, if applicable>
621 integ-alg = <ESP or AH integrity algorithm name, if any>
622 integ-keysize = <ESP or AH integrity key size, if applicable>
623 prf-alg = <CHILD_SA pseudo random function name>
624 dh-group = <CHILD_SA PFS rekeying DH group name, if any>
625 esn = <1 if using extended sequence numbers>
626 bytes-in = <number of input bytes processed>
627 packets-in = <number of input packets processed>
628 use-in = <seconds since last inbound packet, if any>
629 bytes-out = <number of output bytes processed>
630 packets-out = <number of output packets processed>
631 use-out = <seconds since last outbound packet, if any>
632 rekey-time = <seconds before CHILD_SA gets rekeyed>
633 life-time = <seconds before CHILD_SA expires>
634 install-time = <seconds the CHILD_SA has been installed>
636 <list of local traffic selectors>
639 <list of remote traffic selectors>
648 The _list-policy_ event is issued to stream installed policies during an active
649 _list-policies_ command.
652 <child-sa-config-name> = {
653 mode = <policy mode, tunnel|transport|pass|drop>
655 <list of local traffic selectors>
658 <list of remote traffic selectors>
665 The _list-conn_ event is issued to stream loaded connection during an active
666 _list-conns_ command.
669 <IKE_SA connection name> = {
671 <list of valid local IKE endpoint addresses>
674 <list of valid remote IKE endpoint addresses>
676 version = <IKE version as string, IKEv1|IKEv2 or 0 for any>
678 local*, remote* = { # multiple local and remote auth sections
679 class = <authentication type>
680 eap-type = <EAP type to authenticate if when using EAP>
681 eap-vendor = <EAP vendor for type, if any>
682 xauth = <xauth backend name>
683 revocation = <revocation policy>
685 aaa_id = <AAA authentication backend identity>
686 eap_id = <EAP identity for authentication>
687 xauth_id = <XAuth username for authentication>
689 <group membership required to use connection>
692 <certificates allowed for authentication>
695 <CA certificates allowed for authentication>
699 <CHILD_SA config name>* = {
702 <list of local traffic selectors>
705 <list of remote traffic selectors>
714 The _list-cert_ event is issued to stream loaded certificates during an active
715 _list-certs_ command.
718 type = <certificate type>
719 has_privkey = <set if a private key for the certificate is available>
720 data = <ASN1 encoded certificate data>
723 ### list-authority ###
725 The _list-authority_ event is issued to stream loaded certification authority
726 information during an active_list-authorities_ command.
729 <certification authority name> = {
730 cacert = <subject distinguished name of CA certificate>
732 <CRL URI (http, ldap or file)>
737 cert_uri_base = <base URI for download of hash-and-URL certificates>
741 # libvici C client library #
743 libvici is the reference implementation of a C client library implementing
744 the vici protocol. It builds upon libstrongswan, but provides a stable API
745 to implement client applications in the C programming language. libvici uses
746 the libstrongswan thread pool to deliver event messages asynchronously.
748 ## Connecting to the daemon ##
750 This example shows how to connect to the daemon using the default URI, and
751 then perform proper cleanup:
759 int main(int argc, char *argv[])
765 conn = vici_connect(NULL);
769 vici_disconnect(conn);
774 fprintf(stderr, "connecting failed: %s\n", strerror(errno));
780 ## A simple client request ##
782 In the following example, a simple _version_ request is issued to the daemon
783 and the result is printed:
785 int get_version(vici_conn_t *conn)
791 req = vici_begin("version");
792 res = vici_submit(req, conn);
795 printf("%s %s (%s, %s, %s)\n",
796 vici_find_str(res, "", "daemon"),
797 vici_find_str(res, "", "version"),
798 vici_find_str(res, "", "sysname"),
799 vici_find_str(res, "", "release"),
800 vici_find_str(res, "", "machine"));
806 fprintf(stderr, "version request failed: %s\n", strerror(errno));
811 ## A request with event streaming and callback parsing ##
813 In this more advanced example, the _list-conns_ command is used to stream
814 loaded connections with the _list-conn_ event. The event message is parsed
815 with a simple callback to print the connection name:
817 int conn_cb(void *null, vici_res_t *res, char *name)
819 printf("%s\n", name);
823 void list_cb(void *null, char *name, vici_res_t *res)
825 if (vici_parse_cb(res, conn_cb, NULL, NULL, NULL) != 0)
827 fprintf(stderr, "parsing failed: %s\n", strerror(errno));
831 int list_conns(vici_conn_t *conn)
837 if (vici_register(conn, "list-conn", list_cb, NULL) == 0)
839 req = vici_begin("list-conns");
840 res = vici_submit(req, conn);
848 fprintf(stderr, "request failed: %s\n", strerror(errno));
850 vici_register(conn, "list-conn", NULL, NULL);
855 fprintf(stderr, "registration failed: %s\n", strerror(errno));
860 ## API documentation ##
862 More information about the libvici API is available in the _libvici.h_ header
863 file or the generated Doxygen documentation.
867 The _vici ruby gem_ is a pure ruby implementation of the VICI protocol to
868 implement client applications. It is provided in the _ruby_ subdirectory, and
869 gets built and installed if strongSwan has been _./configure_'d with
870 _--enable-vici_ and _--enable-ruby-gems_.
872 The _Connection_ class from the _Vici_ module provides the high level interface,
873 the underlying classes are usually not required to build ruby applications
874 using VICI. The _Connection_ class provides methods for the supported VICI
875 commands and an event listening mechanism.
877 To represent the VICI message data tree, the gem converts the binary encoding
878 to ruby data types. The _Connection_ class takes and returns ruby objects for
879 the exchanged message data:
880 * Sections get encoded as Hash, containing other sections as Hash, or
881 * Key/Values, where the values are Strings as Hash values
882 * Lists get encoded as Arrays with String values
883 Non-String values that are not a Hash nor an Array get converted with .to_s
886 ## Connecting to the daemon ##
888 To create a connection to the daemon, a socket can be passed to the
889 _Connection_ constructor. If none is passed, a default Unix socket at
890 _/var/run/charon.vici_ is used:
895 v = Vici::Connection.new(UNIXSocket.new("/var/run/charon.vici"))
897 ## A simple client request ##
899 An example to print the daemon version information is as simple as:
902 puts "%s %s (%s, %s, %s)" % [
903 x["daemon"], x["version"], x["sysname"], x["release"], x["machine"]
906 ## A request with closure invocation ##
908 The _Connection_ class takes care of event streaming by invoking a closure
909 for each event. The following example lists all loaded connections using the
910 _list-conns_ command and implicitly the _list-conn_ event:
912 v.list_conns { |conn|
913 conn.each { |key, value|
918 ## API documentation ##
920 For more details about the ruby gem refer to the comments in the gem source
921 code or the generated documentation.
925 The _vici Python egg_ is a pure Python implementation of the VICI protocol to
926 implement client applications. It is provided in the _python_ subdirectory, and
927 gets built and installed if strongSwan has been _./configure_'d with
928 _--enable-vici_ and _--enable-python-eggs_.
930 The _vici_ module provides a _Session()_ constructor for a high level interface,
931 the underlying classes are usually not required to build Python applications
932 using VICI. The _Session_ class provides methods for the supported VICI
935 To represent the VICI message data tree, the library converts the binary
936 encoding to Python data types. The _Session_ class takes and returns Python
937 objects for the exchanged message data:
938 * Sections get encoded as OrderedDict, containing other sections, or
939 * Key/Values, where the values are strings as dictionary values
940 * Lists get encoded as Python Lists with string values
941 Values that do not conform to Python dict or list get converted to strings using
944 ## Connecting to the daemon ##
946 To create a connection to the daemon, a socket can be passed to the _Session_
947 constructor. If none is passed, a default Unix socket at _/var/run/charon.vici_
953 s = socket.socket(socket.AF_UNIX)
954 s.connect("/var/run/charon.vici")
957 ## A simple client request ##
959 An example to print the daemon version information is as simple as:
963 print "{daemon} {version} ({sysname}, {release}, {machine})".format(**ver)
965 ## A request with response iteration ##
967 The _Session_ class returns an iterable Python generator for streamed events to
968 continuously stream objects to the caller. The following example lists all
969 loaded connections using the _list-conns_ command and implicitly the _list-conn_
972 for conn in v.list_conns():
976 Please note that if the returned generator is not iterated completely, it must
977 be closed using _close()_. This is implicitly done when breaking from a loop,
978 but an explicit call may be required when directly iterating the generator with
981 ## Sorting in dictionaries ##
983 In VICI, in some message trees the order of objects in dictionary matters. In
984 contrast to ruby Hashes, Python dictionaries do not preserve order of added
985 objects. It is therefore recommended to use OrderedDicts instead of the default
986 dictionaries. Objects returned by the library use OrderedDicts.
988 ## API documentation ##
990 For more details about the Python egg refer to the comments in the Python source