X7ROOT File Manager
Current Path:
/opt/alt/python37/lib/python3.7/site-packages/jsons/serializers
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
jsons
/
serializers
/
📁
..
📄
__init__.py
(189 B)
📁
__pycache__
📄
default_complex.py
(244 B)
📄
default_date.py
(593 B)
📄
default_datetime.py
(909 B)
📄
default_decimal.py
(294 B)
📄
default_dict.py
(3.22 KB)
📄
default_enum.py
(612 B)
📄
default_iterable.py
(2.82 KB)
📄
default_list.py
(1.53 KB)
📄
default_object.py
(13.03 KB)
📄
default_path.py
(540 B)
📄
default_primitive.py
(1.06 KB)
📄
default_time.py
(487 B)
📄
default_timedelta.py
(379 B)
📄
default_timezone.py
(524 B)
📄
default_tuple.py
(1.48 KB)
📄
default_union.py
(1.45 KB)
📄
default_uuid.py
(393 B)
📄
default_zone_info.py
(365 B)
Editing: default_path.py
from pathlib import PurePath def default_path_serializer(obj: PurePath, **kwargs) -> str: """ Serialize a ``pathlib.PurePath`` object to a ``str``, Posix-style. Posix-style strings are used as they can be used to create ``pathlib.Path`` objects on both Posix and Windows systems, but Windows-style strings can only be used to create valid ``pathlib.Path`` objects on Windows. :param obj: the path to serialize. :param kwargs: not used. :return: a ``str``. """ return obj.as_posix()
Upload File
Create Folder