Skip to content

Commit 3c1845d

Browse files
0xFirestormShahmir-Siddiquijsong468romanlutz
authored
FEAT: Replaced GPL/LGPL licensed dependencies with permissive alternate dependencies (microsoft#1125)
Co-authored-by: Shahmir Siddiqui <shahmir@datasciencedojo.com> Co-authored-by: jsong468 <songjustin@microsoft.com> Co-authored-by: Roman Lutz <romanlutz13@gmail.com>
1 parent dbaa7ce commit 3c1845d

10 files changed

Lines changed: 1251 additions & 79 deletions

File tree

doc/code/converters/pdf_converter.ipynb

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@
3535
"name": "stdout",
3636
"output_type": "stream",
3737
"text": [
38-
"{'__type__': 'TextTarget', '__module__': 'pyrit.prompt_target.text_target'}: user: /workspace/dbdata/prompt-memory-entries/urls/1754517828935102.pdf\n"
38+
"{'__type__': 'TextTarget', '__module__': 'pyrit.prompt_target.text_target'}: user: /workspace/dbdata/prompt-memory-entries/urls/1761596318711065.pdf\n"
3939
]
4040
},
4141
{
4242
"name": "stderr",
4343
"output_type": "stream",
4444
"text": [
45-
"[PromptSendingAttack (ID: 250ef57d)] No response received on attempt 1 (likely filtered)\n"
45+
"[PromptSendingAttack (ID: 075ff944)] No response received on attempt 1 (likely filtered)\n"
4646
]
4747
},
4848
{
@@ -59,7 +59,7 @@
5959
"\u001b[37m coffee', 'applicant_name': 'John Smith'}\u001b[0m\n",
6060
"\n",
6161
"\u001b[36m Converted:\u001b[0m\n",
62-
"\u001b[37m /workspace/dbdata/prompt-memory-entries/urls/1754517828935102.pdf\u001b[0m\n",
62+
"\u001b[37m /workspace/dbdata/prompt-memory-entries/urls/1761596318711065.pdf\u001b[0m\n",
6363
"\n",
6464
"\u001b[34m────────────────────────────────────────────────────────────────────────────────────────────────────\u001b[0m\n"
6565
]
@@ -151,14 +151,14 @@
151151
"name": "stdout",
152152
"output_type": "stream",
153153
"text": [
154-
"{'__type__': 'TextTarget', '__module__': 'pyrit.prompt_target.text_target'}: user: /workspace/dbdata/prompt-memory-entries/urls/1754517829275758.pdf\n"
154+
"{'__type__': 'TextTarget', '__module__': 'pyrit.prompt_target.text_target'}: user: /workspace/dbdata/prompt-memory-entries/urls/1761600511348011.pdf\n"
155155
]
156156
},
157157
{
158158
"name": "stderr",
159159
"output_type": "stream",
160160
"text": [
161-
"[PromptSendingAttack (ID: 7fc0351e)] No response received on attempt 1 (likely filtered)\n"
161+
"[PromptSendingAttack (ID: 45e822c2)] No response received on attempt 1 (likely filtered)\n"
162162
]
163163
},
164164
{
@@ -173,7 +173,7 @@
173173
"\u001b[37m This is a simple test string for PDF generation. No templates here!\u001b[0m\n",
174174
"\n",
175175
"\u001b[36m Converted:\u001b[0m\n",
176-
"\u001b[37m /workspace/dbdata/prompt-memory-entries/urls/1754517829275758.pdf\u001b[0m\n",
176+
"\u001b[37m /workspace/dbdata/prompt-memory-entries/urls/1761600511348011.pdf\u001b[0m\n",
177177
"\n",
178178
"\u001b[34m────────────────────────────────────────────────────────────────────────────────────────────────────\u001b[0m\n"
179179
]
@@ -233,17 +233,17 @@
233233
"name": "stdout",
234234
"output_type": "stream",
235235
"text": [
236-
"[22:03:49][641][ai-red-team][INFO][Processing page 0 with 2 injection items.]\n",
237-
"[22:03:49][656][ai-red-team][INFO][Processing page 1 with 2 injection items.]\n",
238-
"[22:03:49][666][ai-red-team][INFO][Processing page 2 with 2 injection items.]\n",
239-
"{'__type__': 'TextTarget', '__module__': 'pyrit.prompt_target.text_target'}: user: /workspace/dbdata/prompt-memory-entries/urls/1754517829671523.pdf\n"
236+
"[21:29:10][402][ai-red-team][INFO][Processing page 0 with 2 injection items.]\n",
237+
"[21:29:10][422][ai-red-team][INFO][Processing page 1 with 2 injection items.]\n",
238+
"[21:29:10][426][ai-red-team][INFO][Processing page 2 with 2 injection items.]\n",
239+
"{'__type__': 'TextTarget', '__module__': 'pyrit.prompt_target.text_target'}: user: /workspace/dbdata/prompt-memory-entries/urls/1761600550429110.pdf\n"
240240
]
241241
},
242242
{
243243
"name": "stderr",
244244
"output_type": "stream",
245245
"text": [
246-
"[PromptSendingAttack (ID: 287d48da)] No response received on attempt 1 (likely filtered)\n"
246+
"[PromptSendingAttack (ID: e08852bc)] No response received on attempt 1 (likely filtered)\n"
247247
]
248248
},
249249
{
@@ -258,7 +258,7 @@
258258
"\u001b[37m This is a simple test string for PDF generation. No templates here!\u001b[0m\n",
259259
"\n",
260260
"\u001b[36m Converted:\u001b[0m\n",
261-
"\u001b[37m /workspace/dbdata/prompt-memory-entries/urls/1754517829671523.pdf\u001b[0m\n",
261+
"\u001b[37m /workspace/dbdata/prompt-memory-entries/urls/1761600550429110.pdf\u001b[0m\n",
262262
"\n",
263263
"\u001b[34m────────────────────────────────────────────────────────────────────────────────────────────────────\u001b[0m\n"
264264
]
@@ -341,6 +341,14 @@
341341
"result = await attack.execute_async(objective=prompt) # type: ignore\n",
342342
"await ConsoleAttackResultPrinter().print_conversation_async(result=result) # type: ignore"
343343
]
344+
},
345+
{
346+
"cell_type": "code",
347+
"execution_count": null,
348+
"id": "6",
349+
"metadata": {},
350+
"outputs": [],
351+
"source": []
344352
}
345353
],
346354
"metadata": {
@@ -357,7 +365,7 @@
357365
"name": "python",
358366
"nbconvert_exporter": "python",
359367
"pygments_lexer": "ipython3",
360-
"version": "3.11.11"
368+
"version": "3.11.13"
361369
}
362370
},
363371
"nbformat": 4,

pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ classifiers = [
2626
]
2727
requires-python = ">=3.10, <3.14"
2828
dependencies = [
29-
"aioconsole>=0.8.1",
3029
"aiofiles>=24,<25",
3130
"appdirs>=1.4.0",
3231
"art>=6.5.0",
@@ -40,19 +39,17 @@ dependencies = [
4039
"confusable-homoglyphs>=3.3.1",
4140
"ecoji>=0.1.1",
4241
"datasets>=3.6.0",
43-
"fpdf2>=2.8.3",
4442
"httpx[http2]>=0.27.2",
4543
"jinja2>=3.1.6",
46-
"krippendorff>=0.8.1",
4744
"numpy>=1.26.0",
4845
"openai>=1.58.1",
4946
"openpyxl>=3.1.5",
5047
"pillow>=11.2.1",
5148
"pydantic>=2.11.5",
5249
"pyodbc>=5.1.0",
53-
"pycountry>=24.6.1",
5450
"python-dotenv>=1.0.1",
5551
"pypdf>=5.1.0",
52+
"reportlab>=4.4.4",
5653
"segno>=1.6.6",
5754
"scipy>=1.15.3",
5855
"SQLAlchemy>=2.0.41",

0 commit comments

Comments
 (0)