isogeo_pysdk.enums.contact_roles module

Isogeo API v1 - Enums for ResourceContact entity accepted roles

See: http://help.isogeo.com/api/complete/index.html#/definitions/resourceContact

class isogeo_pysdk.enums.contact_roles.ContactRoles[source]

Bases: enum.Enum

Closed list of accepted Contact roles in Isogeo API.

Example:
>>> # parse members and values
>>> print("{0:<30} {1:>20}".format("Enum", "Value"))
>>> for role in ContactRoles:
>>>     print("{0:<30} {1:>20}".format(role, role.value))
Enum                                          Value
ContactRoles.author                          author
ContactRoles.pointOfContact          pointOfContact
...
>>> # check if a var is an accepted value
>>> print("author" in ContactRoles.__members__)
True
>>> print("Author" in ContactRoles.__members__)  # case sensitive
False
>>> print("follower" in ContactRoles.__members__)
False

See: https://docs.python.org/3/library/enum.html

author = 'author'
custodian = 'custodian'
distributor = 'distributor'
originator = 'originator'
owner = 'owner'
pointOfContact = 'pointOfContact'
principalInvestigator = 'principalInvestigator'
processor = 'processor'
publisher = 'publisher'
resourceProvider = 'resourceProvider'
user = 'user'