13 lines
272 B
Python
13 lines
272 B
Python
from frozendict import frozendict
|
|
|
|
config = frozendict(host="localhost", port=8080)
|
|
print(config["host"])
|
|
|
|
|
|
permissions = {
|
|
frozendict(role="admin"): ["read", "write", "delete"],
|
|
frozendict(role="viewer"): ["read"],
|
|
}
|
|
|
|
print(permissions[frozendict(role="admin")])
|