Your first EasyMoDD script

This example follows the package's current FileManager and TokenManager usage documented in the project.

Use the file and token utilities

from EasyModel import FileManager, TokenManager

files = FileManager(".")
print(files.list())

tokens = TokenManager()
token = tokens.issue("user1")
print(tokens.verify(token))

Run this in a Python file from the directory you want the file manager to use. The token shown here is an example; review the token guide before using tokens in an application.

PreviousNext