Smarter Enumeration Classes

class smarter.common.enum.SmarterEnumAbstract(new_class_name, /, names, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

Smarter enumeration helper class.

classmethod all()[source]

Return a list of all enumeration values.

Return type:

list[str]

classmethod all_slugs()[source]

Return a list of all enumeration slugs (singular and plural).

classmethod from_url(url)[source]

Extract the manifest kind from a URL.

example:

http://localhost:9357/api/v1/cli/example_manifest/Account/
http://platform.smarter.sh/api/v1/cli/whoami/
Return type:

Optional[str]

classmethod list_all()[source]

Return a comma-separated string of all enumeration values.

Return type:

str

classmethod plural_slugs()[source]

Return a list of plural enumeration slugs.

classmethod singular_slugs()[source]

Return a list of singular enumeration slugs.