GRAYBYTE WORDPRESS FILE MANAGER2480

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.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
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/hc_python/lib/python3.12/site-packages/sqlalchemy/engine/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/hc_python/lib/python3.12/site-packages/sqlalchemy/engine//processors.py
# engine/processors.py
# Copyright (C) 2010-2025 the SQLAlchemy authors and contributors
# <see AUTHORS file>
# Copyright (C) 2010 Gaetan de Menten gdementen@gmail.com
#
# This module is part of SQLAlchemy and is released under
# the MIT License: https://www.opensource.org/licenses/mit-license.php

"""defines generic type conversion functions, as used in bind and result
processors.

They all share one common characteristic: None is passed through unchanged.

"""
from __future__ import annotations

import typing

from ._py_processors import str_to_datetime_processor_factory  # noqa
from ..util._has_cy import HAS_CYEXTENSION

if typing.TYPE_CHECKING or not HAS_CYEXTENSION:
    from ._py_processors import int_to_boolean as int_to_boolean
    from ._py_processors import str_to_date as str_to_date
    from ._py_processors import str_to_datetime as str_to_datetime
    from ._py_processors import str_to_time as str_to_time
    from ._py_processors import (
        to_decimal_processor_factory as to_decimal_processor_factory,
    )
    from ._py_processors import to_float as to_float
    from ._py_processors import to_str as to_str
else:
    from sqlalchemy.cyextension.processors import (
        DecimalResultProcessor,
    )
    from sqlalchemy.cyextension.processors import (  # noqa: F401
        int_to_boolean as int_to_boolean,
    )
    from sqlalchemy.cyextension.processors import (  # noqa: F401,E501
        str_to_date as str_to_date,
    )
    from sqlalchemy.cyextension.processors import (  # noqa: F401
        str_to_datetime as str_to_datetime,
    )
    from sqlalchemy.cyextension.processors import (  # noqa: F401,E501
        str_to_time as str_to_time,
    )
    from sqlalchemy.cyextension.processors import (  # noqa: F401,E501
        to_float as to_float,
    )
    from sqlalchemy.cyextension.processors import (  # noqa: F401,E501
        to_str as to_str,
    )

    def to_decimal_processor_factory(target_class, scale):
        # Note that the scale argument is not taken into account for integer
        # values in the C implementation while it is in the Python one.
        # For example, the Python implementation might return
        # Decimal('5.00000') whereas the C implementation will
        # return Decimal('5'). These are equivalent of course.
        return DecimalResultProcessor(target_class, "%%.%df" % scale).process

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
April 04 2025 08:00:23
root / root
0755
__pycache__
--
April 04 2025 08:00:23
root / root
0755
__init__.py
2.752 KB
April 04 2025 08:00:23
root / root
0644
_py_processors.py
3.656 KB
April 04 2025 08:00:23
root / root
0644
_py_row.py
3.698 KB
April 04 2025 08:00:23
root / root
0644
_py_util.py
2.426 KB
April 04 2025 08:00:23
root / root
0644
base.py
120.021 KB
April 04 2025 08:00:23
root / root
0644
characteristics.py
4.653 KB
April 04 2025 08:00:23
root / root
0644
create.py
32.438 KB
April 04 2025 08:00:23
root / root
0644
cursor.py
74.517 KB
April 04 2025 08:00:23
root / root
0644
default.py
82.72 KB
April 04 2025 08:00:23
root / root
0644
events.py
36.523 KB
April 04 2025 08:00:23
root / root
0644
interfaces.py
110.38 KB
April 04 2025 08:00:23
root / root
0644
mock.py
4.083 KB
April 04 2025 08:00:23
root / root
0644
processors.py
2.323 KB
April 04 2025 08:00:23
root / root
0644
reflection.py
73.616 KB
April 04 2025 08:00:23
root / root
0644
result.py
75.816 KB
April 04 2025 08:00:23
root / root
0644
row.py
11.749 KB
April 04 2025 08:00:23
root / root
0644
strategies.py
0.432 KB
April 04 2025 08:00:23
root / root
0644
url.py
30.341 KB
April 04 2025 08:00:23
root / root
0644
util.py
5.549 KB
April 04 2025 08:00:23
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF