__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.217.17: ~ $
import os
import platform
import sys
import warnings
from abc import ABC, abstractmethod

from pygame import error

_is_init = False


class AbstractCamera(ABC):
    # set_controls and get_controls are not a part of the AbstractCamera ABC,
    # because implementations of the same can vary across different Camera
    # types
    @abstractmethod
    def __init__(self, *args, **kwargs):
        """ """

    @abstractmethod
    def start(self):
        """ """

    @abstractmethod
    def stop(self):
        """ """

    @abstractmethod
    def get_size(self):
        """ """

    @abstractmethod
    def query_image(self):
        """ """

    @abstractmethod
    def get_image(self, dest_surf=None):
        """ """

    @abstractmethod
    def get_raw(self):
        """ """


def _pre_init_placeholder():
    if not _is_init:
        raise error("pygame.camera is not initialized")

    # camera was init, and yet functions are not monkey patched. This should
    # not happen
    raise NotImplementedError()


def _pre_init_placeholder_varargs(*_, **__):
    _pre_init_placeholder()


class _PreInitPlaceholderCamera(AbstractCamera):
    __init__ = _pre_init_placeholder_varargs
    start = _pre_init_placeholder_varargs
    stop = _pre_init_placeholder_varargs
    get_controls = _pre_init_placeholder_varargs
    set_controls = _pre_init_placeholder_varargs
    get_size = _pre_init_placeholder_varargs
    query_image = _pre_init_placeholder_varargs
    get_image = _pre_init_placeholder_varargs
    get_raw = _pre_init_placeholder_varargs


list_cameras = _pre_init_placeholder
Camera = _PreInitPlaceholderCamera


def _colorspace_not_available(*args):
    raise RuntimeError("pygame is not built with colorspace support")


try:
    from pygame import _camera

    colorspace = _camera.colorspace
except ImportError:
    # Should not happen in most cases
    colorspace = _colorspace_not_available


def _setup_backend(backend):
    global list_cameras, Camera
    if backend == "opencv-mac":
        from pygame import _camera_opencv

        list_cameras = _camera_opencv.list_cameras_darwin
        Camera = _camera_opencv.CameraMac

    elif backend == "opencv":
        from pygame import _camera_opencv

        list_cameras = _camera_opencv.list_cameras
        Camera = _camera_opencv.Camera

    elif backend in ("_camera (msmf)", "_camera (v4l2)"):
        from pygame import _camera

        list_cameras = _camera.list_cameras
        Camera = _camera.Camera

    elif backend == "videocapture":
        from pygame import _camera_vidcapture

        warnings.warn(
            "The VideoCapture backend is not recommended and may be removed."
            "For Python3 and Windows 8+, there is now a native Windows "
            "backend built into pygame.",
            DeprecationWarning,
            stacklevel=2,
        )

        _camera_vidcapture.init()
        list_cameras = _camera_vidcapture.list_cameras
        Camera = _camera_vidcapture.Camera
    else:
        raise ValueError("unrecognized backend name")


def get_backends():
    possible_backends = []

    if sys.platform == "win32":
        version_code = platform.win32_ver()[0].split(".")[0]
        if "Server" in version_code:
            version_code = ''.join(filter(str.isdigit, version_code))[:4]
            minimum_satisfied = int(version_code) >= 2012
        else:
            minimum_satisfied = int(version_code) >= 8

        if minimum_satisfied:
            try:
                # If cv2 is installed, prefer that on windows.
                import cv2

                possible_backends.append("OpenCV")
            except ImportError:
                possible_backends.append("_camera (MSMF)")

    if "linux" in sys.platform:
        possible_backends.append("_camera (V4L2)")

    if "darwin" in sys.platform:
        possible_backends.append("OpenCV-Mac")

    if "OpenCV" not in possible_backends:
        possible_backends.append("OpenCV")

    if sys.platform == "win32":
        possible_backends.append("VideoCapture")

    # see if we have any user specified defaults in environments.
    camera_env = os.environ.get("PYGAME_CAMERA", "").lower()
    if camera_env == "opencv":  # prioritize opencv
        if "OpenCV" in possible_backends:
            possible_backends.remove("OpenCV")
        possible_backends = ["OpenCV"] + possible_backends

    if camera_env in ("vidcapture", "videocapture"):  # prioritize vidcapture
        if "VideoCapture" in possible_backends:
            possible_backends.remove("VideoCapture")
        possible_backends = ["VideoCapture"] + possible_backends

    return possible_backends


def init(backend=None):
    global _is_init
    # select the camera module to import here.

    backends = [b.lower() for b in get_backends()]
    if not backends:
        raise error("No camera backends are supported on your platform!")

    backend = backends[0] if backend is None else backend.lower()
    if backend not in backends:
        warnings.warn(
            "We don't think this is a supported backend on this system, "
            "but we'll try it...",
            Warning,
            stacklevel=2,
        )

    try:
        _setup_backend(backend)
    except ImportError:
        emsg = f"Backend '{backend}' is not supported on your platform!"
        if backend in ("opencv", "opencv-mac", "videocapture"):
            dep = "vidcap" if backend == "videocapture" else "OpenCV"
            emsg += (
                f" Make sure you have '{dep}' installed to be able to use this backend"
            )

        raise error(emsg)

    _is_init = True


def quit():
    global _is_init, Camera, list_cameras
    # reset to their respective pre-init placeholders
    list_cameras = _pre_init_placeholder
    Camera = _PreInitPlaceholderCamera

    _is_init = False


