appNGizer ModuleΒΆ
The main purpose of python-appngizer is to offer an easy way to implement python applications which should administer and interact with an appNG instance via the appNGizer REST webapplication.
To do this the
appngizer.elements.Element.xmlattribute helds the xml representation of the entity as anlxml.etree.Element.CRUD methods on the entity are done via the
appngizer.client.XMLClientwhere theappngizer.elements.Element.xmlattribute is added to the data of the HTTP/S request if needed (usually in a PUT/POST request).There also container elements where appNG entities of the same entity type are held. Currently they are only usable for read operations (f.e. read all available Sites) but can be the start point for further improvements like bulk operatios.
PropertiesSitesRepositoriesApplicationsPackagesSubjectsGroupsRolesPermissionsDatabasesTo address an appNG entity we use their
appngizer.elements.Element.nameattribute, the entity type nameappngizer.elements.Element.TYPEand theirappngizer.elements.Element.parentsattribute.Examples:
Site entity ‘an_appng_site’:
Site('an_appng_site')Site application property ‘a_site_app_property’:
Property('a_site_app_property', parents=[ Site('an_appng_site') , Application('an_app') ] )