Benign python Download

fyle-accounting-mappings 3.9.6

“Django application to store the fyle accounting mappings in a generic manner”

Filename is setup.pyOther-principal identity field

Evidence

Accesses a Python frame code object logging_middleware.py · lines 42–53
42:32… module and function name
43 module_name = caller_frame.f_globals.get('__name__', 'unknown')
44 function_name = caller_frame.f_code.co_name
45 return f"{module_name}.{function_name}"
46 return "unknown"
47
48
49class WorkerIDFilter(logging.Filter):
50 def filter(self, record):
51 worker_id = getattr(record, 'worker_id', '')
52 record.worker_id = worker_id
53 return True
Django framework import models.py · lines 1–16
1import uuid
2import importlib
3from enum import Enum
4
5from django.db import models
6
7workspace_models = importlib.import_module("apps.workspaces.models")
8Workspace = workspace_models.Workspace
9
10
11class SystemComment(models.Model):
12 """
13 System Comments model for tracking backend decisions and actions.
14 """
15 id = models.AutoField(primary_key=True)
16 workspace = models.ForeignKey( …
Python reads an environment variable connector.py · lines 1–16
⋯11 lines
12class RabbitMQ(RabbitMQConnector):
13 def __init__(self, rabbitmq_exchange: str):
14 rabbitmq_url = os.environ.get('RABBITMQ_URL')
15 self.qconnector: QConnector = RabbitMQConnector(rabbitmq_url, rabbitmq_exchange)
16 self.qconnecto …
Broad exception returns failure sentinel connector.py · lines 22–29
22:9… try:
23 return self.qconnector.channel.is_open
24 except Exception:
25 return False
26
27 def ensure_connection(self):
28 """Ensures the connection is active, reconnects if needed"""
29 if not self.is_c …
Python getattr dynamic attribute lookup model_fields.py · lines 80–88
80:50… rgs, **kwargs)
81
82 def toggle(self, instance):
83 value = getattr(instance, self.attname)
84 setattr(instance, self.attname, not value)
85 instance.save()
86
87
88class BooleanFalseField(mo …

Showing the top 5 files — 5 more files (23 regions) not shown.

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.