Skip to content

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Global-Enum

Create groups of global constants that behave like Enums

from global_enum import define_enum, StrEnum

with define_enum(__name__, StrEnum) as e:
    FIELD1 = e.f() # 
    FIELD2 = e.f()
    FIELD3 = e.f()

print(FIELD1)
print(repr(FIELD1))

# output:
# field1
# your_module.FIELD1

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages