isogeo_pysdk.enums.keyword_casing module

Isogeo API v1 - Enums for Workgroup’s keywords casing

See: http://help.isogeo.com/api/complete/index.html#definition-workgroup

class isogeo_pysdk.enums.keyword_casing.KeywordCasing[source]

Bases: enum.Enum

Closed list of accepted Keyword casing in Isogeo API.

Example:
>>> # parse members and values
>>> print("{0:<30} {1:>20}".format("Enum", "Value"))
>>> for i in KeywordCasing:
>>>     print("{0:<30} {1:>20}".format(i, i.value))
Enum                                          Value
KeywordCasing.capitalized                         1
KeywordCasing.lowercase                           2
KeywordCasing.mixedcase                           3
KeywordCasing.uppercase                           4
>>> # check if a var is an accepted value
>>> print("capitalized" in KeywordCasing.__members__)
True
>>> print("Uppercase" in KeywordCasing.__members__)  # case sensitive
False
>>> print("initials" in KeywordCasing.__members__)
False

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

capitalized = 1
lowercase = 2
mixedcase = 3
uppercase = 4