refactor nkode_authentication_template.md

This commit is contained in:
2025-03-14 10:22:22 -05:00
parent 1162bd54e1
commit 41a7e14fb4
4 changed files with 454 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
# nKode Authentication
Play around with the code in [this](http://sesolgit/Repository/Blob/92a60227-4ef9-4196-8ebb-595581abf98c?encodedName=main&encodedPath=nkode_tutorial.ipynb) jupyter notebook.
# README
Play around with the code in /notebooks
## Customer Creation
Before creating a user, a customer generates random properties and set

View File

@@ -33,14 +33,15 @@ def render_nkode_authentication(data: dict):
env = Environment(loader=file_loader)
# Load the template
template = env.get_template('nkode_authentication_template.md')
template = env.get_template('readme_template.md')
print(os.getcwd())
# Render the template with the data
output = template.render(data)
# Print or save the output
output_file = os.path.expanduser("~/Desktop/nkode_authentication.md")
# output_file = os.path.expanduser("~/Desktop/nkode_authentication.md")
output_file = '../README.md'
with open(output_file, 'w') as fp:
fp.write(output)
print("File written successfully")