#!/usr/bin/env python

import os
import json
import pyfwk
import pyfi

fm = pyfwk.FileManager.instance()
fm.set_root(os.path.dirname(os.path.dirname(__file__)))

"""
The first time the following statement is run, the entity module will attempt to
create the sqlite database and populate with tables. Your project directory will
need to be writeable for this to occur. Please be patient.
"""

entity = pyfi.Entity(1123)
print(json.dumps(entity.dict(), indent=4, sort_keys=True, separators=(',', ': ')))
