id int64 0 458k | file_name stringlengths 4 119 | file_path stringlengths 14 227 | content stringlengths 24 9.96M | size int64 24 9.96M | language stringclasses 1
value | extension stringclasses 14
values | total_lines int64 1 219k | avg_line_length float64 2.52 4.63M | max_line_length int64 5 9.91M | alphanum_fraction float64 0 1 | repo_name stringlengths 7 101 | repo_stars int64 100 139k | repo_forks int64 0 26.4k | repo_open_issues int64 0 2.27k | repo_license stringclasses 12
values | repo_extraction_date stringclasses 433
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
16,200 | search.py | cve-search_cve-search/bin/search.py | #!/usr/bin/env python3
#
# search is the search component of cve-search querying the MongoDB database.
#
# Software is free software released under the "GNU Affero General Public License v3.0"
#
# Copyright (c) 2012 Wim Remes
# Copyright (c) 2012-2018 Alexandre Dulaunoy - a@foo.be
# Copyright (c) 2015-2018 Piet... | 16,571 | Python | .py | 491 | 24.716904 | 118 | 0.569129 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,201 | search_fulltext.py | cve-search_cve-search/bin/search_fulltext.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Search the CVE full text database
#
# Software is free software released under the "GNU Affero General Public License v3.0"
#
# Copyright (c) 2012-2018 Alexandre Dulaunoy - a@foo.be
# Copyright (c) 2015-2018 Pieter-Jan Moreels - pieterjan.moreels@gmail.com
import ar... | 4,660 | Python | .py | 136 | 28.191176 | 96 | 0.627716 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,202 | search_cpe.py | cve-search_cve-search/bin/search_cpe.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Software is free software released under the "Modified BSD license"
#
# Copyright (c) 2014 psychedelys
# Copyright (c) 2015-2018 Pieter-Jan Moreels - pieterjan.moreels@gmail.com
# Copyright (c) 2015-2019 Alexandre Dulaunoy - a@foo.be
import argparse
import jso... | 2,177 | Python | .py | 64 | 28.5625 | 83 | 0.627143 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,203 | dump_last.py | cve-search_cve-search/bin/dump_last.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Dump last CVE entries in RSS 1,RSS 2 or Atom format.
#
# Software is free software released under the "GNU Affero General Public License v3.0"
#
# Copyright (c) 2012-2018 Alexandre Dulaunoy - a@foo.be
# Copyright (c) 2015-2018 Pieter-Jan Moreels - pieterjan.moreels@g... | 5,043 | Python | .py | 129 | 33.046512 | 119 | 0.590455 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,204 | Config.py | cve-search_cve-search/lib/Config.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Config reader to read the configuration file
#
# Software is free software released under the "GNU Affero General Public License v3.0"
#
# Copyright (c) 2013-2018 Alexandre Dulaunoy - a@foo.be
# Copyright (c) 2014-2018 Pieter-Jan Moreels - pieterjan.moreels@gmail.com... | 17,742 | Python | .py | 477 | 28.322851 | 126 | 0.604547 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,205 | Sources_process.py | cve-search_cve-search/lib/Sources_process.py | import logging
import sys
import time
from datetime import timedelta
from tqdm import tqdm
from lib.Config import Configuration
from lib.DatabaseLayer import (
getCPEs,
)
from lib.cpe_conversion import split_cpe_name
class CPERedisBrowser(object):
def __init__(self, cpes=None):
try:
self... | 1,716 | Python | .py | 44 | 29.454545 | 78 | 0.590361 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,206 | Singleton.py | cve-search_cve-search/lib/Singleton.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Software is free software released under the "GNU Affero General Public License v3.0"
#
# Copyright (c) 2017-2018 Pieter-Jan Moreels - pieterjan.moreels@gmail.com
class Singleton(type):
_instances = {}
def __call__(cls, *args, **kwargs):
if cls not ... | 456 | Python | .py | 12 | 33.75 | 87 | 0.657596 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,207 | User.py | cve-search_cve-search/lib/User.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Software is free software released under the "GNU Affero General Public License v3.0"
#
# Copyright (c) 2015-2018 Pieter-Jan Moreels - pieterjan.moreels@gmail.com
# Imports
import os
from flask_login import UserMixin
runPath = os.path.dirname(os.path.realpath(__fil... | 1,109 | Python | .py | 32 | 28.96875 | 87 | 0.686973 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,208 | cpelist.py | cve-search_cve-search/lib/cpelist.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# CPEList class, used in black-and whitelists
#
# Software is free software released under the "GNU Affero General Public License v3.0"
#
# Copyright (c) 2014-2018 Pieter-Jan Moreels - pieterjan.moreels@gmail.com
import json
import os
import sys
runPath = os.path.dirn... | 7,169 | Python | .py | 186 | 25.924731 | 87 | 0.521246 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,209 | ApiRequests.py | cve-search_cve-search/lib/ApiRequests.py | import logging
from abc import ABC, abstractmethod
from datetime import datetime
from nested_lookup import nested_lookup, nested_update
from lib.LogHandler import AppLogger
from web.helpers.common import timestringTOdatetime, date_time_formats
logging.setLoggerClass(AppLogger)
def convertDatetime(dct=None):
if... | 5,985 | Python | .py | 150 | 27.546667 | 115 | 0.54817 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,210 | DatabaseLayer.py | cve-search_cve-search/lib/DatabaseLayer.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Database layer translates database calls to functions
#
# Software is free software released under the "GNU Affero General Public License v3.0"
#
# Copyright (c) 2015-2018 Pieter-Jan Moreels - pieterjan.moreels@gmail.com
# imports
import re
import pymongo
from lib.C... | 17,011 | Python | .py | 448 | 28.162946 | 109 | 0.550392 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,211 | Toolkit.py | cve-search_cve-search/lib/Toolkit.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Toolkit for functions between scripts
#
# Software is free software released under the "GNU Affero General Public License v3.0"
#
# Copyright (c) 2014-2018 Pieter-Jan Moreels - pieterjan.moreels@gmail.com
import re
import lib.cpe_conversion
# Note of warning: CPEs... | 1,584 | Python | .py | 44 | 31.318182 | 99 | 0.637255 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,212 | CVEs.py | cve-search_cve-search/lib/CVEs.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Minimal class to get the last entries from the CVE database.
#
# Ranking and CPE lookup are optional.
#
# Software is free software released under the "GNU Affero General Public License v3.0"
#
# Copyright (c) 2012-2018 Alexandre Dulaunoy - a@foo.be
# Copyright (c) 20... | 5,686 | Python | .py | 158 | 24.563291 | 88 | 0.544446 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,213 | Query.py | cve-search_cve-search/lib/Query.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Query tools
#
# Software is free software released under the "GNU Affero General Public License v3.0"
#
# Copyright (c) 2014-2018 Alexandre Dulaunoy - a@foo.be
# Copyright (c) 2014-2018 Pieter-Jan Moreels - pieterjan.moreels@gmail.com
import os
import sys
import url... | 3,751 | Python | .py | 115 | 26.530435 | 87 | 0.644068 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,214 | Authentication.py | cve-search_cve-search/lib/Authentication.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Plugin manager
#
# Software is free software released under the "GNU Affero General Public License v3.0"
#
# Copyright (c) 2016-2018 Pieter-Jan Moreels - pieterjan.moreels@gmail.com
# Imports
import datetime
import importlib
import logging
import os
import sys
import... | 4,250 | Python | .py | 104 | 30.384615 | 87 | 0.581801 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,215 | Plugins.py | cve-search_cve-search/lib/Plugins.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Plugin Classes
# Classes for all plug-ins to be based on
#
# Software is free software released under the "GNU Affero General Public License v3.0"
#
# Copyright (c) 2016-2018 Pieter-Jan Moreels - pieterjan.moreels@gmail.com
class Plugin:
def __init__(self):
... | 1,704 | Python | .py | 62 | 21.354839 | 87 | 0.623457 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,216 | DatabaseHandler.py | cve-search_cve-search/lib/DatabaseHandler.py | from lib.ApiRequests import JSONApiRequest
from lib.Config import Configuration
from lib.DatabasePluginBase import DatabasePluginBase
from lib.DatabasePlugins.config import DatabasePluginLoader
class DatabaseHandler(object):
def __init__(self):
self.config = Configuration()
database_plugin = self.... | 1,164 | Python | .py | 27 | 33.37037 | 87 | 0.666962 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,217 | LogHandler.py | cve-search_cve-search/lib/LogHandler.py | """
LogHandler.py
=============
"""
import logging
import os
import platform
import sys
from logging.config import dictConfig
from logging.handlers import RotatingFileHandler
import colors
from lib.Config import Configuration
class HostnameFilter(logging.Filter):
hostname = platform.node()
def filter(self... | 8,187 | Python | .py | 193 | 32.533679 | 109 | 0.601376 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,218 | DatabasePluginBase.py | cve-search_cve-search/lib/DatabasePluginBase.py | from abc import ABC, abstractmethod
class DatabasePluginBase(ABC):
"""
The DatabasePluginBase is the base class of all database backend plugins supported by cve search. The default
backend plugin is mongodb. If you wish to use a different backend you could provide your own plugin. Plugins should
be pl... | 5,233 | Python | .py | 115 | 37.33913 | 119 | 0.651456 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,219 | config.py | cve-search_cve-search/lib/DatabasePlugins/config.py | import glob
import importlib
from os.path import dirname, basename, isfile, join
modules = glob.glob(join(dirname(__file__), "*.py"))
all_plugins = [
basename(f)[:-3]
for f in modules
if isfile(f) and not f.endswith("__init__.py") and not f.endswith("config.py")
]
class DatabasePluginNotFound(Exception):... | 1,416 | Python | .py | 39 | 27.974359 | 85 | 0.615947 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,220 | mongodb.py | cve-search_cve-search/lib/DatabasePlugins/mongodb.py | import re
import sre_constants
import urllib
from collections import defaultdict
import bson
import pymongo
from pymongo import DESCENDING, ASCENDING
from pymongo.collection import Collection
from werkzeug.security import generate_password_hash, check_password_hash
from lib.Config import Configuration
from lib.Databa... | 17,445 | Python | .py | 417 | 27.57554 | 126 | 0.507807 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,221 | db_updater.py | cve-search_cve-search/sbin/db_updater.py | #!/usr/bin/env python3
#
# Updater script of CVE/CPE database
#
# Software is free software released under the "GNU Affero General Public License v3.0"
#
# Copyright (c) 2012-2019 Alexandre Dulaunoy - a@foo.be
# Copyright (c) 2014-2018 Pieter-Jan Moreels - pieterjan.moreels@gmail.com
import argparse
import logging
i... | 9,686 | Python | .py | 257 | 27.494163 | 134 | 0.553568 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,222 | db_mgmt_create_index.py | cve-search_cve-search/sbin/db_mgmt_create_index.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Script to check and ensure that the recommended index are created as recommended.
#
# Software is free software released under the "GNU Affero General Public License v3.0"
#
# Copyright (c) 2014 psychedelys
# Copyright (c) 2015-2018 Pieter-Jan Moreels - pieterja... | 829 | Python | .py | 24 | 32.833333 | 87 | 0.777638 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,223 | db_fulltext.py | cve-search_cve-search/sbin/db_fulltext.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Fulltext indexer for the MongoDB CVE collection.
#
# The fulltext indexer is relying on Whoosh.
#
# The indexing is done by enumerating all items from
# the MongoDB CVE collection and indexing the summary text of each
# CVE. The Path of each document is the CVE-ID.
#
#... | 2,761 | Python | .py | 80 | 31.2375 | 115 | 0.730755 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,224 | db_mgmt_cpe_other_dictionary.py | cve-search_cve-search/sbin/db_mgmt_cpe_other_dictionary.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Import script of cpe (Common Platform Enumeration) definition
# into a collection used for human readable lookup of product name.
# This is locating the cpe used inside the cve, but only the cpe
# not present inside the cpe official dictionary.
#
# Exemple:
# CVE-20... | 2,747 | Python | .py | 85 | 28.176471 | 87 | 0.680498 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,225 | db_ranking.py | cve-search_cve-search/sbin/db_ranking.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Import ranking values into the ranking collection.
#
# A cpe regex is use to match vulnerable configuration
# and a ranking value is assigned per a group name.
#
# The idea is to set a specific weight for a vulnerability
# when it's of a specific interest of a group/de... | 3,449 | Python | .py | 94 | 32.223404 | 118 | 0.670962 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,226 | db_notification.py | cve-search_cve-search/sbin/db_notification.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Notification database
# includes the user who will receive a notification
# when a new CVE is published and matching their monitored CPE
#
# Software is free software released under the "GNU Affero General Public License v3.0"
#
# Copyright (c) 2014-2018 Alexandre D... | 4,770 | Python | .py | 140 | 27.935714 | 88 | 0.619813 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,227 | db_whitelist.py | cve-search_cve-search/sbin/db_whitelist.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Whitelist feature to mark CVE's for CPE's of personal interest
#
# Software is free software released under the "GNU Affero General Public License v3.0"
#
# Copyright (c) 2014-2018 Pieter-Jan Moreels - pieterjan.moreels@gmail.com
# Imports
# make sure these modules a... | 2,688 | Python | .py | 77 | 31.987013 | 87 | 0.734055 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,228 | db_mgmt_admin.py | cve-search_cve-search/sbin/db_mgmt_admin.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Admin creator script
#
# Creates an admin account in the database
# Only master accounts are allowed to add and remove users
# First account registered is the master account
#
# Software is free software released under the "GNU Affero General Public License v3.0"
#
# C... | 4,632 | Python | .py | 122 | 32.377049 | 92 | 0.694432 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,229 | db_blacklist.py | cve-search_cve-search/sbin/db_blacklist.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Blacklist feature to mark CVE's for CPE's of personal interest
#
# Software is free software released under the "GNU Affero General Public License v3.0"
#
# Copyright (c) 2014-2018 Pieter-Jan Moreels - pieterjan.moreels@gmail.com
# Imports
# make sure these modules a... | 2,700 | Python | .py | 78 | 31.717949 | 87 | 0.734411 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,230 | db_cpe_browser.py | cve-search_cve-search/sbin/db_cpe_browser.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Importing CPE entries in a Redis database to improve lookup
#
# Until now, this part is only used by the web interface to improve response time
#
# Software is free software released under the "GNU Affero General Public License v3.0"
#
# Copyright (c) 2014-2018 Alexan... | 1,237 | Python | .py | 37 | 30.486486 | 88 | 0.729866 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,231 | conf.py | cve-search_cve-search/docs/source/conf.py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | 2,081 | Python | .py | 44 | 45.568182 | 79 | 0.674913 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,232 | set_version.py | cve-search_cve-search/web/set_version.py | import os
import re
import subprocess # nosec
_PKG_DIR = os.path.dirname(os.path.realpath(__file__))
def _version_from_git_describe():
"""
Read the version from ``git describe``. It returns the latest tag with an
optional suffix if the current directory is not exactly on the tag.
Example::
... | 2,659 | Python | .py | 68 | 30.661765 | 77 | 0.586475 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,233 | run.py | cve-search_cve-search/web/run.py | import logging
import random
import urllib
from datetime import timedelta
from CveXplore import CveXplore
from CveXplore.errors.database import DatabaseSchemaVersionError
from flask import Flask, render_template, request
from flask_bootstrap import Bootstrap
from flask_breadcrumbs import Breadcrumbs
from flask_jwt_ex... | 6,972 | Python | .py | 179 | 29.871508 | 84 | 0.619161 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,234 | index.py | cve-search_cve-search/web/index.py | import os
import sys
_runPath = os.path.dirname(os.path.realpath(__file__))
sys.path.append(os.path.join(_runPath, ".."))
import multiprocessing
import logging
import gunicorn
from lib.Config import Configuration
from lib.LogHandler import AppLogger
from web.run import create_app
from web.set_version import _version... | 5,791 | Python | .py | 133 | 32.030075 | 118 | 0.578114 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,235 | wsgi.py | cve-search_cve-search/web/wsgi.py | import os
import sys
from flask import Flask
from werkzeug.middleware.dispatcher import DispatcherMiddleware
_runPath = os.path.dirname(os.path.realpath(__file__))
sys.path.append(os.path.join(_runPath, ".."))
from lib.Config import Configuration
from web.run import create_app
from web.set_version import _version
_... | 579 | Python | .py | 16 | 34.375 | 84 | 0.743682 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,236 | capec.py | cve-search_cve-search/web/restapi/capec.py | from flask_restx import Namespace, Resource
from web.restapi.cpe_convert import message
from web.restapi.cve import capec_entry
api = Namespace(
"capec", description="Endpoints for requesting capec information", path="/"
)
@api.route("/capec/show/<capec_id>")
@api.param("capec_id", "CAPEC id", example="112")
@a... | 1,830 | Python | .py | 44 | 35.5 | 123 | 0.684329 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,237 | cwe.py | cve-search_cve-search/web/restapi/cwe.py | from flask_restx import Namespace, Resource, fields
from web.restapi.cpe_convert import message
api = Namespace("cwe", description="Endpoints for requesting cwe information", path="/")
cwe = api.model(
"Cwe",
{
"name": fields.String(
description="Name of the CWE", example="Incorrect Selec... | 2,471 | Python | .py | 60 | 33.766667 | 119 | 0.644704 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,238 | auth.py | cve-search_cve-search/web/restapi/auth.py | from flask import request
from flask_jwt_extended import create_access_token, get_jti, jwt_required, get_jwt
from flask_restx import Namespace, Resource, fields
from lib.User import User
from web.restapi.cpe_convert import message
from web.run import ACCESS_EXPIRES, token_blacklist, app
api = Namespace("auth", descri... | 3,358 | Python | .py | 85 | 32.341176 | 119 | 0.670151 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,239 | __init__.py | cve-search_cve-search/web/restapi/__init__.py | from flask import Blueprint
from flask_restx import Api
from web.run import app
from .admin import bl as bl_api
from .admin import wl as wl_api
from .auth import api as auth_api
from .browse_vendor import api as browse_api
from .capec import api as capec_api
from .cpe_convert import api as cpe_api
from .cve import api... | 1,008 | Python | .py | 37 | 24.351351 | 57 | 0.736788 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,240 | admin.py | cve-search_cve-search/web/restapi/admin.py | import json
from collections import defaultdict
from flask import request
from flask_jwt_extended import jwt_required
from flask_restx import Namespace, Resource, fields
from sbin.db_blacklist import (
dropBlacklist,
insertBlacklist,
removeBlacklist,
importBlacklist,
)
from sbin.db_whitelist import (
... | 12,521 | Python | .py | 350 | 26.728571 | 118 | 0.575122 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,241 | search_vendor.py | cve-search_cve-search/web/restapi/search_vendor.py | from flask_restx import Resource, Namespace, fields
from lib.Query import searchVendors, searchProductsByVendor, searchVersionsByProduct
from web.restapi.cpe_convert import message
api = Namespace(
"search-vendor",
description="Endpoints to search vendor information by providing part strings.",
path="/",
... | 3,151 | Python | .py | 80 | 32.3875 | 113 | 0.641244 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,242 | query.py | cve-search_cve-search/web/restapi/query.py | import json
from bson import json_util
from dicttoxml import dicttoxml
from flask import request, Response
from flask_restx import Namespace, fields, Resource
from lib.ApiRequests import JSONApiRequest
from lib.DatabaseHandler import DatabaseHandler
from web.home.utils import filter_logic, parse_headers
from web.rest... | 15,496 | Python | .py | 355 | 29.287324 | 121 | 0.489515 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,243 | browse_vendor.py | cve-search_cve-search/web/restapi/browse_vendor.py | from flask_restx import Namespace, Resource, fields
from lib.Query import getBrowseList
from lib.Query import getVersionsOfProduct
from web.restapi.cpe_convert import message
api = Namespace("browse", description="Endpoints for vendor information", path="/")
browseList = api.model(
"browseList",
{
"... | 4,520 | Python | .py | 136 | 22.301471 | 83 | 0.520733 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,244 | cve.py | cve-search_cve-search/web/restapi/cve.py | from flask import request
from flask_restx import Namespace, fields, Resource
from lib.CVEs import CveHandler
from lib.Config import Configuration
from lib.Query import qcvesForCPE
from web.restapi.cpe_convert import message
config = Configuration()
api = Namespace("cve", description="Endpoints for requesting cve in... | 60,239 | Python | .py | 1,228 | 34.543974 | 154 | 0.540827 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,245 | cpe_convert.py | cve-search_cve-search/web/restapi/cpe_convert.py | from flask_restx import Namespace, Resource, fields
from lib.Toolkit import toOldCPE, toStringFormattedCPE
api = Namespace(
"cpe",
description="Endpoints for cpe conversion between different versions",
path="/",
)
message = api.model(
"Message",
{
"message": fields.String(
des... | 2,536 | Python | .py | 80 | 25.1875 | 112 | 0.618308 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,246 | dbinfo.py | cve-search_cve-search/web/restapi/dbinfo.py | from flask_restx import Namespace, fields, Resource
from web.restapi.cpe_convert import message
api = Namespace(
"dbinfo",
description="Endpoints displaying information about the cve search database",
path="/",
)
database_inner = api.model(
"DBInner",
{
"last_update": fields.DateTime(
... | 1,511 | Python | .py | 43 | 29.023256 | 101 | 0.674211 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,247 | flask_authentication.py | cve-search_cve-search/web/helpers/flask_authentication.py | from lib.Authentication import AuthenticationHandler
class FlaskAuthHandler(object):
def __init__(self, app=None, **kwargs):
self.kwargs = kwargs
if app is not None:
self.init_app(app)
def init_app(self, app, **kwargs):
self.kwargs.update(kwargs)
app.auth_handler... | 412 | Python | .py | 11 | 30.090909 | 52 | 0.648101 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,248 | flask_database.py | cve-search_cve-search/web/helpers/flask_database.py | from lib.DatabaseHandler import DatabaseHandler
class FlaskDatabaseHandler(object):
def __init__(self, app=None, **kwargs):
self.kwargs = kwargs
if app is not None:
self.init_app(app)
def init_app(self, app, **kwargs):
self.kwargs.update(kwargs)
app.dbh = Databas... | 400 | Python | .py | 11 | 29 | 47 | 0.639687 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,249 | app_plugin.py | cve-search_cve-search/web/helpers/app_plugin.py | from flask import current_app
from flask_plugins import Plugin
class AppPlugin(Plugin):
def register_blueprint(self, blueprint, **kwargs):
"""Registers a blueprint."""
current_app.register_blueprint(blueprint, **kwargs)
| 242 | Python | .py | 6 | 35.666667 | 59 | 0.739316 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,250 | common.py | cve-search_cve-search/web/helpers/common.py | import calendar
from datetime import datetime
date_time_formats = [
"%d-%m-%Y",
"%Y-%m-%d",
"%d-%m-%Y %H:%M",
"%Y-%m-%d %H:%M:%S",
"%H:%M:%S %d-%m-%Y",
"%Y-%m-%dT%H:%M:%S",
"%Y-%m-%dT%H:%M:%SZ",
"%Y-%m-%dT%H:%M:%S.%f",
"%Y-%m-%dT%H:%M:%S,%f",
"%Y-%m-%dT%H:%M:%S.%fZ",
"%Y-%m-... | 1,635 | Python | .py | 51 | 26.843137 | 117 | 0.647546 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,251 | server_side_datatables.py | cve-search_cve-search/web/helpers/server_side_datatables.py | """
server_side_datatables.py
=========================
"""
from collections import namedtuple, defaultdict
class ServerSideDataTable(object):
"""
This class holds all the logic for enabling and handling server side DataTables within the application
:param request: The post (or get) parameters send by t... | 3,610 | Python | .py | 89 | 30.977528 | 118 | 0.618229 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,252 | utils.py | cve-search_cve-search/web/home/utils.py | import re
from html import escape
from flask import request
from flask_login import current_user
from lib.Config import Configuration
from lib.Toolkit import tk_compile
from sbin.db_blacklist import insertBlacklist
from sbin.db_whitelist import insertWhitelist
from web.helpers.common import timestringTOdatetime
conf... | 9,299 | Python | .py | 256 | 26.972656 | 83 | 0.563105 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,253 | __init__.py | cve-search_cve-search/web/home/__init__.py | from flask import Blueprint
home = Blueprint("home", __name__)
from . import views
| 85 | Python | .py | 3 | 26.666667 | 34 | 0.75 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,254 | views.py | cve-search_cve-search/web/home/views.py | import re
from collections import defaultdict
from flask import render_template, request, make_response, json, jsonify, url_for
from flask_breadcrumbs import register_breadcrumb, default_breadcrumb_root
from flask_login import current_user
from lib.CVEs import CveHandler
from . import home
from .utils import (
de... | 11,353 | Python | .py | 329 | 26.62614 | 88 | 0.585341 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,255 | __init__.py | cve-search_cve-search/web/auth/__init__.py | from flask import Blueprint
auth = Blueprint("auth", __name__)
from . import views
| 85 | Python | .py | 3 | 26.666667 | 34 | 0.75 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,256 | forms.py | cve-search_cve-search/web/auth/forms.py | import re
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField
from wtforms.validators import InputRequired, Length, ValidationError
class LoginForm(FlaskForm):
username = StringField(
"username", validators=[InputRequired()], render_kw={"placeholder": "username"}
... | 2,805 | Python | .py | 82 | 26.682927 | 87 | 0.620562 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,257 | views.py | cve-search_cve-search/web/auth/views.py | import json
import logging
import urllib.parse
import requests
from flask import redirect, request, render_template, url_for
from flask_login import logout_user, login_required, login_user, current_user
from requests.adapters import HTTPAdapter
from urllib3 import Retry
from lib.LogHandler import AppLogger
from lib.U... | 6,587 | Python | .py | 177 | 28.80226 | 88 | 0.617435 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,258 | __init__.py | cve-search_cve-search/web/admin/__init__.py | from flask import Blueprint
admin = Blueprint("admin", __name__)
from . import views
| 87 | Python | .py | 3 | 27.333333 | 36 | 0.756098 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,259 | views.py | cve-search_cve-search/web/admin/views.py | import os
import re
import subprocess
import sys
import urllib
from io import BytesIO
from flask import render_template, request, jsonify, send_file, url_for
from flask_breadcrumbs import default_breadcrumb_root, register_breadcrumb
from flask_login import current_user, login_required
from flask_plugins import (
g... | 12,060 | Python | .py | 333 | 27.96997 | 88 | 0.591026 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,260 | __init__.py | cve-search_cve-search/web/plugins/hello_world/__init__.py | from flask import Blueprint, render_template, render_template_string
from flask_plugins import connect_event
from web.helpers.app_plugin import AppPlugin
__plugin__ = "HelloWorld"
__version__ = "1.0.0"
def inject_navigation_link():
return render_template_string(
"""
<a class="nav-item nav-li... | 1,736 | Python | .py | 50 | 27.28 | 110 | 0.603717 | cve-search/cve-search | 2,271 | 587 | 2 | AGPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,261 | __version__.py | huhamhire_huhamhire-hosts/__version__.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# __version__.py : Version info for Hosts Setup Tool.
#
# Copyleft (C) 2014 - huhamhire hosts team <hosts@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have ... | 735 | Python | .py | 18 | 39.833333 | 71 | 0.574616 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,262 | hoststool.py | huhamhire_huhamhire-hosts/hoststool.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# hoststool.py : Launch the utility.
#
# Copyleft (C) 2014 - huhamhire hosts team <hosts@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have received a copy o... | 5,056 | Python | .py | 126 | 31.579365 | 78 | 0.578485 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,263 | _build.py | huhamhire_huhamhire-hosts/_build.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# _build.py : Tools to make packages for different platforms
#
# Copyleft (C) 2014 - huhamhire hosts team <hosts@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
... | 11,102 | Python | .py | 331 | 26.166163 | 78 | 0.576873 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,264 | _update.py | huhamhire_huhamhire-hosts/gui/_update.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# _update.py: Fetch the latest data file.
#
# Copyleft (C) 2014 - huhamhire <me@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have received a copy of the GNU... | 5,255 | Python | .py | 124 | 33.532258 | 78 | 0.573051 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,265 | util_ui.py | huhamhire_huhamhire-hosts/gui/util_ui.py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '../pyqt\util_ui.ui'
#
# Created: Wed Jan 22 13:03:09 2014
# by: PyQt4 UI code generator 4.10.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
excep... | 20,892 | Python | .py | 327 | 55.422018 | 204 | 0.711603 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,266 | style_rc.py | huhamhire_huhamhire-hosts/gui/style_rc.py | # -*- coding: utf-8 -*-
# Resource object code
#
# Created: 周三 1月 22 13:03:07 2014
# by: The Resource Compiler for PyQt (Qt v4.8.5)
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore
qt_resource_data = "\
\x00\x00\x01\x57\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48... | 7,095 | Python | .py | 139 | 49.884892 | 105 | 0.736531 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,267 | __doc__.py | huhamhire_huhamhire-hosts/gui/__doc__.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# __doc__.py : Document in reST format of gui module.
#
# Copyleft (C) 2014 - huhamhire <me@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have received a cop... | 6,277 | Python | .py | 146 | 40.041096 | 78 | 0.692574 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,268 | util_rc.py | huhamhire_huhamhire-hosts/gui/util_rc.py | # -*- coding: utf-8 -*-
# Resource object code
#
# Created: 周三 1月 22 13:03:07 2014
# by: The Resource Compiler for PyQt (Qt v4.8.5)
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore
qt_resource_data = "\
\x00\x00\x04\xf8\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48... | 229,377 | Python | .py | 3,568 | 63.28111 | 129 | 0.738196 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,269 | language.py | huhamhire_huhamhire-hosts/gui/language.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# language.py : Language utilities used in GUI module.
#
# Copyleft (C) 2013 - huhamhire hosts team <hosts@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have... | 3,604 | Python | .py | 89 | 30.539326 | 79 | 0.556268 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,270 | qdialog_d.py | huhamhire_huhamhire-hosts/gui/qdialog_d.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# qdialog_d.py : Operations on the main dialog.
#
# Copyleft (C) 2014 - huhamhire hosts team <hosts@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have receiv... | 15,925 | Python | .py | 380 | 32.186842 | 78 | 0.585211 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,271 | __list_trans.py | huhamhire_huhamhire-hosts/gui/__list_trans.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# __list_trans.py : Name of items from the function list to be localized
#
# Copyleft (C) 2014 - huhamhire hosts team <hosts@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3.... | 1,956 | Python | .py | 44 | 41.295455 | 73 | 0.618125 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,272 | _checkconn.py | huhamhire_huhamhire-hosts/gui/_checkconn.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# _checkconn.py: Check connect to a specified server.
#
# Copyleft (C) 2014 - huhamhire <me@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have received a cop... | 2,379 | Python | .py | 58 | 34.344828 | 78 | 0.597054 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,273 | __init__.py | huhamhire_huhamhire-hosts/gui/__init__.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# __init__.py : Declare modules to be called in gui module.
#
# Copyleft (C) 2014 - huhamhire <me@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have received... | 563 | Python | .py | 13 | 42.153846 | 71 | 0.532847 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,274 | _make.py | huhamhire_huhamhire-hosts/gui/_make.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# _make.py: Make a new hosts file.
#
# Copyleft (C) 2014 - huhamhire <me@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have received a copy of the GNU Genera... | 4,984 | Python | .py | 109 | 36.816514 | 77 | 0.606517 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,275 | hostsutil.py | huhamhire_huhamhire-hosts/gui/hostsutil.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# hostsutil.py : Main entrance to GUI module of Hosts Setup Utility.
#
# Copyleft (C) 2014 - huhamhire hosts team <hosts@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You... | 4,139 | Python | .py | 104 | 32.701923 | 78 | 0.62902 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,276 | qdialog_ui.py | huhamhire_huhamhire-hosts/gui/qdialog_ui.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# qdialog_ui.py : Draw the Graphical User Interface.
#
# Copyleft (C) 2014 - huhamhire hosts team <hosts@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have r... | 20,730 | Python | .py | 511 | 30.363992 | 78 | 0.580559 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,277 | qdialog_slots.py | huhamhire_huhamhire-hosts/gui/qdialog_slots.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# qdialog_slots.py : Qt slots response to signals on the main dialog.
#
# Copyleft (C) 2014 - huhamhire hosts team <hosts@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. Yo... | 11,695 | Python | .py | 286 | 31.293706 | 78 | 0.58 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,278 | _checkupdate.py | huhamhire_huhamhire-hosts/gui/_checkupdate.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# _checkupdate.py: Check update info of the latest data file.
#
# Copyleft (C) 2014 - huhamhire <me@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have receiv... | 2,667 | Python | .py | 62 | 36.112903 | 79 | 0.620996 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,279 | _pylupdate4.py | huhamhire_huhamhire-hosts/gui/pyqt/_pylupdate4.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# _pylupdate4.py : Tools to update the language files for UI
#
# Copyleft (C) 2013 - huhamhire hosts team <hosts@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
... | 819 | Python | .py | 20 | 38.65 | 71 | 0.583438 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,280 | _pyuic4.py | huhamhire_huhamhire-hosts/gui/pyqt/_pyuic4.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# _pyuic4.py : Tools update the UI code from UI design
#
# Copyleft (C) 2013 - huhamhire hosts team <hosts@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have rec... | 1,190 | Python | .py | 29 | 36.344828 | 71 | 0.552677 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,281 | conf.py | huhamhire_huhamhire-hosts/doc/dev/conf.py | # -*- coding: utf-8 -*-
#
# huhamhire-hosts documentation build configuration file, created by
# sphinx-quickstart on Tue Jan 14 10:49:55 2014.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated fil... | 8,175 | Python | .py | 201 | 39.029851 | 79 | 0.72948 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,282 | _update.py | huhamhire_huhamhire-hosts/tui/_update.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# _update.py: Retrieve hosts data file.
#
# Copyleft (C) 2013 - huhamhire <me@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have received a copy of the GNU G... | 2,293 | Python | .py | 59 | 31.983051 | 77 | 0.596586 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,283 | __doc__.py | huhamhire_huhamhire-hosts/tui/__doc__.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# __doc__.py Document in reST format of tui module.
#
# Copyleft (C) 2014 - huhamhire <me@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have received a copy ... | 1,404 | Python | .py | 41 | 32.04878 | 77 | 0.60963 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,284 | curses_d.py | huhamhire_huhamhire-hosts/tui/curses_d.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# curses_d.py: Operations for TUI window.
#
# Copyleft (C) 2014 - huhamhire <me@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have received a copy of the GNU... | 19,197 | Python | .py | 446 | 31.255605 | 78 | 0.517446 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,285 | curses_ui.py | huhamhire_huhamhire-hosts/tui/curses_ui.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# curses_ui.py: Draw TUI using curses.
#
# Copyleft (C) 2014 - huhamhire <me@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have received a copy of the GNU Ge... | 23,013 | Python | .py | 520 | 33.503846 | 78 | 0.53569 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,286 | __init__.py | huhamhire_huhamhire-hosts/tui/__init__.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# __init__.py: Declare modules to be called in tui module.
#
# Copyleft (C) 2014 - huhamhire <me@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have received ... | 562 | Python | .py | 13 | 42.076923 | 71 | 0.533821 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,287 | hostsutil.py | huhamhire_huhamhire-hosts/tui/hostsutil.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# hostsutil.py: Start a TUI session of `Hosts Setup Utility`.
#
# Copyleft (C) 2014 - huhamhire <me@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have receiv... | 5,787 | Python | .py | 149 | 29.583893 | 78 | 0.566845 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,288 | __doc__.py | huhamhire_huhamhire-hosts/util/__doc__.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# __doc__.py : Document in reST format of util module.
#
# Copyleft (C) 2014 - huhamhire <me@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have received a co... | 901 | Python | .py | 29 | 29.241379 | 71 | 0.581019 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,289 | makehosts.py | huhamhire_huhamhire-hosts/util/makehosts.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# makehosts.py: Make a hosts file.
#
# Copyleft (C) 2014 - huhamhire <me@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have received a copy of the GNU Genera... | 7,404 | Python | .py | 183 | 30.497268 | 78 | 0.547728 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,290 | __init__.py | huhamhire_huhamhire-hosts/util/__init__.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# __init__.py: Declare modules to be called in util module.
#
# Copyleft (C) 2014 - huhamhire <me@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have received... | 660 | Python | .py | 15 | 42.933333 | 71 | 0.582298 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,291 | retrievedata.py | huhamhire_huhamhire-hosts/util/retrievedata.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# retrievedata.py : Retrieve data from the hosts data file.
#
# Copyleft (C) 2014 - huhamhire hosts team <hosts@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# ... | 10,221 | Python | .py | 262 | 29.740458 | 78 | 0.563207 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,292 | common.py | huhamhire_huhamhire-hosts/util/common.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# common.py : Basic utilities used by Hosts Setup Utility.
#
# Copyleft (C) 2013 - huhamhire hosts team <hosts@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# h... | 8,627 | Python | .py | 221 | 28.294118 | 77 | 0.508302 | huhamhire/huhamhire-hosts | 1,500 | 289 | 54 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,293 | Makefile.pythonscripts.am | freeipa_freeipa/Makefile.pythonscripts.am | # special handling of Python scripts with auto-generated shebang line
$(PYTHON_SHEBANG):%: %.in Makefile
$(AM_V_GEN)sed -e 's|^#!/usr/bin/python3.*|#!$(PYTHON) -I|g' $< > $@
$(AM_V_GEN)chmod +x $@
.PHONY: python_scripts_sub
python_scripts_sub: $(PYTHON_SHEBANG)
| 265 | Python | .py | 6 | 42.666667 | 69 | 0.678295 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,294 | Makefile.python.am | freeipa_freeipa/Makefile.python.am | pkgname = $(shell basename "$(abs_srcdir)")
pkgpythondir = $(pythondir)/$(pkgname)
if VERBOSE_MAKE
VERBOSITY="--verbose"
else
VERBOSITY="--quiet"
endif !VERBOSE_MAKE
# hack to handle back-in-the-hierarchy depedency on ipasetup.py
.PHONY: $(top_builddir)/ipasetup.py
$(top_builddir)/ipasetup.py:
(cd $(top_builddir) &&... | 2,322 | Python | .py | 63 | 32.936508 | 87 | 0.627277 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,295 | pylint_plugins.py | freeipa_freeipa/pylint_plugins.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
from __future__ import print_function
import copy
import os.path
import sys
import textwrap
from astroid import MANAGER, register_module_extender
from astroid.nodes import scoped_nodes
from pylint.checkers import BaseChecker
from pylint.checkers.... | 18,000 | Python | .py | 531 | 27.016949 | 78 | 0.626128 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,296 | ipasetup.py.in | freeipa_freeipa/ipasetup.py.in | # Copyright (C) 2016 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any l... | 6,233 | Python | .py | 151 | 33.529801 | 78 | 0.619456 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,297 | conftest.py | freeipa_freeipa/ipatests/conftest.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
from __future__ import print_function
import os
import pprint
import shutil
import sys
import tempfile
import pytest
from ipalib import api
from ipalib.cli import cli_plugins
import ipatests.util
try:
import ipaplatform # pylint: disable=un... | 5,719 | Python | .py | 151 | 31.516556 | 79 | 0.67251 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,298 | util.py | freeipa_freeipa/ipatests/util.py | # Authors:
# Jason Gerard DeRose <jderose@redhat.com>
#
# Copyright (C) 2008 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, ei... | 24,923 | Python | .py | 713 | 27.757363 | 79 | 0.61291 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,299 | setup.py | freeipa_freeipa/ipatests/setup.py | # Copyright (C) 2007 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any l... | 3,083 | Python | .py | 84 | 27.845238 | 72 | 0.573289 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |