Esempio n. 1
0
# Copyright (C) 2020-2022 by UsergeTeam@Github, < https://github.com/UsergeTeam >.
#
# This file is part of < https://github.com/UsergeTeam/Userge > project,
# and is released under the "GNU v3.0 License Agreement".
# Please see < https://github.com/UsergeTeam/Userge/blob/master/LICENSE >
#
# All rights reserved.
""" ocr reader """

import os

from userge.utils import secure_env

OCR_SPACE_API_KEY = os.environ.get(secure_env("OCR_SPACE_API_KEY"))
Esempio n. 2
0
# Copyright (C) 2020-2022 by UsergeTeam@Github, < https://github.com/UsergeTeam >.
#
# This file is part of < https://github.com/UsergeTeam/Userge > project,
# and is released under the "GNU v3.0 License Agreement".
# Please see < https://github.com/UsergeTeam/Userge/blob/master/LICENSE >
#
# All rights reserved.

""" google image search """

import os

from userge.utils import secure_env

GCS_API_KEY = os.environ.get(secure_env("GCS_API_KEY"))
GCS_IMAGE_E_ID = os.environ.get("GCS_IMAGE_E_ID")
Esempio n. 3
0
# Copyright (C) 2020-2022 by UsergeTeam@Github, < https://github.com/UsergeTeam >.
#
# This file is part of < https://github.com/UsergeTeam/Userge > project,
# and is released under the "GNU v3.0 License Agreement".
# Please see < https://github.com/UsergeTeam/Userge/blob/master/LICENSE >
#
# All rights reserved.

""" convert currency """

import os

from userge.utils import secure_env

CURRENCY_API = os.environ.get(secure_env("CURRENCY_API"))
Esempio n. 4
0
# Copyright (C) 2020-2022 by UsergeTeam@Github, < https://github.com/UsergeTeam >.
#
# This file is part of < https://github.com/UsergeTeam/Userge > project,
# and is released under the "GNU v3.0 License Agreement".
# Please see < https://github.com/UsergeTeam/Userge/blob/master/LICENSE >
#
# All rights reserved.
""" check user's info """

from os import environ

from userge.utils import secure_env

USERGE_ANTISPAM_API = environ.get(secure_env("USERGE_ANTISPAM_API"))
SPAM_WATCH_API = environ.get(secure_env("SPAM_WATCH_API"))
Esempio n. 5
0
# Copyright (C) 2020-2022 by UsergeTeam@Github, < https://github.com/UsergeTeam >.
#
# This file is part of < https://github.com/UsergeTeam/Userge > project,
# and is released under the "GNU v3.0 License Agreement".
# Please see < https://github.com/UsergeTeam/Userge/blob/master/LICENSE >
#
# All rights reserved.
""" remove background from image """

import os

from userge.utils import secure_env

REMOVE_BG_API_KEY = os.environ.get(secure_env("REMOVE_BG_API_KEY"))
Esempio n. 6
0
# Copyright (C) 2020-2022 by UsergeTeam@Github, < https://github.com/UsergeTeam >.
#
# This file is part of < https://github.com/UsergeTeam/Userge > project,
# and is released under the "GNU v3.0 License Agreement".
# Please see < https://github.com/UsergeTeam/Userge/blob/master/LICENSE >
#
# All rights reserved.
""" Virus-Total module to check virus in files """

from os import environ

from userge.utils import secure_env

API_KEY = environ.get(secure_env("VT_API_KEY"))
Esempio n. 7
0
# Copyright (C) 2020-2022 by UsergeTeam@Github, < https://github.com/UsergeTeam >.
#
# This file is part of < https://github.com/UsergeTeam/Userge > project,
# and is released under the "GNU v3.0 License Agreement".
# Please see < https://github.com/UsergeTeam/Userge/blob/master/LICENSE >
#
# All rights reserved.
""" Google Photos """

import os

from userge.utils import secure_env

G_PHOTOS_CLIENT_ID = os.environ.get(
    secure_env("G_PHOTOS_CLIENT_ID"),
    os.environ.get(secure_env("G_DRIVE_CLIENT_ID")))

G_PHOTOS_CLIENT_SECRET = os.environ.get(
    secure_env("G_PHOTOS_CLIENT_SECRET"),
    os.environ.get(secure_env("G_DRIVE_CLIENT_SECRET")))

G_PHOTOS_AUTH_TOKEN_ID = int(os.environ.get("G_PHOTOS_AUTH_TOKEN_ID") or 0)
Esempio n. 8
0
# Copyright (C) 2020-2022 by UsergeTeam@Github, < https://github.com/UsergeTeam >.
#
# This file is part of < https://github.com/UsergeTeam/Userge > project,
# and is released under the "GNU v3.0 License Agreement".
# Please see < https://github.com/UsergeTeam/Userge/blob/master/LICENSE >
#
# All rights reserved.
""" manage your gdrive """

import logging
import os

from userge.utils import secure_env

logging.getLogger('googleapiclient.discovery').setLevel(logging.WARNING)

G_DRIVE_CLIENT_ID = os.environ.get(secure_env("G_DRIVE_CLIENT_ID"))
G_DRIVE_CLIENT_SECRET = os.environ.get(secure_env("G_DRIVE_CLIENT_SECRET"))
G_DRIVE_PARENT_ID = os.environ.get("G_DRIVE_PARENT_ID")
G_DRIVE_INDEX_LINK = os.environ.get("G_DRIVE_INDEX_LINK")
G_DRIVE_IS_TD = bool(os.environ.get("G_DRIVE_IS_TD"))
Esempio n. 9
0
# Copyright (C) 2020-2022 by UsergeTeam@Github, < https://github.com/UsergeTeam >.
#
# This file is part of < https://github.com/UsergeTeam/Userge > project,
# and is released under the "GNU v3.0 License Agreement".
# Please see < https://github.com/UsergeTeam/Userge/blob/master/LICENSE >
#
# All rights reserved.

""" deezloader """

import os

from userge.utils import secure_env

ARL_TOKEN = os.environ.get(secure_env("ARL_TOKEN"))