Skip to content

Commit

Permalink
change example, clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
Joaopeuko committed Apr 23, 2024
1 parent c412325 commit 33bfa53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions examples/examples.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from secured.attribute import AttrDict
from secured.secured import Secured

secured = Secured('examples/config-secrets.yaml', secure=True, message="<Custom Secured>")
message = "🔒 <Data Secured> 🔒"
secured = Secured('examples/config-secrets.yaml', secure=True, message=message)

print(secured.config_secrets.name)
print(secured.config_secrets["name"])

ad = AttrDict(secure=True, message="<Custom Secured>")
ad = AttrDict(secure=True, message=message)
ad['password'] = 'my_secret'
print((ad.password))
print((ad['password']))
2 changes: 1 addition & 1 deletion secured/attribute.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Dict, TypeVar, Union
from typing import Any, TypeVar, Union
from .secure import Secure

# A type variable that can be any type.
Expand Down

0 comments on commit 33bfa53

Please sign in to comment.