ausaafnabi / ausaafnabi/ML-OverRPC-API
Implementing Better Solution for Template Generation
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
# Overview :
Currently using dictionaries to create codebase that fetches code according to the required dependency. The problem is to have a **more efficient solution** that can also be **capable of adding dynamic components** to the pre-coded template and make the code not to prone to errors.
## Current Implementation :
```
def Fetch_dependency(dep , dict = CODEBASE):
dependency = []
for i in dict[dep]:
dependency.append(dict[dep][i]['code'])
return dependency
###################################################
# This is Temporary fix of the solution
# In the future there will be need of re-visit this module
# MODIFICATIONS NEEDED :
# - Parameters
# - Search Schema
# - file handling
#################################################
def Renderer(filename,extention, filetype):
dep = Fetch_dependency(filetype)
file = filename + extention
with open(file,'w') as virtualcoder:
#for i in dep:
virtualcoder.writelines(dep)
```
## Current Ideas for implementing better solution :
- Implement Using databases
- Implement Using json with logic for dynamic data implementation
- Create hyper-parameters like model to seperate out the variables and dynamic data with the code.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.