FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pyt/pyt/framework_adaptor.py at github-search-menu · python-security/pyt · GitHub
python-security
pyt
Repository navigation
Code
Issues
26
(26)
Pull requests
2
(2)
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
pyt
/
pyt
/
framework_adaptor.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (17 loc) · 627 Bytes
Breadcrumbs
pyt
/
pyt
/
framework_adaptor.py
Copy path
File metadata and controls
23 lines (17 loc) · 627 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""A framework adaptor is a adaptor used to adapt
the source code to a specific framework."""
from
abc
import
ABCMeta
,
abstractmethod
from
base_cfg
import
AssignmentNode
class
FrameworkAdaptor
(
metaclass
=
ABCMeta
):
"""An engine that should be used as base class
to specify how to find all sources and sinks."""
def
__init__
(
self
,
cfg_list
,
project_modules
,
local_modules
):
self
.
cfg_list
=
cfg_list
self
.
project_modules
=
project_modules
self
.
local_modules
=
local_modules
self
.
run
()
@
abstractmethod
def
run
(
self
):
pass
class
TaintedNode
(
AssignmentNode
):
pass
Back
|
FazBrowse Home
|
New Git URL