SILENT KILLERPanel

Current Path: > > opt > cloudlinux > venv > lib > python3.11 > site-packages > pydantic


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/cloudlinux/venv/lib/python3.11/site-packages/pydantic

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
_internal Directory - -
deprecated Directory - -
plugin Directory - -
v1 Directory - -
__init__.py File 5814 bytes March 06 2024 00:27:04.
_migration.py File 11899 bytes March 06 2024 00:27:04.
alias_generators.py File 1141 bytes March 06 2024 00:27:04.
annotated_handlers.py File 4346 bytes March 06 2024 00:27:04.
class_validators.py File 147 bytes March 06 2024 00:27:04.
color.py File 21493 bytes March 06 2024 00:27:04.
config.py File 24737 bytes March 06 2024 00:27:04.
dataclasses.py File 11490 bytes March 06 2024 00:27:04.
datetime_parse.py File 149 bytes March 06 2024 00:27:04.
decorator.py File 144 bytes March 06 2024 00:27:04.
env_settings.py File 147 bytes March 06 2024 00:27:04.
error_wrappers.py File 149 bytes March 06 2024 00:27:04.
errors.py File 4595 bytes March 06 2024 00:27:04.
fields.py File 45513 bytes March 06 2024 00:27:04.
functional_serializers.py File 10780 bytes March 06 2024 00:27:04.
functional_validators.py File 20471 bytes March 06 2024 00:27:04.
generics.py File 143 bytes March 06 2024 00:27:04.
json.py File 139 bytes March 06 2024 00:27:04.
json_schema.py File 100686 bytes March 06 2024 00:27:04.
main.py File 62260 bytes March 06 2024 00:27:04.
mypy.py File 50721 bytes March 06 2024 00:27:04.
networks.py File 20543 bytes March 06 2024 00:27:04.
parse.py File 140 bytes March 06 2024 00:27:04.
py.typed File 0 bytes March 06 2024 00:27:04.
root_model.py File 4949 bytes March 06 2024 00:27:04.
schema.py File 141 bytes March 06 2024 00:27:04.
tools.py File 140 bytes March 06 2024 00:27:04.
type_adapter.py File 18818 bytes March 06 2024 00:27:04.
types.py File 72231 bytes March 06 2024 00:27:04.
typing.py File 137 bytes March 06 2024 00:27:04.
utils.py File 140 bytes March 06 2024 00:27:04.
validate_call.py File 1780 bytes March 06 2024 00:27:04.
validators.py File 145 bytes March 06 2024 00:27:04.
version.py File 2307 bytes March 06 2024 00:27:04.
warnings.py File 1947 bytes March 06 2024 00:27:04.

Reading File: //opt/cloudlinux/venv/lib/python3.11/site-packages/pydantic/alias_generators.py

"""Alias generators for converting between different capitalization conventions."""
import re

__all__ = ('to_pascal', 'to_camel', 'to_snake')


def to_pascal(snake: str) -> str:
    """Convert a snake_case string to PascalCase.

    Args:
        snake: The string to convert.

    Returns:
        The PascalCase string.
    """
    camel = snake.title()
    return re.sub('([0-9A-Za-z])_(?=[0-9A-Z])', lambda m: m.group(1), camel)


def to_camel(snake: str) -> str:
    """Convert a snake_case string to camelCase.

    Args:
        snake: The string to convert.

    Returns:
        The converted camelCase string.
    """
    camel = to_pascal(snake)
    return re.sub('(^_*[A-Z])', lambda m: m.group(1).lower(), camel)


def to_snake(camel: str) -> str:
    """Convert a PascalCase or camelCase string to snake_case.

    Args:
        camel: The string to convert.

    Returns:
        The converted string in snake_case.
    """
    snake = re.sub(r'([a-zA-Z])([0-9])', lambda m: f'{m.group(1)}_{m.group(2)}', camel)
    snake = re.sub(r'([a-z0-9])([A-Z])', lambda m: f'{m.group(1)}_{m.group(2)}', snake)
    return snake.lower()

SILENT KILLER Tool