def packages(self, name=None, memory=None, disk=None, swap=None,<EOL>version=None, vcpus=None, group=None):
params = {}<EOL>if name:<EOL><INDENT>params['<STR_LIT:name>'] = name<EOL><DEDENT>if memory:<EOL><INDENT>params['<STR_LIT>'] = memory<EOL><DEDENT>if disk:<EOL><INDENT>params['<STR_LIT>'] = disk<EOL><DEDENT>if swap:<EOL><INDENT>params['<STR_LIT>'] = swap<EOL><DEDENT>if version:<EOL><INDENT>params['<STR_LIT:version>'] = version<EOL><DEDENT>if vcpus:<EOL><INDENT>params['<STR_LIT>'] = vcpus<EOL><DEDENT>if group:<EOL><INDENT>params['<STR_LIT>'] = group<EOL><DEDENT>j, _ = self.request('<STR_LIT:GET>', '<STR_LIT>', params=params)<EOL>return j<EOL>
::

    GET /:login/packages

:param name: the label associated with the resource package
:type name: :py:class:`basestring`

:param memory: amount of RAM (in MiB) that the package provisions
:type memory: :py:class:`int`

:param disk: amount of disk storage (in MiB) the package provisions
:type disk: :py:class:`int`

:param swap: amount of swap (in MiB) the package provisions
:type swap: :py:class:`int`

:param version: the version identifier associated with the package
:type version: :py:class:`basestring`

:param vcpus: the number of virtual CPUs provisioned with the package
:type vcpus: :py:class:`int`

:param group: the group to which the package belongs
:type group: :py:class:`basestring`

:Returns: packages (machine "sizes", with resource types and values) 
    available in this datacenter.
:rtype: :py:class:`list` of :py:class:`dict`\s