Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
037c0d7
updating the path of uvicorn
parvesh-garg Oct 8, 2024
1eb26e0
Kfs related api
parvesh-garg Oct 9, 2024
fd3aa5e
moving form posting to json
parvesh-garg Oct 9, 2024
c23704a
adding api to take custom file name
parvesh-garg Oct 10, 2024
0bc972e
adding docx for DSP lender
parvesh-garg Oct 11, 2024
44e775b
update docx
parvesh-garg Oct 11, 2024
2b326a0
adding try catch blocks
parvesh-garg Oct 14, 2024
0f9e641
giving access for files
parvesh-garg Oct 14, 2024
73cd3f8
removing chmod
parvesh-garg Oct 14, 2024
1733dd7
removing saving of pdf in files
parvesh-garg Oct 14, 2024
1cffc28
adding debugging conditions
parvesh-garg Oct 14, 2024
84196c5
api changes improvements
parvesh-garg Oct 14, 2024
95462d7
api changes improvements
parvesh-garg Oct 14, 2024
dbf0b02
DSP loan kit template updated
parvesh-garg Oct 16, 2024
1b3be89
DSP loan kit template updated
parvesh-garg Oct 16, 2024
051c4f6
Adding posidex report
parvesh-garg Nov 8, 2024
6e2e537
Added tata posidex report
parvesh-garg Nov 8, 2024
8b7f233
updated file
parvesh-garg Nov 8, 2024
3be6a96
updated the tata kfs docx
parvesh-garg Nov 11, 2024
3bec511
API enhancement : now image placeholder support to render
parvesh-garg Nov 12, 2024
aecfddb
added updated Agreement template
parvesh-garg Nov 18, 2024
e7dcbcb
adding posidex v2 file
parvesh-garg Nov 21, 2024
02a274b
updating posidex report
parvesh-garg Nov 21, 2024
5c05f99
updating tata posidex report
parvesh-garg Nov 21, 2024
5b847db
adding Tata_App_Form_Template file
parvesh-garg Nov 26, 2024
f02d96f
adding tata agreement template
parvesh-garg Nov 26, 2024
1477663
updating tata documents
parvesh-garg Nov 27, 2024
69fda58
Add files via upload
harshitaagrawal12 Dec 4, 2024
8daf621
adding dsp agreement file
parvesh-garg Dec 9, 2024
ff01ebc
updating agreement
parvesh-garg Dec 9, 2024
a99b12f
updating dsp agreement
parvesh-garg Dec 10, 2024
879260b
updating agreement
parvesh-garg Dec 10, 2024
7e7e745
add document template
pankaj-volt Dec 11, 2024
719edef
aggrement dsp file
pankaj-volt Dec 11, 2024
41680ca
fix dsp template
pankaj-volt Dec 11, 2024
f60cae3
template changes for monetary values
KarthikNannepamula Jan 3, 2025
35900fc
Add files via upload
KarthikNannepamula Jan 9, 2025
6acbd7a
new template for agreement repayment date fix
KarthikNannepamula Jan 9, 2025
9adf8ea
added new templates for tata agreement & kfs
RishiPrasanthVolt Feb 6, 2025
15a0ec5
Merge pull request #1 from VOLTMoney/tata-new-agreement-kfs
parvesh-garg Feb 6, 2025
f3dcb7c
tata agreement changed templates
RishiPrasanthVolt Feb 6, 2025
309b88c
Merge pull request #2 from VOLTMoney/changed-documents
RishiPrasanthVolt Feb 6, 2025
6735e71
changed enhancement doc
RishiPrasanthVolt Feb 6, 2025
40a52ec
Merge pull request #3 from VOLTMoney/enhancement-change
RishiPrasanthVolt Feb 6, 2025
829049c
Add files via upload
harshitaagrawal12 Feb 11, 2025
5740688
Cleaning up memory, storing in temporary memory block (#4)
parvesh-garg Mar 20, 2025
3dd35f6
logs clean up and cron for clean in last 7 days (#5)
parvesh-garg Mar 20, 2025
75ca3a0
updating the docker image (#6)
parvesh-garg Mar 20, 2025
f347fe4
FLSP-556 Add KFS template Document (#7)
Rmk190999 May 15, 2025
be4d349
Amc Changes Test Template for Kfs v2 (#9)
KarthikNannepamula Jun 12, 2025
cf3b2e1
Amc Charges Test Template (#8)
KarthikNannepamula Jun 12, 2025
2cca0a7
Agreement and Kfs Template Changes for AMC (#10)
KarthikNannepamula Jul 8, 2025
215b091
Add files via upload (#11)
KarthikNannepamula Jul 15, 2025
e608218
Add files via upload (#12)
KarthikNannepamula Jul 16, 2025
6761406
Revert "Add files via upload (#12)" (#13)
KarthikNannepamula Jul 16, 2025
3d5c7af
Add files via upload (#15)
KarthikNannepamula Jul 16, 2025
19119b6
removed and added files (#16)
KarthikNannepamula Jul 16, 2025
d4ec4ec
Alignment-Fix (#17)
KarthikNannepamula Jul 16, 2025
3cd468d
Added: KFS Term Loan Template (#18)
akshat-sachan01 Jul 25, 2025
8319631
Added: KFS term loan template (#20)
akshat-sachan01 Jul 25, 2025
529ecf6
Kfs term loans template (#21)
akshat-sachan01 Jul 31, 2025
769e078
KFS Termloan (#23)
akshat-sachan01 Jul 31, 2025
2f51364
TermLoan kFS Doc (#25)
akshat-sachan01 Aug 1, 2025
472334d
Kfs doc (#26)
akshat-sachan01 Aug 1, 2025
9f4caa5
Kfs template test (#27)
akshat-sachan01 Aug 4, 2025
fdd91be
Add Documents for Recovery Agent Changes (#29)
manav-volt Sep 8, 2025
427f347
Update template phone pe recovery agent variables (#30)
manav-volt Sep 9, 2025
9bca086
Add parallel processing functionality to document templating service
sohamsahajwanivolt Oct 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ __pycache__
venv
.env
.vscode
.DS_Store
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions .idea/aws.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 27 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,39 @@
FROM python:3.8.13-slim-buster

# Set working directory
WORKDIR /code

# Install dependencies & clean up cache
RUN apt-get update && apt-get install -y logrotate && rm -rf /var/lib/apt/lists/*

# Create a virtual environment
RUN python -m venv venv
ENV PATH="venv/bin:$PATH"
ENV GOTENBERG_API_URL=http://host.docker.internal:3000

COPY ./requirements.txt /code/requirements.txt
# Set environment variable for Gotenberg
ENV GOTENBERG_API_URL=http://gotenberg:3000

RUN pip install --no-warn-script-location \
--no-cache-dir --upgrade -r /code/requirements.txt
# Copy and install dependencies
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-warn-script-location --no-cache-dir --upgrade -r /code/requirements.txt

# Copy application files
COPY . /code

CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
# Set up log rotation
RUN echo "/code/temp/*.log { \n\
daily \n\
rotate 7 \n\
compress \n\
missingok \n\
notifempty \n\
}" > /etc/logrotate.d/app_logs

# Automatically clean up old temp files on container start
RUN echo '#!/bin/sh\nrm -rf /code/temp/*' > /cleanup.sh && chmod +x /cleanup.sh

# Expose port
EXPOSE 4532

# If running behind a proxy like Nginx or Traefik add --proxy-headers
# CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--proxy-headers"]
# Start the application
CMD ["sh", "-c", "/cleanup.sh && exec venv/bin/uvicorn main:app --host 0.0.0.0 --port 4532"]
11 changes: 11 additions & 0 deletions document-templating-service.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/venv" />
</content>
<orderEntry type="jdk" jdkName="Python 3.9 (document-templating-service)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
Binary file not shown.
Binary file added docx-template/Final_Agreement_09th_Sept.docx
Binary file not shown.
Binary file not shown.
Binary file added docx-template/Final_Agreement_11th_Feb_Prod.docx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docx-template/Final_Agreement_3rd_January.docx
Binary file not shown.
Binary file not shown.
Binary file added docx-template/Final_Agreement_9th_December.docx
Binary file not shown.
Binary file added docx-template/Final_Agreement_9th_January.docx
Binary file not shown.
Binary file not shown.
Binary file added docx-template/Final_KFS_Template_09th_Sept.docx
Binary file not shown.
Binary file not shown.
Binary file added docx-template/KFS_TermLoan-test.docx
Binary file not shown.
Binary file added docx-template/KFS_TermLoan_31_July.docx
Binary file not shown.
Binary file added docx-template/KFS_TermLoan_31st_July.docx
Binary file not shown.
Binary file added docx-template/KFS_template_Document.docx
Binary file not shown.
Binary file not shown.
Binary file added docx-template/Sample_Testing.docx
Binary file not shown.
Binary file added docx-template/Tata_Agreement_Template.docx
Binary file not shown.
Binary file added docx-template/Tata_Agreement_Template_v2.docx
Binary file not shown.
Binary file added docx-template/Tata_App_Form_Template.docx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docx-template/Tata_KFS_Review_Template.docx
Binary file not shown.
Binary file added docx-template/Tata_KFS_Review_Template_v2.docx
Binary file not shown.
Binary file added docx-template/UpdatedAgreementTemplate.docx
Binary file not shown.
Binary file added docx-template/tata_posidex_report.docx
Binary file not shown.
Binary file added docx-template/tata_posidex_report_v2.docx
Binary file not shown.
Loading