endoreg-db 0.4.1__py3-none-any.whl → 0.4.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of endoreg-db might be problematic. Click here for more details.
- endoreg_db/migrations/0005_uploadedfile_alter_rawpdffile_file_anonymizedfile.py +40 -0
- endoreg_db/models/__init__.py +2 -5
- endoreg_db/models/annotation/__init__.py +1 -1
- endoreg_db/models/annotation/anonymized_image_annotation.py +19 -0
- {endoreg_db-0.4.1.dist-info → endoreg_db-0.4.2.dist-info}/METADATA +3 -5
- {endoreg_db-0.4.1.dist-info → endoreg_db-0.4.2.dist-info}/RECORD +8 -7
- {endoreg_db-0.4.1.dist-info → endoreg_db-0.4.2.dist-info}/LICENSE +0 -0
- {endoreg_db-0.4.1.dist-info → endoreg_db-0.4.2.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Generated by Django 4.2.15 on 2024-09-17 11:46
|
|
2
|
+
|
|
3
|
+
import django.core.files.storage
|
|
4
|
+
import django.core.validators
|
|
5
|
+
from django.db import migrations, models
|
|
6
|
+
import django.db.models.deletion
|
|
7
|
+
import django.utils.timezone
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Migration(migrations.Migration):
|
|
11
|
+
|
|
12
|
+
dependencies = [
|
|
13
|
+
('endoreg_db', '0004_alter_rawpdffile_file'),
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
operations = [
|
|
17
|
+
migrations.CreateModel(
|
|
18
|
+
name='UploadedFile',
|
|
19
|
+
fields=[
|
|
20
|
+
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
21
|
+
('original_file', models.FileField(upload_to='uploads/original/')),
|
|
22
|
+
('upload_date', models.DateTimeField(default=django.utils.timezone.now)),
|
|
23
|
+
('description', models.TextField(blank=True, null=True)),
|
|
24
|
+
],
|
|
25
|
+
),
|
|
26
|
+
migrations.AlterField(
|
|
27
|
+
model_name='rawpdffile',
|
|
28
|
+
name='file',
|
|
29
|
+
field=models.FileField(storage=django.core.files.storage.FileSystemStorage(location='/mnt/hdd-sensitive/Pseudo/import/pdf'), upload_to='raw_pdf/', validators=[django.core.validators.FileExtensionValidator(allowed_extensions=['pdf'])]),
|
|
30
|
+
),
|
|
31
|
+
migrations.CreateModel(
|
|
32
|
+
name='AnonymizedFile',
|
|
33
|
+
fields=[
|
|
34
|
+
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
35
|
+
('anonymized_file', models.FileField(upload_to='uploads/anonymized/')),
|
|
36
|
+
('anonymization_date', models.DateTimeField(default=django.utils.timezone.now)),
|
|
37
|
+
('original_file', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='anonymized_file', to='endoreg_db.uploadedfile')),
|
|
38
|
+
],
|
|
39
|
+
),
|
|
40
|
+
]
|
endoreg_db/models/__init__.py
CHANGED
|
@@ -39,11 +39,7 @@ from .patient_examination import PatientExamination
|
|
|
39
39
|
|
|
40
40
|
from .label import Label, LabelType, LabelSet
|
|
41
41
|
|
|
42
|
-
from .annotation import
|
|
43
|
-
ImageClassificationAnnotation,
|
|
44
|
-
LegacyBinaryClassificationAnnotationTask,
|
|
45
|
-
BinaryClassificationAnnotationTask,
|
|
46
|
-
)
|
|
42
|
+
from .annotation import *
|
|
47
43
|
|
|
48
44
|
from .legacy_data import (
|
|
49
45
|
LegacyImage,
|
|
@@ -74,3 +70,4 @@ from .hardware import (
|
|
|
74
70
|
)
|
|
75
71
|
|
|
76
72
|
from .questionnaires import TtoQuestionnaire
|
|
73
|
+
from .annotation import AnonymousImageAnnotation, AnonymizedImageLabel, DroppedName
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
from .image_classification import ImageClassificationAnnotation
|
|
2
2
|
from .binary_classification_annotation_task import LegacyBinaryClassificationAnnotationTask, BinaryClassificationAnnotationTask
|
|
3
|
-
from .anonymized_image_annotation import AnonymousImageAnnotation, DroppedName, AnonymizedImageLabel
|
|
3
|
+
from .anonymized_image_annotation import AnonymousImageAnnotation, DroppedName, AnonymizedImageLabel, AnonymizedFile, UploadedFile
|
|
@@ -39,3 +39,22 @@ class DroppedName(models.Model):
|
|
|
39
39
|
|
|
40
40
|
def __str__(self):
|
|
41
41
|
return f"{self.name} ({self.gender}) at ({self.x}, {self.y})"
|
|
42
|
+
|
|
43
|
+
from django.db import models
|
|
44
|
+
from django.utils import timezone
|
|
45
|
+
|
|
46
|
+
class UploadedFile(models.Model):
|
|
47
|
+
original_file = models.FileField(upload_to='uploads/original/')
|
|
48
|
+
upload_date = models.DateTimeField(default=timezone.now)
|
|
49
|
+
description = models.TextField(blank=True, null=True)
|
|
50
|
+
|
|
51
|
+
def __str__(self):
|
|
52
|
+
return self.original_file.name
|
|
53
|
+
|
|
54
|
+
class AnonymizedFile(models.Model):
|
|
55
|
+
original_file = models.OneToOneField(UploadedFile, on_delete=models.CASCADE, related_name='anonymized_file')
|
|
56
|
+
anonymized_file = models.FileField(upload_to='uploads/anonymized/')
|
|
57
|
+
anonymization_date = models.DateTimeField(default=timezone.now)
|
|
58
|
+
|
|
59
|
+
def __str__(self):
|
|
60
|
+
return f"Anonymized version of {self.original_file.original_file.name}"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: endoreg-db
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
4
4
|
Summary: EndoReg Db Django App
|
|
5
5
|
License: GNU3
|
|
6
6
|
Author: Thomas J. Lux
|
|
@@ -9,15 +9,13 @@ Classifier: License :: Other/Proprietary License
|
|
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.11
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
-
Requires-Dist:
|
|
13
|
-
Requires-Dist: django (>=4.2,<4.3)
|
|
12
|
+
Requires-Dist: django (>=5.1,<6.0)
|
|
14
13
|
Requires-Dist: django-bootstrap5 (>=23.4,<24.0)
|
|
15
14
|
Requires-Dist: djangorestframework (>=3.14.0,<4.0.0)
|
|
16
15
|
Requires-Dist: ffmpeg-python (>=0.2.0,<0.3.0)
|
|
17
|
-
Requires-Dist: icecream (>=2.1.3,<3.0.0)
|
|
18
16
|
Requires-Dist: opencv-python (>=4.9.0.80,<5.0.0.0)
|
|
19
17
|
Requires-Dist: pandas (>=2.2.2,<3.0.0)
|
|
20
|
-
Requires-Dist: pillow (>=10
|
|
18
|
+
Requires-Dist: pillow (>=10,<11)
|
|
21
19
|
Requires-Dist: pytesseract (>=0.3.10,<0.4.0)
|
|
22
20
|
Requires-Dist: pyyaml (>=6.0.1,<7.0.0)
|
|
23
21
|
Requires-Dist: scipy (>=1.14.0,<2.0.0)
|
|
@@ -148,15 +148,16 @@ endoreg_db/migrations/0001_initial.py,sha256=tIXFN6sFZ2VUIP-TaFSGcobrgARkia0SIOi
|
|
|
148
148
|
endoreg_db/migrations/0002_anonymizedimagelabel_anonymousimageannotation_and_more.py,sha256=ABUOr5ZMUHkRQ0FDUhqNaVAvq5K8HOOdyVo1TJ8YMkQ,2605
|
|
149
149
|
endoreg_db/migrations/0003_anonymousimageannotation_original_image_url_and_more.py,sha256=bTb9_FfQBNHYLq1tKw1qmem9xsecRv-z1-aWcl9ig4k,1319
|
|
150
150
|
endoreg_db/migrations/0004_alter_rawpdffile_file.py,sha256=B1LxaapxDnzs08ScrXh1pM_KC2hHHyEHGce_0Ciaex8,712
|
|
151
|
+
endoreg_db/migrations/0005_uploadedfile_alter_rawpdffile_file_anonymizedfile.py,sha256=yhQhScntZgPdMpci2aWfGk3qzvSUS9asDfMFyMlIL2U,1776
|
|
151
152
|
endoreg_db/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
152
|
-
endoreg_db/models/__init__.py,sha256=
|
|
153
|
+
endoreg_db/models/__init__.py,sha256=EH4g6EvT8AbEtcVcTj8AUtjGP3sQtQw7M34I_g_IGP4,1512
|
|
153
154
|
endoreg_db/models/ai_model/__init__.py,sha256=rh5npLRGml5iiRocx359gsaA82pGJTW7wdVAfnbZP6w,106
|
|
154
155
|
endoreg_db/models/ai_model/active_model.py,sha256=r7SE3yg54kbjfOkk0Ei0rgs_Wo3ikx88rcEELqvRzGc,343
|
|
155
156
|
endoreg_db/models/ai_model/model_meta.py,sha256=YyYW8dScpAceHePnbrnRpgVBYDByi9x7u5Ydh03OJuo,869
|
|
156
157
|
endoreg_db/models/ai_model/model_type.py,sha256=mg1bEuzAjIte25N4TzD0yDhmUQYayJpyrRn2hB6b6eg,638
|
|
157
158
|
endoreg_db/models/ai_model/utils.py,sha256=Vh6_3lbDuFhSVCaaZKKm0CjoGA5Man6gWYe46HUXmbA,270
|
|
158
|
-
endoreg_db/models/annotation/__init__.py,sha256=
|
|
159
|
-
endoreg_db/models/annotation/anonymized_image_annotation.py,sha256=
|
|
159
|
+
endoreg_db/models/annotation/__init__.py,sha256=TnRp_hJ4YomxKN6N1yBzGHStY9SnY_HLPCjJKLdZmu8,323
|
|
160
|
+
endoreg_db/models/annotation/anonymized_image_annotation.py,sha256=1mZadIzYsEZN_zz_SMehGgiIvMbhHpiFMO2tfmbOL54,2716
|
|
160
161
|
endoreg_db/models/annotation/binary_classification_annotation_task.py,sha256=CpvyDxLSJcoJyajtUsDGBt881SNSFcG8lvuQ01knMNM,3292
|
|
161
162
|
endoreg_db/models/annotation/image_classification.py,sha256=Og1tRo1QKBMztwfdbFryUWghnGdsTqQdepn9rOcmVMc,1387
|
|
162
163
|
endoreg_db/models/case_template/__init__.py,sha256=vtq-7Gvpv01l9CuQvBFQugXCKELx9wg2z5HkysrZCNM,369
|
|
@@ -307,7 +308,7 @@ endoreg_db/utils/ocr.py,sha256=jkdT1bl-LSCjZ2PvxlX1AG2TmhdMclayxUPrdZWs7UE,7322
|
|
|
307
308
|
endoreg_db/utils/uuid.py,sha256=T4HXqYtKwXFqE5kPyvlgWHyllBBF6LL6N48nl9TpwBk,53
|
|
308
309
|
endoreg_db/utils/video_metadata.py,sha256=HDyXxAeNQOK3cGzQ06xosmObzEnJBARuKjwz9vmmRIM,2613
|
|
309
310
|
endoreg_db/views.py,sha256=xc1IQHrsij7j33TUbo-_oewy3vs03pw_etpBWaMYJl0,63
|
|
310
|
-
endoreg_db-0.4.
|
|
311
|
-
endoreg_db-0.4.
|
|
312
|
-
endoreg_db-0.4.
|
|
313
|
-
endoreg_db-0.4.
|
|
311
|
+
endoreg_db-0.4.2.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
312
|
+
endoreg_db-0.4.2.dist-info/METADATA,sha256=T6Dqv1TD5kZ6V9GHtPSJKN7mh8WG3l6XM_Trj4TxPyc,955
|
|
313
|
+
endoreg_db-0.4.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
314
|
+
endoreg_db-0.4.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|