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
37,400
oomox_plugin.py
themix-project_themix-gui/plugins/icons_suruplus_aspromauros/oomox_plugin.py
import os from typing import TYPE_CHECKING from oomox_gui.color import mix_theme_colors from oomox_gui.config import FALLBACK_COLOR from oomox_gui.export_common import CommonIconThemeExportDialog from oomox_gui.i18n import translate from oomox_gui.plugin_api import OomoxIconsPlugin if TYPE_CHECKING: from typing i...
3,792
Python
.py
102
27.245098
90
0.572789
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,401
oomox_plugin.py
themix-project_themix-gui/plugins/icons_suruplus/oomox_plugin.py
import os from typing import TYPE_CHECKING from oomox_gui.color import mix_theme_colors from oomox_gui.config import FALLBACK_COLOR from oomox_gui.export_common import CommonIconThemeExportDialog from oomox_gui.i18n import translate from oomox_gui.plugin_api import OomoxIconsPlugin if TYPE_CHECKING: from typing i...
4,509
Python
.py
125
25.84
90
0.548055
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,402
oomox_plugin.py
themix-project_themix-gui/plugins/export_xresources/oomox_plugin.py
import os import re from pathlib import Path from typing import TYPE_CHECKING from oomox_gui.config import DEFAULT_ENCODING from oomox_gui.export_common import DialogWithExportPath from oomox_gui.helpers import natural_sort from oomox_gui.i18n import translate from oomox_gui.plugin_api import OomoxExportPlugin from oo...
2,748
Python
.py
74
28.675676
100
0.62885
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,403
oomox_plugin.py
themix-project_themix-gui/plugins/icons_archdroid/oomox_plugin.py
import os from typing import TYPE_CHECKING from oomox_gui.config import FALLBACK_COLOR from oomox_gui.export_common import CommonIconThemeExportDialog from oomox_gui.i18n import translate from oomox_gui.plugin_api import OomoxIconsPlugin if TYPE_CHECKING: from typing import Final from oomox_gui.theme_file im...
2,079
Python
.py
55
30.345455
90
0.642111
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,404
oomox_plugin.py
themix-project_themix-gui/plugins/icons_gnomecolors/oomox_plugin.py
import os from typing import TYPE_CHECKING from oomox_gui.config import FALLBACK_COLOR from oomox_gui.export_common import CommonIconThemeExportDialog from oomox_gui.i18n import translate from oomox_gui.plugin_api import OomoxIconsPlugin if TYPE_CHECKING: from typing import Final from oomox_gui.theme_file im...
2,857
Python
.py
78
27.948718
91
0.595152
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,405
oomox_plugin.py
themix-project_themix-gui/plugins/icons_numix/oomox_plugin.py
import os from typing import TYPE_CHECKING from oomox_gui.config import FALLBACK_COLOR from oomox_gui.export_common import CommonIconThemeExportDialog from oomox_gui.i18n import translate from oomox_gui.plugin_api import OomoxIconsPlugin if TYPE_CHECKING: from typing import Final from oomox_gui.preview impor...
4,066
Python
.py
111
27.72973
90
0.54647
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,406
oomox_plugin.py
themix-project_themix-gui/plugins/import_random/oomox_plugin.py
import os import random from typing import TYPE_CHECKING from gi.repository import Gdk from oomox_gui.color import convert_gdk_to_theme_color from oomox_gui.config import DEFAULT_ENCODING from oomox_gui.plugin_api import OomoxImportPlugin from oomox_gui.theme_model import get_theme_model if TYPE_CHECKING: from t...
2,665
Python
.py
68
30.661765
87
0.590361
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,407
oomox_plugin.py
themix-project_themix-gui/plugins/icons_papirus/oomox_plugin.py
import os from typing import TYPE_CHECKING from oomox_gui.color import mix_theme_colors from oomox_gui.config import FALLBACK_COLOR from oomox_gui.export_common import CommonIconThemeExportDialog from oomox_gui.i18n import translate from oomox_gui.plugin_api import OomoxIconsPlugin if TYPE_CHECKING: from typing i...
3,305
Python
.py
90
27.566667
90
0.579819
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,408
oomox_plugin.py
themix-project_themix-gui/plugins/import_xresources/oomox_plugin.py
import os import subprocess from typing import Final from oomox_gui.config import DEFAULT_ENCODING from oomox_gui.plugin_api import OomoxImportPlugin from oomox_gui.theme_model import get_theme_model PLUGIN_DIR: Final = os.path.dirname(os.path.realpath(__file__)) class XrdbCache: _cache: dict[str, str] | None ...
2,365
Python
.py
63
27.111111
80
0.559982
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,409
oomox_plugin.py
themix-project_themix-gui/plugins/theme_arc/oomox_plugin.py
import os from typing import TYPE_CHECKING from gi.repository import Gtk from oomox_gui.color import mix_theme_colors from oomox_gui.export_common import ExportDialogWithOptions from oomox_gui.i18n import translate # from oomox_gui.export_common import OPTION_GTK2_HIDPI from oomox_gui.plugin_api import OomoxThemePlu...
7,223
Python
.py
187
26.828877
96
0.53631
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,410
ima.py
themix-project_themix-gui/plugins/import_from_image/ima.py
import sys from PIL import Image SMOKE, WEED, EVERYDAY = 0, 1, 2 RAICHU = 200 RAIKOU = 1000 DEOXYS = 10000 def swablu(salamence, golduck, lileep=WEED + EVERYDAY): # pylint: disable=too-many-branches azumarill = salamence beautifly = len(azumarill) espeon = beautifly umbreon = SMOKE while ...
5,076
Python
.py
135
26.555556
89
0.569159
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,411
oomox_plugin.py
themix-project_themix-gui/plugins/import_from_image/oomox_plugin.py
# pylint:disable=import-outside-toplevel import gc import os from multiprocessing.pool import Pool from time import time from typing import TYPE_CHECKING from oomox_gui.color import ( RGB, color_hex_from_list, color_list_from_hex, find_closest_color, hex_darker, hex_to_int, int_list_from_he...
26,026
Python
.py
647
29.128284
103
0.551015
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,412
oomox_plugin.py
themix-project_themix-gui/plugins/theme_materia/oomox_plugin.py
import os from typing import TYPE_CHECKING from oomox_gui.color import convert_theme_color_to_gdk, mix_theme_colors from oomox_gui.export_common import CommonGtkThemeExportDialog from oomox_gui.i18n import translate from oomox_gui.plugin_api import OomoxThemePlugin if TYPE_CHECKING: from typing import Any, Final ...
5,444
Python
.py
151
25.980132
79
0.559711
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,413
Dockerfile_python34_venv_arch
themix-project_themix-gui/dockerfiles/Dockerfile_python34_venv_arch
FROM archlinux/base WORKDIR /opt/oomox-build/ # App and test (xvfb, pylint) deps RUN pacman -Syu --noconfirm && \ pacman -S --needed --noconfirm gtk3 python-gobject python-pylint xorg-server-xvfb # python3.4 virtualenv deps RUN pacman -Syu --noconfirm && \ pacman -S --needed --noconfirm python-virtualenv gobj...
1,402
Python
.pyt
39
31.589744
85
0.635294
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,414
Dockerfile_python310_ubuntu_2204
themix-project_themix-gui/dockerfiles/Dockerfile_python310_ubuntu_2204
FROM library/ubuntu:jammy WORKDIR /opt/oomox-build/ # App and test (xvfb, pylint) deps RUN apt-get update -y && \ env DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends gtk+3.0 python3-gi xvfb python3-pip psmisc python3-pystache python3-yaml make RUN pip3 install setuptools && \ pip3 ins...
416
Python
.pyt
9
44
159
0.769802
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,415
autofix_locale_format.py
YunoHost_yunohost/maintenance/autofix_locale_format.py
import os import re import json import glob from collections import OrderedDict ROOT = os.path.dirname(__file__) + "/../" LOCALE_FOLDER = ROOT + "/locales/" # List all locale files (except en.json being the ref) TRANSLATION_FILES = glob.glob(LOCALE_FOLDER + "*.json") TRANSLATION_FILES = [filename.split("/")[-1] for f...
5,258
Python
.py
139
27.719424
90
0.51978
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,416
update_copyright_headers.sh
YunoHost_yunohost/maintenance/update_copyright_headers.sh
# To run this you'll need to: # # pip3 install licenseheaders licenseheaders \ -o "YunoHost Contributors" \ -n "YunoHost" \ -u "https://yunohost.org" \ -t ./agplv3.tpl \ --current-year \ -f ../src/*.py ../src/{utils,diagnosers,authenticators}/*.py
274
Python
.py
10
23.8
64
0.637405
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,417
missing_i18n_keys.py
YunoHost_yunohost/maintenance/missing_i18n_keys.py
# -*- coding: utf-8 -*- import toml import os import re import glob import json import yaml import subprocess import sys ROOT = os.path.dirname(__file__) + "/../" LOCALE_FOLDER = ROOT + "/locales/" REFERENCE_FILE = LOCALE_FOLDER + "en.json" ############################################################################...
8,306
Python
.py
201
32.791045
120
0.556161
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,418
copyright
YunoHost_yunohost/debian/copyright
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: https://github.com/YunoHost/yunohost Files: * Copyright: 2015 YUNOHOST.ORG License: AGPL-3 License: AGPL-3 OPA is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License, versio...
35,196
Python
.py
676
50.071006
78
0.806912
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,419
user.py
YunoHost_yunohost/src/user.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
51,812
Python
.py
1,225
33.452245
127
0.611536
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,420
settings.py
YunoHost_yunohost/src/settings.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
11,817
Python
.py
287
33.954704
87
0.65059
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,421
hook.py
YunoHost_yunohost/src/hook.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
19,904
Python
.py
499
30.482966
93
0.589767
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,422
ssh.py
YunoHost_yunohost/src/ssh.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
5,995
Python
.py
149
33.033557
85
0.627465
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,423
backup.py
YunoHost_yunohost/src/backup.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
96,587
Python
.py
2,203
32.729914
210
0.582333
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,424
domain.py
YunoHost_yunohost/src/domain.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
27,728
Python
.py
654
33.969419
102
0.636969
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,425
permission.py
YunoHost_yunohost/src/permission.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
31,964
Python
.py
749
34.271028
252
0.625733
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,426
regenconf.py
YunoHost_yunohost/src/regenconf.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
25,943
Python
.py
587
33.265758
109
0.595047
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,427
app.py
YunoHost_yunohost/src/app.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
123,933
Python
.py
2,838
33.717759
298
0.5854
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,428
diagnosis.py
YunoHost_yunohost/src/diagnosis.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
24,463
Python
.py
569
32.509666
334
0.587658
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,429
certificate.py
YunoHost_yunohost/src/certificate.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
30,622
Python
.py
703
34.709815
221
0.624251
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,430
__init__.py
YunoHost_yunohost/src/__init__.py
#! /usr/bin/python # # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either versi...
6,100
Python
.py
154
31.564935
105
0.60774
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,431
firewall.py
YunoHost_yunohost/src/firewall.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
17,565
Python
.py
469
27.070362
85
0.56012
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,432
tools.py
YunoHost_yunohost/src/tools.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
35,996
Python
.py
850
33.171765
286
0.620445
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,433
app_catalog.py
YunoHost_yunohost/src/app_catalog.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
11,372
Python
.py
255
35.478431
110
0.623111
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,434
service.py
YunoHost_yunohost/src/service.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
27,405
Python
.py
681
31.791483
249
0.617439
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,435
dyndns.py
YunoHost_yunohost/src/dyndns.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
18,507
Python
.py
421
36.306413
144
0.651599
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,436
dns.py
YunoHost_yunohost/src/dns.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
38,019
Python
.py
896
32.21317
150
0.541785
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,437
0024_rebuild_python_venv.py
YunoHost_yunohost/src/migrations/0024_rebuild_python_venv.py
import os from moulinette import m18n from moulinette.utils.log import getActionLogger from moulinette.utils.process import call_async_output from yunohost.tools import Migration, tools_migrations_state from moulinette.utils.filesystem import rm logger = getActionLogger("yunohost.migration") VENV_REQUIREMENTS_SUFF...
5,837
Python
.py
155
26.419355
123
0.547337
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,438
0021_migrate_to_bullseye.py
YunoHost_yunohost/src/migrations/0021_migrate_to_bullseye.py
import glob import os from moulinette import m18n from yunohost.utils.error import YunohostError from moulinette.utils.log import getActionLogger from moulinette.utils.process import check_output, call_async_output from moulinette.utils.filesystem import read_file, rm, write_to_file from yunohost.tools import ( M...
23,385
Python
.py
494
36.605263
593
0.594045
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,439
0022_php73_to_php74_pools.py
YunoHost_yunohost/src/migrations/0022_php73_to_php74_pools.py
import os import glob from shutil import copy2 from moulinette.utils.log import getActionLogger from yunohost.app import _is_installed from yunohost.utils.legacy import _patch_legacy_php_versions_in_settings from yunohost.tools import Migration from yunohost.service import _run_service_command logger = getActionLogg...
3,306
Python
.py
73
35.479452
86
0.590343
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,440
0026_new_admins_group.py
YunoHost_yunohost/src/migrations/0026_new_admins_group.py
from moulinette.utils.log import getActionLogger from yunohost.tools import Migration logger = getActionLogger("yunohost.migration") ################################################### # Tools used also for restoration ################################################### class MyMigration(Migration): """ Ad...
4,772
Python
.py
129
24.333333
88
0.483005
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,441
0027_migrate_to_bookworm.py.disabled
YunoHost_yunohost/src/migrations/0027_migrate_to_bookworm.py.disabled
import glob import os import subprocess from time import sleep # Explicitly import _strptime to prevent an issue that may arise later because of python3.9 being replaced by 3.11 in the middle of the upgrade etc import _strptime # noqa: F401 from moulinette import Moulinette, m18n from moulinette.utils.process import ...
21,077
Python
.py
394
43.444162
600
0.627542
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,442
0023_postgresql_11_to_13.py
YunoHost_yunohost/src/migrations/0023_postgresql_11_to_13.py
import subprocess import time import os from moulinette import m18n from yunohost.utils.error import YunohostError, YunohostValidationError from moulinette.utils.log import getActionLogger from yunohost.tools import Migration from yunohost.utils.system import free_space_in_directory, space_used_by_directory logger =...
3,194
Python
.py
74
33.22973
184
0.615211
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,443
0025_global_settings_to_configpanel.py
YunoHost_yunohost/src/migrations/0025_global_settings_to_configpanel.py
import os from yunohost.utils.error import YunohostError from moulinette.utils.log import getActionLogger from moulinette.utils.filesystem import read_json, write_to_yaml from yunohost.tools import Migration from yunohost.utils.legacy import translate_legacy_settings_to_configpanel_settings logger = getActionLogger(...
1,339
Python
.py
30
37.1
83
0.68697
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,444
error.py
YunoHost_yunohost/src/utils/error.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
1,948
Python
.py
47
36.702128
77
0.710958
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,445
password.py
YunoHost_yunohost/src/utils/password.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
7,882
Python
.py
188
34.308511
135
0.646122
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,446
ldap.py
YunoHost_yunohost/src/utils/ldap.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
10,038
Python
.py
262
28.20229
96
0.572883
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,447
resources.py
YunoHost_yunohost/src/utils/resources.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
68,366
Python
.py
1,267
43.074191
469
0.613051
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,448
form.py
YunoHost_yunohost/src/utils/form.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
40,756
Python
.py
937
31.563501
133
0.56965
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,449
network.py
YunoHost_yunohost/src/utils/network.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
5,490
Python
.py
132
35.424242
114
0.636637
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,450
legacy.py
YunoHost_yunohost/src/utils/legacy.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
14,058
Python
.py
301
38.996678
227
0.613713
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,451
i18n.py
YunoHost_yunohost/src/utils/i18n.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
1,287
Python
.py
36
31.777778
74
0.72508
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,452
__init__.py
YunoHost_yunohost/src/utils/__init__.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
764
Python
.py
18
41.444444
74
0.77882
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,453
configpanel.py
YunoHost_yunohost/src/utils/configpanel.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
26,307
Python
.py
596
30.944631
166
0.539801
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,454
yunopaste.py
YunoHost_yunohost/src/utils/yunopaste.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
3,768
Python
.py
90
35.944444
221
0.678327
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,455
system.py
YunoHost_yunohost/src/utils/system.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
11,804
Python
.py
271
36.579336
159
0.636594
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,456
dns.py
YunoHost_yunohost/src/utils/dns.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
3,721
Python
.py
85
39.023529
87
0.700304
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,457
conftest.py
YunoHost_yunohost/src/tests/conftest.py
import os import pytest import moulinette from moulinette import m18n, Moulinette from yunohost.utils.error import YunohostError from contextlib import contextmanager @pytest.fixture(scope="session", autouse=True) def clone_test_app(request): cwd = os.path.split(os.path.realpath(__file__))[0] if not os.path...
2,045
Python
.py
54
33.185185
82
0.693878
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,458
test_regenconf.py
YunoHost_yunohost/src/tests/test_regenconf.py
import os from .conftest import message from yunohost.domain import domain_add, domain_remove, domain_list from yunohost.regenconf import ( regen_conf, manually_modified_files, _get_conf_hashes, _force_clear_hashes, ) TEST_DOMAIN = "secondarydomain.test" TEST_DOMAIN_NGINX_CONFIG = "/etc/nginx/conf.d/%...
6,369
Python
.py
143
40.804196
80
0.721745
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,459
test_domains.py
YunoHost_yunohost/src/tests/test_domains.py
import pytest import os import random from mock import patch from moulinette import Moulinette from moulinette.core import MoulinetteError from yunohost.utils.error import YunohostError, YunohostValidationError from yunohost.domain import ( DOMAIN_SETTINGS_DIR, _get_maindomain, domain_add, domain_rem...
5,647
Python
.py
126
38.825397
103
0.697445
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,460
test_questions.py
YunoHost_yunohost/src/tests/test_questions.py
import inspect import sys import pytest import os import tempfile from contextlib import contextmanager from mock import patch from io import StringIO from typing import Any, Literal, Sequence, TypedDict, Union from _pytest.mark.structures import ParameterSet from moulinette import Moulinette from yunohost import a...
92,562
Python
.py
1,952
34.373463
281
0.513061
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,461
test_apps.py
YunoHost_yunohost/src/tests/test_apps.py
import glob import os import pytest import shutil import requests from .conftest import message, raiseYunohostError, get_test_apps_dir from moulinette.utils.filesystem import mkdir from yunohost.app import ( app_install, app_remove, app_ssowatconf, _is_installed, app_upgrade, app_map, app...
23,152
Python
.py
533
35.787992
142
0.644733
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,462
test_ldapauth.py
YunoHost_yunohost/src/tests/test_ldapauth.py
import pytest import os from yunohost.authenticators.ldap_admin import Authenticator as LDAPAuth from yunohost.user import user_create, user_list, user_update, user_delete from yunohost.domain import _get_maindomain from moulinette import m18n from moulinette.core import MoulinetteError def setup_function(function)...
2,535
Python
.py
50
45.66
87
0.753564
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,463
test_app_resources.py
YunoHost_yunohost/src/tests/test_app_resources.py
import os import pytest from moulinette.utils.process import check_output from yunohost.app import app_setting from yunohost.domain import _get_maindomain from yunohost.utils.resources import ( AppResource, AppResourceManager, AppResourceClassesByType, ) from yunohost.permission import user_permission_lis...
12,265
Python
.py
267
40.262172
88
0.647212
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,464
test_app_config.py
YunoHost_yunohost/src/tests/test_app_config.py
import glob import os import shutil import pytest from mock import patch from .conftest import get_test_apps_dir from moulinette import Moulinette from moulinette.utils.filesystem import read_file from yunohost.domain import _get_maindomain from yunohost.app import ( app_setting, app_install, app_remove,...
6,137
Python
.py
139
38.755396
88
0.690857
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,465
test_settings.py
YunoHost_yunohost/src/tests/test_settings.py
import os import pytest import yaml from mock import patch import moulinette from yunohost.utils.error import YunohostError, YunohostValidationError from yunohost.settings import ( settings_get, settings_list, settings_set, settings_reset, settings_reset_all, SETTINGS_PATH, ) EXAMPLE_SETTINGS...
8,200
Python
.py
205
35.663415
117
0.650309
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,466
test_appurl.py
YunoHost_yunohost/src/tests/test_appurl.py
import pytest import os from .conftest import get_test_apps_dir from yunohost.utils.error import YunohostError from yunohost.app import ( app_install, app_remove, _is_app_repo_url, _parse_app_instance_name, ) from yunohost.domain import _get_maindomain, domain_url_available from yunohost.permission im...
8,789
Python
.py
221
32.742081
88
0.627403
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,467
test_user-group.py
YunoHost_yunohost/src/tests/test_user-group.py
import pytest from .conftest import message, raiseYunohostError from yunohost.user import ( user_list, user_info, user_create, user_delete, user_update, user_import, user_export, FIELDS_FOR_IMPORT, user_group_list, user_group_create, user_group_delete, user_group_update...
9,808
Python
.py
245
33.632653
100
0.649408
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,468
test_app_catalog.py
YunoHost_yunohost/src/tests/test_app_catalog.py
import os import pytest import requests import requests_mock import glob import shutil from moulinette import m18n from moulinette.utils.filesystem import read_json, write_to_json, write_to_yaml from yunohost.utils.error import YunohostError from yunohost.app_catalog import ( _initialize_apps_catalog_system, ...
9,229
Python
.py
225
34.457778
123
0.655659
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,469
test_changeurl.py
YunoHost_yunohost/src/tests/test_changeurl.py
import pytest import time import requests import os from .conftest import get_test_apps_dir from yunohost.app import app_install, app_change_url, app_remove, app_map from yunohost.domain import _get_maindomain from yunohost.utils.error import YunohostError # Get main domain maindomain = "" def setup_function(func...
1,500
Python
.py
41
32.097561
83
0.713092
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,470
test_permission.py
YunoHost_yunohost/src/tests/test_permission.py
import socket import requests import pytest import string import os import json import shutil from .conftest import message, raiseYunohostError, get_test_apps_dir from yunohost.app import ( app_install, app_upgrade, app_remove, app_change_url, app_map, _installed_apps, APPS_SETTING_PATH, ...
39,785
Python
.py
885
38.223729
117
0.65015
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,471
test_backuprestore.py
YunoHost_yunohost/src/tests/test_backuprestore.py
import pytest import os import shutil import subprocess from mock import patch from .conftest import message, raiseYunohostError, get_test_apps_dir from moulinette.utils.text import random_ascii from yunohost.app import app_install, app_remove, app_ssowatconf from yunohost.app import _is_installed from yunohost.back...
21,592
Python
.py
499
37.146293
150
0.665599
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,472
test_service.py
YunoHost_yunohost/src/tests/test_service.py
import os from .conftest import raiseYunohostError from yunohost.service import ( _get_services, _save_services, service_status, service_add, service_remove, service_log, service_reload_or_restart, ) def setup_function(function): clean() def teardown_function(function): clean()...
3,786
Python
.py
85
39.658824
75
0.705931
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,473
test_dns.py
YunoHost_yunohost/src/tests/test_dns.py
import pytest from moulinette.utils.filesystem import read_toml from yunohost.domain import domain_add, domain_remove from yunohost.dns import ( DOMAIN_REGISTRAR_LIST_PATH, _get_dns_zone_for_domain, _get_registrar_config_section, _build_dns_conf, ) def setup_function(function): clean() def tea...
2,271
Python
.py
56
36.232143
86
0.701233
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,474
ldap_admin.py
YunoHost_yunohost/src/authenticators/ldap_admin.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
6,392
Python
.py
146
34.054795
122
0.629344
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,475
10-ip.py
YunoHost_yunohost/src/diagnosers/10-ip.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
9,947
Python
.py
225
33.164444
109
0.545736
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,476
24-mail.py
YunoHost_yunohost/src/diagnosers/24-mail.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
12,295
Python
.py
288
28.472222
122
0.509686
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,477
14-ports.py
YunoHost_yunohost/src/diagnosers/14-ports.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
7,002
Python
.py
157
29.070064
87
0.494292
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,478
30-services.py
YunoHost_yunohost/src/diagnosers/30-services.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
2,052
Python
.py
48
34.895833
88
0.634085
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,479
70-regenconf.py
YunoHost_yunohost/src/diagnosers/70-regenconf.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
3,287
Python
.py
78
32.320513
86
0.599813
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,480
50-systemresources.py
YunoHost_yunohost/src/diagnosers/50-systemresources.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
7,952
Python
.py
199
29.221106
151
0.54165
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,481
__init__.py
YunoHost_yunohost/src/diagnosers/__init__.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
764
Python
.py
18
41.444444
74
0.77882
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,482
21-web.py
YunoHost_yunohost/src/diagnosers/21-web.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
9,543
Python
.py
203
32.571429
88
0.535515
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,483
00-basesystem.py
YunoHost_yunohost/src/diagnosers/00-basesystem.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
12,910
Python
.py
286
33.839161
134
0.575695
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,484
80-apps.py
YunoHost_yunohost/src/diagnosers/80-apps.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
3,677
Python
.py
93
29.311828
106
0.559104
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,485
12-dnsrecords.py
YunoHost_yunohost/src/diagnosers/12-dnsrecords.py
# # Copyright (c) 2024 YunoHost Contributors # # This file is part of YunoHost (see https://yunohost.org) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Licen...
12,956
Python
.py
290
31.4
116
0.525907
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,486
acme_tiny.py
YunoHost_yunohost/src/vendor/acme_tiny/acme_tiny.py
#!/usr/bin/env python # Copyright Daniel Roesler, under MIT license, see LICENSE at github.com/diafygi/acme-tiny import argparse, subprocess, json, os, sys, base64, binascii, time, hashlib, re, copy, textwrap, logging try: from urllib.request import urlopen, Request # Python 3 except ImportError: from urllib2...
12,884
Python
.py
309
32.951456
227
0.593337
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,487
generate_resource_doc.py
YunoHost_yunohost/doc/generate_resource_doc.py
import ast import datetime import subprocess version = open("../debian/changelog").readlines()[0].split()[1].strip("()") today = datetime.datetime.now().strftime("%d/%m/%Y") def get_current_commit(): p = subprocess.Popen( "git rev-parse --verify HEAD", shell=True, stdout=subprocess.PIPE, ...
1,763
Python
.py
52
30.346154
164
0.699173
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,488
generate_helper_doc.py
YunoHost_yunohost/doc/generate_helper_doc.py
#!/usr/env/python3 import sys import os import glob import datetime import subprocess tree = { "sources": { "title": "Sources", "notes": "This is coupled to the 'sources' resource in the manifest.toml", "subsections": ["sources"], }, "tech": { "title": "App technologies", ...
9,800
Python
.py
236
27.15678
173
0.470947
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,489
generate_bash_completion.py
YunoHost_yunohost/doc/generate_bash_completion.py
""" Simple automated generation of a bash_completion file for yunohost command from the actionsmap. Generates a bash completion file assuming the structure `yunohost category action` adds `--help` at the end if one presses [tab] again. author: Christophe Vuillot """ import os import yaml THIS_SCRIPT_DIR = os.path.d...
6,670
Python
.py
133
39.383459
88
0.595699
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,490
generate_manpages.py
YunoHost_yunohost/doc/generate_manpages.py
""" Inspired by yunohost_completion.py (author: Christophe Vuillot) ======= This script generates man pages for yunohost. Pages are stored in OUTPUT_DIR """ import os import yaml import gzip import argparse from datetime import date from collections import OrderedDict from jinja2 import Template base_path = os.pat...
2,375
Python
.py
63
30.777778
81
0.657193
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,491
generate_api_doc.py
YunoHost_yunohost/doc/generate_api_doc.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ License Copyright (C) 2013 YunoHost This program is free software; you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (a...
12,079
Python
.py
255
25.270588
137
0.382842
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,492
0024_rebuild_python_venv.py
YunoHost_yunohost/src/migrations/0024_rebuild_python_venv.py
import os from moulinette import m18n from moulinette.utils.log import getActionLogger from moulinette.utils.process import call_async_output from yunohost.tools import Migration, tools_migrations_state from moulinette.utils.filesystem import rm logger = getActionLogger("yunohost.migration") VENV_REQUIREMENTS_SUFF...
5,837
Python
.pyt
155
26.419355
123
0.547337
YunoHost/yunohost
2,053
277
58
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,493
setup.py
google_rekall/setup.py
#!/usr/bin/env python # Rekall # Copyright 2013 Google Inc. All Rights Reserved. # # Authors: # Michael Cohen <scudette@gmail.com> # # 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 versi...
4,076
Python
.py
107
32.88785
80
0.680376
google/rekall
1,915
397
201
GPL-2.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,494
_version.py
google_rekall/_version.py
# Machine Generated - do not edit! # This file is produced when the main "version.py update" command is run. That # command copies this file to all sub-packages which contain # setup.py. Configuration is maintain in version.yaml at the project's top # level. def get_versions(): return tag_version_data(raw_versio...
3,377
Python
.py
85
33.223529
78
0.627559
google/rekall
1,915
397
201
GPL-2.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,495
version.py
google_rekall/version.py
#!/usr/bin/python """Global version file. This program is used to manage versions. Prior to each release, please run it with update. """ from __future__ import print_function import arrow import argparse import json import os import yaml _VERSION_CODE = ''' import json import os import subprocess try: # We are ...
7,287
Python
.py
182
33.851648
79
0.646466
google/rekall
1,915
397
201
GPL-2.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,496
submit.py
google_rekall/tools/testing/submit.py
#!/usr/bin/python """This is a CGI handler for github push webhooks. To install: 1. Copy this file to your server cgi-bin directory (e.g. /usr/lib/cgi-bin/).\ 2. Modify the SECRET below. 3. create a new github web hook with the URL to this cgi file and update the SECRET. All this file does is write a control file...
1,049
Python
.py
34
28.529412
80
0.726368
google/rekall
1,915
397
201
GPL-2.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,497
test_suite.py
google_rekall/tools/testing/test_suite.py
#!/usr/bin/env python # Rekall # Copyright 2013 Google Inc. All Rights Reserved. # # Authors: # Michael Cohen <scudette@gmail.com> # Copyright (c) 2012 # # 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 Fou...
23,385
Python
.py
488
37.237705
82
0.59891
google/rekall
1,915
397
201
GPL-2.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,498
tap.py
google_rekall/tools/testing/tap.py
#!/usr/bin/env python # Rekall # Copyright 2014 Google Inc. All Rights Reserved. # # Authors: # Michael Cohen <scudette@google.com> # # 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 vers...
9,582
Python
.py
206
38.364078
253
0.627369
google/rekall
1,915
397
201
GPL-2.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,499
setup.py
google_rekall/tools/layout_expert/setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2016 Google Inc. All Rights Reserved. # # Authors: # Arkadiusz Socała <as277575@mimuw.edu.pl> # Michael Cohen <scudette@google.com> # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with th...
2,981
Python
.py
85
30.694118
80
0.683936
google/rekall
1,915
397
201
GPL-2.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)