if __name__ == "__main__":
    # try and use this camera stuff with the pygame camera example.
    import pygame.examples.camera

    # pygame.camera.Camera = Camera
    # pygame.camera.list_cameras = list_cameras
    pygame.examples.camera.main()

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
__pyinstaller Folder 0755
_sdl2 Folder 0755
threads Folder 0755
__init__.py File 9.26 KB 0644
__init__.pyi File 19.92 KB 0644
_camera.cpython-313-aarch64-linux-gnu.so File 66.93 KB 0644
_camera_opencv.py File 5.33 KB 0644
_camera_vidcapture.py File 3.32 KB 0644
_common.pyi File 1.32 KB 0644
_freetype.cpython-313-aarch64-linux-gnu.so File 132.87 KB 0644
_sprite.cpython-313-aarch64-linux-gnu.so File 397.24 KB 0644
base.cpython-313-aarch64-linux-gnu.so File 66.55 KB 0644
base.pyi File 586 B 0644
bufferproxy.cpython-313-aarch64-linux-gnu.so File 67.02 KB 0644
bufferproxy.pyi File 458 B 0644
camera.py File 5.94 KB 0644
camera.pyi File 1.59 KB 0644
color.cpython-313-aarch64-linux-gnu.so File 67.66 KB 0644
color.pyi File 2 KB 0644
colordict.py File 25.17 KB 0644
constants.cpython-313-aarch64-linux-gnu.so File 130.02 KB 0644
constants.pyi File 9.67 KB 0644
cursors.py File 17.67 KB 0644
cursors.pyi File 2.04 KB 0644
display.cpython-313-aarch64-linux-gnu.so File 67.78 KB 0644
display.pyi File 2.22 KB 0644
draw.cpython-313-aarch64-linux-gnu.so File 66.94 KB 0644
draw.pyi File 1.65 KB 0644
draw_py.py File 18.22 KB 0644
event.cpython-313-aarch64-linux-gnu.so File 67.69 KB 0644
event.pyi File 1.45 KB 0644
fastevent.py File 1.65 KB 0644
fastevent.pyi File 249 B 0644
font.cpython-313-aarch64-linux-gnu.so File 67.48 KB 0644
font.pyi File 2.03 KB 0644
freesansbold.ttf File 973.08 KB 0644
freetype.py File 2.17 KB 0644
freetype.pyi File 3.43 KB 0644
ftfont.py File 6.01 KB 0644
gfxdraw.cpython-313-aarch64-linux-gnu.so File 66.84 KB 0644
gfxdraw.pyi File 2.44 KB 0644
image.cpython-313-aarch64-linux-gnu.so File 66.52 KB 0644
image.pyi File 1.67 KB 0644
imageext.cpython-313-aarch64-linux-gnu.so File 66.3 KB 0644
joystick.cpython-313-aarch64-linux-gnu.so File 67.34 KB 0644
joystick.pyi File 1.32 KB 0644
key.cpython-313-aarch64-linux-gnu.so File 67.04 KB 0644
key.pyi File 562 B 0644
locals.py File 1.17 KB 0644
locals.pyi File 9.69 KB 0644
macosx.py File 329 B 0644
mask.cpython-313-aarch64-linux-gnu.so File 67.88 KB 0644
mask.pyi File 2.25 KB 0644
math.cpython-313-aarch64-linux-gnu.so File 136.43 KB 0644
math.pyi File 11.41 KB 0644
midi.py File 23.77 KB 0644
midi.pyi File 1.73 KB 0644
mixer.cpython-313-aarch64-linux-gnu.so File 68.63 KB 0644
mixer.pyi File 2.79 KB 0644
mixer_music.cpython-313-aarch64-linux-gnu.so File 66.74 KB 0644
mixer_music.pyi File 691 B 0644
mouse.cpython-313-aarch64-linux-gnu.so File 66.52 KB 0644
mouse.pyi File 1.16 KB 0644
newbuffer.cpython-313-aarch64-linux-gnu.so File 68.02 KB 0644
pixelarray.cpython-313-aarch64-linux-gnu.so File 67.46 KB 0644
pixelarray.pyi File 1.2 KB 0644
pixelcopy.cpython-313-aarch64-linux-gnu.so File 66.32 KB 0644
pixelcopy.pyi File 534 B 0644
pkgdata.py File 2.36 KB 0644
py.typed File 0 B 0644
pygame.ico File 142.11 KB 0644
pygame_icon.bmp File 630 B 0644
pygame_icon.icns File 257.96 KB 0644
pygame_icon_mac.bmp File 256.13 KB 0644
pypm.cpython-313-aarch64-linux-gnu.so File 133.62 KB 0644
rect.cpython-313-aarch64-linux-gnu.so File 69.1 KB 0644
rect.pyi File 6.97 KB 0644
rwobject.cpython-313-aarch64-linux-gnu.so File 66.32 KB 0644
rwobject.pyi File 544 B 0644
scrap.cpython-313-aarch64-linux-gnu.so File 66.41 KB 0644
scrap.pyi File 366 B 0644
sndarray.py File 3.99 KB 0644
sndarray.pyi File 337 B 0644
sprite.py File 61.42 KB 0644
sprite.pyi File 9.52 KB 0644
surface.cpython-313-aarch64-linux-gnu.so File 260.43 KB 0644
surface.pyi File 4.62 KB 0644
surfarray.py File 14.07 KB 0644
surfarray.pyi File 1.26 KB 0644
surflock.cpython-313-aarch64-linux-gnu.so File 66.4 KB 0644
surflock.pyi File 122 B 0644
sysfont.py File 15.03 KB 0644
time.cpython-313-aarch64-linux-gnu.so File 66.97 KB 0644
time.pyi File 501 B 0644
transform.cpython-313-aarch64-linux-gnu.so File 67.14 KB 0644
transform.pyi File 1.95 KB 0644
version.py File 2.4 KB 0644
version.pyi File 600 B 0644
Filemanager