from perm-banana import Permission, Check, banana
@banana
class MyPermission(Permission)
can_read_messages = Check(Permission(0b1))
can_write_messages = Check(Permission(0b10))
basic_user = can_read_message | can_write_messages
user = MyPermission(0b11)
if user.basic_user:
print("permission granted")
else:
print("permission denied")
-
-
Notifications
You must be signed in to change notification settings - Fork 0
License
IsaiahASmith/perm-banana
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published