@wmxe/kakao-pc 0.0.0-stage → 0.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BUILD.json +61 -0
- package/README.md +30 -2
- package/bin/kakao-pc-mcp.js +37 -0
- package/package.json +38 -6
- package/python/LICENSE.txt +676 -0
- package/python/Lib/site-packages/PIL/AvifImagePlugin.py +299 -0
- package/python/Lib/site-packages/PIL/BdfFontFile.py +122 -0
- package/python/Lib/site-packages/PIL/BlpImagePlugin.py +503 -0
- package/python/Lib/site-packages/PIL/BmpImagePlugin.py +526 -0
- package/python/Lib/site-packages/PIL/BufrStubImagePlugin.py +70 -0
- package/python/Lib/site-packages/PIL/ContainerIO.py +177 -0
- package/python/Lib/site-packages/PIL/CurImagePlugin.py +105 -0
- package/python/Lib/site-packages/PIL/DcxImagePlugin.py +88 -0
- package/python/Lib/site-packages/PIL/DdsImagePlugin.py +637 -0
- package/python/Lib/site-packages/PIL/EpsImagePlugin.py +494 -0
- package/python/Lib/site-packages/PIL/ExifTags.py +383 -0
- package/python/Lib/site-packages/PIL/FitsImagePlugin.py +171 -0
- package/python/Lib/site-packages/PIL/FliImagePlugin.py +188 -0
- package/python/Lib/site-packages/PIL/FontFile.py +163 -0
- package/python/Lib/site-packages/PIL/FpxImagePlugin.py +264 -0
- package/python/Lib/site-packages/PIL/FtexImagePlugin.py +119 -0
- package/python/Lib/site-packages/PIL/GbrImagePlugin.py +101 -0
- package/python/Lib/site-packages/PIL/GdImageFile.py +109 -0
- package/python/Lib/site-packages/PIL/GifImagePlugin.py +1152 -0
- package/python/Lib/site-packages/PIL/GimpGradientFile.py +156 -0
- package/python/Lib/site-packages/PIL/GimpPaletteFile.py +77 -0
- package/python/Lib/site-packages/PIL/GribStubImagePlugin.py +70 -0
- package/python/Lib/site-packages/PIL/Hdf5StubImagePlugin.py +70 -0
- package/python/Lib/site-packages/PIL/IcnsImagePlugin.py +406 -0
- package/python/Lib/site-packages/PIL/IcoImagePlugin.py +418 -0
- package/python/Lib/site-packages/PIL/ImImagePlugin.py +401 -0
- package/python/Lib/site-packages/PIL/Image.py +4390 -0
- package/python/Lib/site-packages/PIL/ImageChops.py +278 -0
- package/python/Lib/site-packages/PIL/ImageCms.py +1069 -0
- package/python/Lib/site-packages/PIL/ImageColor.py +321 -0
- package/python/Lib/site-packages/PIL/ImageDraw.py +1003 -0
- package/python/Lib/site-packages/PIL/ImageDraw2.py +250 -0
- package/python/Lib/site-packages/PIL/ImageEnhance.py +112 -0
- package/python/Lib/site-packages/PIL/ImageFile.py +944 -0
- package/python/Lib/site-packages/PIL/ImageFilter.py +596 -0
- package/python/Lib/site-packages/PIL/ImageFont.py +1335 -0
- package/python/Lib/site-packages/PIL/ImageGrab.py +229 -0
- package/python/Lib/site-packages/PIL/ImageMath.py +314 -0
- package/python/Lib/site-packages/PIL/ImageMode.py +85 -0
- package/python/Lib/site-packages/PIL/ImageMorph.py +317 -0
- package/python/Lib/site-packages/PIL/ImageOps.py +803 -0
- package/python/Lib/site-packages/PIL/ImagePalette.py +314 -0
- package/python/Lib/site-packages/PIL/ImagePath.py +20 -0
- package/python/Lib/site-packages/PIL/ImageQt.py +229 -0
- package/python/Lib/site-packages/PIL/ImageSequence.py +89 -0
- package/python/Lib/site-packages/PIL/ImageShow.py +372 -0
- package/python/Lib/site-packages/PIL/ImageStat.py +169 -0
- package/python/Lib/site-packages/PIL/ImageText.py +512 -0
- package/python/Lib/site-packages/PIL/ImageTk.py +269 -0
- package/python/Lib/site-packages/PIL/ImageTransform.py +138 -0
- package/python/Lib/site-packages/PIL/ImageWin.py +247 -0
- package/python/Lib/site-packages/PIL/ImtImagePlugin.py +103 -0
- package/python/Lib/site-packages/PIL/IptcImagePlugin.py +228 -0
- package/python/Lib/site-packages/PIL/Jpeg2KImagePlugin.py +472 -0
- package/python/Lib/site-packages/PIL/JpegImagePlugin.py +913 -0
- package/python/Lib/site-packages/PIL/JpegPresets.py +240 -0
- package/python/Lib/site-packages/PIL/McIdasImagePlugin.py +80 -0
- package/python/Lib/site-packages/PIL/MicImagePlugin.py +105 -0
- package/python/Lib/site-packages/PIL/MpegImagePlugin.py +89 -0
- package/python/Lib/site-packages/PIL/MpoImagePlugin.py +211 -0
- package/python/Lib/site-packages/PIL/MspImagePlugin.py +206 -0
- package/python/Lib/site-packages/PIL/PSDraw.py +249 -0
- package/python/Lib/site-packages/PIL/PaletteFile.py +58 -0
- package/python/Lib/site-packages/PIL/PalmImagePlugin.py +220 -0
- package/python/Lib/site-packages/PIL/PcdImagePlugin.py +68 -0
- package/python/Lib/site-packages/PIL/PcfFontFile.py +258 -0
- package/python/Lib/site-packages/PIL/PcxImagePlugin.py +237 -0
- package/python/Lib/site-packages/PIL/PdfImagePlugin.py +313 -0
- package/python/Lib/site-packages/PIL/PdfParser.py +1129 -0
- package/python/Lib/site-packages/PIL/PixarImagePlugin.py +74 -0
- package/python/Lib/site-packages/PIL/PngImagePlugin.py +1616 -0
- package/python/Lib/site-packages/PIL/PpmImagePlugin.py +380 -0
- package/python/Lib/site-packages/PIL/PsdImagePlugin.py +340 -0
- package/python/Lib/site-packages/PIL/QoiImagePlugin.py +248 -0
- package/python/Lib/site-packages/PIL/SgiImagePlugin.py +236 -0
- package/python/Lib/site-packages/PIL/SpiderImagePlugin.py +329 -0
- package/python/Lib/site-packages/PIL/SunImagePlugin.py +147 -0
- package/python/Lib/site-packages/PIL/TarIO.py +68 -0
- package/python/Lib/site-packages/PIL/TgaImagePlugin.py +295 -0
- package/python/Lib/site-packages/PIL/TiffImagePlugin.py +2410 -0
- package/python/Lib/site-packages/PIL/TiffTags.py +571 -0
- package/python/Lib/site-packages/PIL/WalImageFile.py +134 -0
- package/python/Lib/site-packages/PIL/WebPImagePlugin.py +352 -0
- package/python/Lib/site-packages/PIL/WmfImagePlugin.py +189 -0
- package/python/Lib/site-packages/PIL/XVThumbImagePlugin.py +83 -0
- package/python/Lib/site-packages/PIL/XbmImagePlugin.py +128 -0
- package/python/Lib/site-packages/PIL/XpmImagePlugin.py +175 -0
- package/python/Lib/site-packages/PIL/__init__.py +87 -0
- package/python/Lib/site-packages/PIL/__main__.py +7 -0
- package/python/Lib/site-packages/PIL/__pycache__/AvifImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/BdfFontFile.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/BlpImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/BmpImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/BufrStubImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/ContainerIO.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/CurImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/DcxImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/DdsImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/EpsImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/ExifTags.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/FitsImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/FliImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/FontFile.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/FpxImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/FtexImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/GbrImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/GdImageFile.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/GifImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/GimpGradientFile.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/GimpPaletteFile.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/GribStubImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/Hdf5StubImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/IcnsImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/IcoImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/ImImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/Image.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/ImageChops.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/ImageCms.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/ImageColor.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/ImageDraw.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/ImageDraw2.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/ImageEnhance.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/ImageFile.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/ImageFilter.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/ImageFont.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/ImageGrab.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/ImageMath.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/ImageMode.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/ImageMorph.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/ImageOps.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/ImagePalette.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/ImagePath.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/ImageQt.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/ImageSequence.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/ImageShow.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/ImageStat.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/ImageText.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/ImageTk.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/ImageTransform.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/ImageWin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/ImtImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/IptcImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/Jpeg2KImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/JpegImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/JpegPresets.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/McIdasImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/MicImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/MpegImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/MpoImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/MspImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/PSDraw.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/PaletteFile.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/PalmImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/PcdImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/PcfFontFile.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/PcxImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/PdfImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/PdfParser.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/PixarImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/PngImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/PpmImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/PsdImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/QoiImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/SgiImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/SpiderImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/SunImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/TarIO.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/TgaImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/TiffImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/TiffTags.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/WalImageFile.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/WebPImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/WmfImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/XVThumbImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/XbmImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/XpmImagePlugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/__main__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/_binary.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/_deprecate.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/_tkinter_finder.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/_typing.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/_util.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/_version.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/features.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/__pycache__/report.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/PIL/_avif.cp314-win_amd64.pyd +0 -0
- package/python/Lib/site-packages/PIL/_avif.pyi +3 -0
- package/python/Lib/site-packages/PIL/_binary.py +115 -0
- package/python/Lib/site-packages/PIL/_deprecate.py +74 -0
- package/python/Lib/site-packages/PIL/_imaging.cp314-win_amd64.pyd +0 -0
- package/python/Lib/site-packages/PIL/_imaging.pyi +31 -0
- package/python/Lib/site-packages/PIL/_imagingcms.cp314-win_amd64.pyd +0 -0
- package/python/Lib/site-packages/PIL/_imagingcms.pyi +143 -0
- package/python/Lib/site-packages/PIL/_imagingft.cp314-win_amd64.pyd +0 -0
- package/python/Lib/site-packages/PIL/_imagingft.pyi +70 -0
- package/python/Lib/site-packages/PIL/_imagingmath.cp314-win_amd64.pyd +0 -0
- package/python/Lib/site-packages/PIL/_imagingmath.pyi +3 -0
- package/python/Lib/site-packages/PIL/_imagingmorph.cp314-win_amd64.pyd +0 -0
- package/python/Lib/site-packages/PIL/_imagingmorph.pyi +3 -0
- package/python/Lib/site-packages/PIL/_imagingtk.cp314-win_amd64.pyd +0 -0
- package/python/Lib/site-packages/PIL/_imagingtk.pyi +3 -0
- package/python/Lib/site-packages/PIL/_tkinter_finder.py +20 -0
- package/python/Lib/site-packages/PIL/_typing.py +46 -0
- package/python/Lib/site-packages/PIL/_util.py +29 -0
- package/python/Lib/site-packages/PIL/_version.py +4 -0
- package/python/Lib/site-packages/PIL/_webp.cp314-win_amd64.pyd +0 -0
- package/python/Lib/site-packages/PIL/_webp.pyi +3 -0
- package/python/Lib/site-packages/PIL/features.py +347 -0
- package/python/Lib/site-packages/PIL/py.typed +0 -0
- package/python/Lib/site-packages/PIL/report.py +5 -0
- package/python/Lib/site-packages/__pycache__/pythoncom.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/__pycache__/typing_extensions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/_cffi_backend.cp314-win_amd64.pyd +0 -0
- package/python/Lib/site-packages/adodbapi/__init__.py +81 -0
- package/python/Lib/site-packages/adodbapi/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/adodbapi/__pycache__/ado_consts.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/adodbapi/__pycache__/adodbapi.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/adodbapi/__pycache__/apibase.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/adodbapi/__pycache__/is64bit.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/adodbapi/__pycache__/process_connect_string.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/adodbapi/__pycache__/schema_table.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/adodbapi/__pycache__/setup.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/adodbapi/ado_consts.py +283 -0
- package/python/Lib/site-packages/adodbapi/adodbapi.py +1153 -0
- package/python/Lib/site-packages/adodbapi/apibase.py +723 -0
- package/python/Lib/site-packages/adodbapi/examples/__pycache__/db_print.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/adodbapi/examples/__pycache__/db_table_names.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/adodbapi/examples/__pycache__/xls_read.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/adodbapi/examples/__pycache__/xls_write.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/adodbapi/examples/db_print.py +72 -0
- package/python/Lib/site-packages/adodbapi/examples/db_table_names.py +21 -0
- package/python/Lib/site-packages/adodbapi/examples/xls_read.py +41 -0
- package/python/Lib/site-packages/adodbapi/examples/xls_write.py +41 -0
- package/python/Lib/site-packages/adodbapi/is64bit.py +34 -0
- package/python/Lib/site-packages/adodbapi/license.txt +505 -0
- package/python/Lib/site-packages/adodbapi/process_connect_string.py +137 -0
- package/python/Lib/site-packages/adodbapi/readme.txt +88 -0
- package/python/Lib/site-packages/adodbapi/schema_table.py +16 -0
- package/python/Lib/site-packages/adodbapi/setup.py +68 -0
- package/python/Lib/site-packages/adodbapi/test/__pycache__/adodbapitest.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/adodbapi/test/__pycache__/adodbapitestconfig.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/adodbapi/test/__pycache__/dbapi20.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/adodbapi/test/__pycache__/is64bit.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/adodbapi/test/__pycache__/setuptestframework.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/adodbapi/test/__pycache__/test_adodbapi_dbapi20.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/adodbapi/test/__pycache__/tryconnection.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/adodbapi/test/adodbapitest.py +1547 -0
- package/python/Lib/site-packages/adodbapi/test/adodbapitestconfig.py +180 -0
- package/python/Lib/site-packages/adodbapi/test/dbapi20.py +879 -0
- package/python/Lib/site-packages/adodbapi/test/is64bit.py +34 -0
- package/python/Lib/site-packages/adodbapi/test/setuptestframework.py +98 -0
- package/python/Lib/site-packages/adodbapi/test/test_adodbapi_dbapi20.py +190 -0
- package/python/Lib/site-packages/adodbapi/test/tryconnection.py +30 -0
- package/python/Lib/site-packages/annotated_types/__init__.py +416 -0
- package/python/Lib/site-packages/annotated_types/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/annotated_types/__pycache__/test_cases.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/annotated_types/py.typed +0 -0
- package/python/Lib/site-packages/annotated_types/test_cases.py +146 -0
- package/python/Lib/site-packages/annotated_types-0.8.0.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/annotated_types-0.8.0.dist-info/METADATA +295 -0
- package/python/Lib/site-packages/annotated_types-0.8.0.dist-info/RECORD +8 -0
- package/python/Lib/site-packages/annotated_types-0.8.0.dist-info/WHEEL +4 -0
- package/python/Lib/site-packages/annotated_types-0.8.0.dist-info/licenses/LICENSE +21 -0
- package/python/Lib/site-packages/anyio/__init__.py +154 -0
- package/python/Lib/site-packages/anyio/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/__pycache__/_lazyimport.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/__pycache__/from_thread.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/__pycache__/functools.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/__pycache__/itertools.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/__pycache__/lowlevel.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/__pycache__/pytest_plugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/__pycache__/to_interpreter.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/__pycache__/to_process.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/__pycache__/to_thread.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/_backends/__init__.py +0 -0
- package/python/Lib/site-packages/anyio/_backends/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/_backends/__pycache__/_asyncio.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/_backends/__pycache__/_trio.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/_backends/_asyncio.py +3300 -0
- package/python/Lib/site-packages/anyio/_backends/_trio.py +1489 -0
- package/python/Lib/site-packages/anyio/_core/__init__.py +0 -0
- package/python/Lib/site-packages/anyio/_core/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/_core/__pycache__/_asyncio_selector_thread.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/_core/__pycache__/_concurrency_utils.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/_core/__pycache__/_contextmanagers.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/_core/__pycache__/_eventloop.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/_core/__pycache__/_exceptions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/_core/__pycache__/_fileio.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/_core/__pycache__/_futures.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/_core/__pycache__/_resources.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/_core/__pycache__/_signals.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/_core/__pycache__/_sockets.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/_core/__pycache__/_streams.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/_core/__pycache__/_subprocesses.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/_core/__pycache__/_synchronization.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/_core/__pycache__/_tasks.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/_core/__pycache__/_tempfile.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/_core/__pycache__/_testing.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/_core/__pycache__/_typedattr.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/_core/_asyncio_selector_thread.py +167 -0
- package/python/Lib/site-packages/anyio/_core/_concurrency_utils.py +156 -0
- package/python/Lib/site-packages/anyio/_core/_contextmanagers.py +200 -0
- package/python/Lib/site-packages/anyio/_core/_eventloop.py +244 -0
- package/python/Lib/site-packages/anyio/_core/_exceptions.py +205 -0
- package/python/Lib/site-packages/anyio/_core/_fileio.py +1047 -0
- package/python/Lib/site-packages/anyio/_core/_futures.py +191 -0
- package/python/Lib/site-packages/anyio/_core/_resources.py +18 -0
- package/python/Lib/site-packages/anyio/_core/_signals.py +29 -0
- package/python/Lib/site-packages/anyio/_core/_sockets.py +1032 -0
- package/python/Lib/site-packages/anyio/_core/_streams.py +52 -0
- package/python/Lib/site-packages/anyio/_core/_subprocesses.py +196 -0
- package/python/Lib/site-packages/anyio/_core/_synchronization.py +780 -0
- package/python/Lib/site-packages/anyio/_core/_tasks.py +464 -0
- package/python/Lib/site-packages/anyio/_core/_tempfile.py +623 -0
- package/python/Lib/site-packages/anyio/_core/_testing.py +82 -0
- package/python/Lib/site-packages/anyio/_core/_typedattr.py +90 -0
- package/python/Lib/site-packages/anyio/_lazyimport.py +176 -0
- package/python/Lib/site-packages/anyio/abc/__init__.py +63 -0
- package/python/Lib/site-packages/anyio/abc/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/abc/__pycache__/_eventloop.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/abc/__pycache__/_resources.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/abc/__pycache__/_sockets.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/abc/__pycache__/_streams.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/abc/__pycache__/_subprocesses.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/abc/__pycache__/_tasks.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/abc/__pycache__/_testing.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/abc/_eventloop.py +443 -0
- package/python/Lib/site-packages/anyio/abc/_resources.py +39 -0
- package/python/Lib/site-packages/anyio/abc/_sockets.py +401 -0
- package/python/Lib/site-packages/anyio/abc/_streams.py +237 -0
- package/python/Lib/site-packages/anyio/abc/_subprocesses.py +82 -0
- package/python/Lib/site-packages/anyio/abc/_tasks.py +223 -0
- package/python/Lib/site-packages/anyio/abc/_testing.py +79 -0
- package/python/Lib/site-packages/anyio/from_thread.py +689 -0
- package/python/Lib/site-packages/anyio/functools.py +400 -0
- package/python/Lib/site-packages/anyio/itertools.py +632 -0
- package/python/Lib/site-packages/anyio/lowlevel.py +228 -0
- package/python/Lib/site-packages/anyio/py.typed +0 -0
- package/python/Lib/site-packages/anyio/pytest_plugin.py +408 -0
- package/python/Lib/site-packages/anyio/streams/__init__.py +0 -0
- package/python/Lib/site-packages/anyio/streams/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/streams/__pycache__/buffered.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/streams/__pycache__/file.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/streams/__pycache__/memory.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/streams/__pycache__/stapled.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/streams/__pycache__/text.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/streams/__pycache__/tls.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/anyio/streams/buffered.py +212 -0
- package/python/Lib/site-packages/anyio/streams/file.py +162 -0
- package/python/Lib/site-packages/anyio/streams/memory.py +365 -0
- package/python/Lib/site-packages/anyio/streams/stapled.py +160 -0
- package/python/Lib/site-packages/anyio/streams/text.py +189 -0
- package/python/Lib/site-packages/anyio/streams/tls.py +450 -0
- package/python/Lib/site-packages/anyio/to_interpreter.py +246 -0
- package/python/Lib/site-packages/anyio/to_process.py +269 -0
- package/python/Lib/site-packages/anyio/to_thread.py +80 -0
- package/python/Lib/site-packages/anyio-4.16.0.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/anyio-4.16.0.dist-info/METADATA +108 -0
- package/python/Lib/site-packages/anyio-4.16.0.dist-info/RECORD +54 -0
- package/python/Lib/site-packages/anyio-4.16.0.dist-info/WHEEL +5 -0
- package/python/Lib/site-packages/anyio-4.16.0.dist-info/entry_points.txt +2 -0
- package/python/Lib/site-packages/anyio-4.16.0.dist-info/licenses/LICENSE +20 -0
- package/python/Lib/site-packages/anyio-4.16.0.dist-info/top_level.txt +1 -0
- package/python/Lib/site-packages/attr/__init__.py +104 -0
- package/python/Lib/site-packages/attr/__init__.pyi +389 -0
- package/python/Lib/site-packages/attr/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/attr/__pycache__/_cmp.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/attr/__pycache__/_compat.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/attr/__pycache__/_config.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/attr/__pycache__/_funcs.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/attr/__pycache__/_make.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/attr/__pycache__/_next_gen.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/attr/__pycache__/_version_info.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/attr/__pycache__/converters.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/attr/__pycache__/exceptions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/attr/__pycache__/filters.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/attr/__pycache__/setters.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/attr/__pycache__/validators.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/attr/_cmp.py +160 -0
- package/python/Lib/site-packages/attr/_cmp.pyi +13 -0
- package/python/Lib/site-packages/attr/_compat.py +99 -0
- package/python/Lib/site-packages/attr/_config.py +31 -0
- package/python/Lib/site-packages/attr/_funcs.py +497 -0
- package/python/Lib/site-packages/attr/_make.py +3406 -0
- package/python/Lib/site-packages/attr/_next_gen.py +674 -0
- package/python/Lib/site-packages/attr/_typing_compat.pyi +15 -0
- package/python/Lib/site-packages/attr/_version_info.py +89 -0
- package/python/Lib/site-packages/attr/_version_info.pyi +9 -0
- package/python/Lib/site-packages/attr/converters.py +162 -0
- package/python/Lib/site-packages/attr/converters.pyi +19 -0
- package/python/Lib/site-packages/attr/exceptions.py +95 -0
- package/python/Lib/site-packages/attr/exceptions.pyi +17 -0
- package/python/Lib/site-packages/attr/filters.py +72 -0
- package/python/Lib/site-packages/attr/filters.pyi +6 -0
- package/python/Lib/site-packages/attr/py.typed +0 -0
- package/python/Lib/site-packages/attr/setters.py +79 -0
- package/python/Lib/site-packages/attr/setters.pyi +20 -0
- package/python/Lib/site-packages/attr/validators.py +750 -0
- package/python/Lib/site-packages/attr/validators.pyi +140 -0
- package/python/Lib/site-packages/attrs/__init__.py +72 -0
- package/python/Lib/site-packages/attrs/__init__.pyi +314 -0
- package/python/Lib/site-packages/attrs/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/attrs/__pycache__/converters.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/attrs/__pycache__/exceptions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/attrs/__pycache__/filters.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/attrs/__pycache__/setters.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/attrs/__pycache__/validators.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/attrs/converters.py +3 -0
- package/python/Lib/site-packages/attrs/exceptions.py +3 -0
- package/python/Lib/site-packages/attrs/filters.py +3 -0
- package/python/Lib/site-packages/attrs/py.typed +0 -0
- package/python/Lib/site-packages/attrs/setters.py +3 -0
- package/python/Lib/site-packages/attrs/validators.py +3 -0
- package/python/Lib/site-packages/attrs-26.1.0.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/attrs-26.1.0.dist-info/METADATA +199 -0
- package/python/Lib/site-packages/attrs-26.1.0.dist-info/RECORD +36 -0
- package/python/Lib/site-packages/attrs-26.1.0.dist-info/WHEEL +4 -0
- package/python/Lib/site-packages/attrs-26.1.0.dist-info/licenses/LICENSE +21 -0
- package/python/Lib/site-packages/cffi/__init__.py +14 -0
- package/python/Lib/site-packages/cffi/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cffi/__pycache__/_cffi_gen_src.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cffi/__pycache__/_imp_emulation.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cffi/__pycache__/_shimmed_dist_utils.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cffi/__pycache__/api.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cffi/__pycache__/backend_ctypes.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cffi/__pycache__/cffi_opcode.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cffi/__pycache__/commontypes.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cffi/__pycache__/cparser.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cffi/__pycache__/error.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cffi/__pycache__/ffiplatform.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cffi/__pycache__/gen_src.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cffi/__pycache__/lock.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cffi/__pycache__/model.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cffi/__pycache__/pkgconfig.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cffi/__pycache__/recompiler.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cffi/__pycache__/setuptools_ext.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cffi/__pycache__/vengine_cpy.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cffi/__pycache__/vengine_gen.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cffi/__pycache__/verifier.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cffi/_cffi_errors.h +135 -0
- package/python/Lib/site-packages/cffi/_cffi_gen_src.py +216 -0
- package/python/Lib/site-packages/cffi/_cffi_include.h +397 -0
- package/python/Lib/site-packages/cffi/_embedding.h +512 -0
- package/python/Lib/site-packages/cffi/_imp_emulation.py +83 -0
- package/python/Lib/site-packages/cffi/_shimmed_dist_utils.py +45 -0
- package/python/Lib/site-packages/cffi/api.py +960 -0
- package/python/Lib/site-packages/cffi/backend_ctypes.py +1120 -0
- package/python/Lib/site-packages/cffi/cffi_opcode.py +187 -0
- package/python/Lib/site-packages/cffi/commontypes.py +82 -0
- package/python/Lib/site-packages/cffi/cparser.py +1014 -0
- package/python/Lib/site-packages/cffi/error.py +31 -0
- package/python/Lib/site-packages/cffi/ffiplatform.py +113 -0
- package/python/Lib/site-packages/cffi/gen_src.py +5 -0
- package/python/Lib/site-packages/cffi/lock.py +30 -0
- package/python/Lib/site-packages/cffi/model.py +617 -0
- package/python/Lib/site-packages/cffi/parse_c_type.h +181 -0
- package/python/Lib/site-packages/cffi/pkgconfig.py +121 -0
- package/python/Lib/site-packages/cffi/recompiler.py +1586 -0
- package/python/Lib/site-packages/cffi/setuptools_ext.py +231 -0
- package/python/Lib/site-packages/cffi/vengine_cpy.py +1058 -0
- package/python/Lib/site-packages/cffi/vengine_gen.py +679 -0
- package/python/Lib/site-packages/cffi/verifier.py +306 -0
- package/python/Lib/site-packages/cffi-2.1.1.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/cffi-2.1.1.dist-info/METADATA +67 -0
- package/python/Lib/site-packages/cffi-2.1.1.dist-info/RECORD +33 -0
- package/python/Lib/site-packages/cffi-2.1.1.dist-info/WHEEL +5 -0
- package/python/Lib/site-packages/cffi-2.1.1.dist-info/entry_points.txt +5 -0
- package/python/Lib/site-packages/cffi-2.1.1.dist-info/licenses/LICENSE +23 -0
- package/python/Lib/site-packages/cffi-2.1.1.dist-info/top_level.txt +2 -0
- package/python/Lib/site-packages/claude_hands/__init__.py +55 -0
- package/python/Lib/site-packages/claude_hands/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/claude_hands/__pycache__/actions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/claude_hands/__pycache__/api.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/claude_hands/__pycache__/cli.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/claude_hands/__pycache__/elements.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/claude_hands/__pycache__/server.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/claude_hands/__pycache__/session.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/claude_hands/actions.py +1583 -0
- package/python/Lib/site-packages/claude_hands/api.py +232 -0
- package/python/Lib/site-packages/claude_hands/cli.py +365 -0
- package/python/Lib/site-packages/claude_hands/elements.py +416 -0
- package/python/Lib/site-packages/claude_hands/mshtml/__init__.py +19 -0
- package/python/Lib/site-packages/claude_hands/mshtml/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/claude_hands/mshtml/__pycache__/activex.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/claude_hands/mshtml/__pycache__/core.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/claude_hands/mshtml/activex.py +354 -0
- package/python/Lib/site-packages/claude_hands/mshtml/collect.js +205 -0
- package/python/Lib/site-packages/claude_hands/mshtml/core.py +1081 -0
- package/python/Lib/site-packages/claude_hands/office/__init__.py +26 -0
- package/python/Lib/site-packages/claude_hands/office/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/claude_hands/office/__pycache__/core.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/claude_hands/office/__pycache__/hwp.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/claude_hands/office/core.py +676 -0
- package/python/Lib/site-packages/claude_hands/office/hwp.py +198 -0
- package/python/Lib/site-packages/claude_hands/server.py +862 -0
- package/python/Lib/site-packages/claude_hands/session.py +438 -0
- package/python/Lib/site-packages/claude_hands/uia/__init__.py +13 -0
- package/python/Lib/site-packages/claude_hands/uia/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/claude_hands/uia/__pycache__/core.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/claude_hands/uia/core.py +939 -0
- package/python/Lib/site-packages/claude_hands/win32/__init__.py +21 -0
- package/python/Lib/site-packages/claude_hands/win32/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/claude_hands/win32/__pycache__/capture.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/claude_hands/win32/__pycache__/controls.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/claude_hands/win32/__pycache__/defs.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/claude_hands/win32/__pycache__/input.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/claude_hands/win32/__pycache__/lists.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/claude_hands/win32/__pycache__/menus.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/claude_hands/win32/__pycache__/windows.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/claude_hands/win32/capture.py +339 -0
- package/python/Lib/site-packages/claude_hands/win32/controls.py +481 -0
- package/python/Lib/site-packages/claude_hands/win32/defs.py +505 -0
- package/python/Lib/site-packages/claude_hands/win32/input.py +385 -0
- package/python/Lib/site-packages/claude_hands/win32/lists.py +556 -0
- package/python/Lib/site-packages/claude_hands/win32/menus.py +213 -0
- package/python/Lib/site-packages/claude_hands/win32/windows.py +607 -0
- package/python/Lib/site-packages/claude_hands-0.2.4.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/claude_hands-0.2.4.dist-info/METADATA +407 -0
- package/python/Lib/site-packages/claude_hands-0.2.4.dist-info/RECORD +34 -0
- package/python/Lib/site-packages/claude_hands-0.2.4.dist-info/REQUESTED +0 -0
- package/python/Lib/site-packages/claude_hands-0.2.4.dist-info/WHEEL +5 -0
- package/python/Lib/site-packages/claude_hands-0.2.4.dist-info/direct_url.json +1 -0
- package/python/Lib/site-packages/claude_hands-0.2.4.dist-info/entry_points.txt +3 -0
- package/python/Lib/site-packages/claude_hands-0.2.4.dist-info/top_level.txt +1 -0
- package/python/Lib/site-packages/click/__init__.py +144 -0
- package/python/Lib/site-packages/click/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/click/__pycache__/_compat.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/click/__pycache__/_termui_impl.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/click/__pycache__/_textwrap.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/click/__pycache__/_utils.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/click/__pycache__/_winconsole.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/click/__pycache__/core.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/click/__pycache__/decorators.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/click/__pycache__/exceptions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/click/__pycache__/formatting.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/click/__pycache__/globals.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/click/__pycache__/parser.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/click/__pycache__/shell_completion.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/click/__pycache__/termui.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/click/__pycache__/testing.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/click/__pycache__/types.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/click/__pycache__/utils.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/click/_compat.py +590 -0
- package/python/Lib/site-packages/click/_termui_impl.py +970 -0
- package/python/Lib/site-packages/click/_textwrap.py +188 -0
- package/python/Lib/site-packages/click/_utils.py +45 -0
- package/python/Lib/site-packages/click/_winconsole.py +292 -0
- package/python/Lib/site-packages/click/core.py +3825 -0
- package/python/Lib/site-packages/click/decorators.py +625 -0
- package/python/Lib/site-packages/click/exceptions.py +378 -0
- package/python/Lib/site-packages/click/formatting.py +320 -0
- package/python/Lib/site-packages/click/globals.py +67 -0
- package/python/Lib/site-packages/click/parser.py +533 -0
- package/python/Lib/site-packages/click/py.typed +0 -0
- package/python/Lib/site-packages/click/shell_completion.py +796 -0
- package/python/Lib/site-packages/click/termui.py +1024 -0
- package/python/Lib/site-packages/click/testing.py +796 -0
- package/python/Lib/site-packages/click/types.py +1437 -0
- package/python/Lib/site-packages/click/utils.py +676 -0
- package/python/Lib/site-packages/click-8.5.1.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/click-8.5.1.dist-info/METADATA +83 -0
- package/python/Lib/site-packages/click-8.5.1.dist-info/RECORD +23 -0
- package/python/Lib/site-packages/click-8.5.1.dist-info/WHEEL +4 -0
- package/python/Lib/site-packages/click-8.5.1.dist-info/licenses/LICENSE.txt +28 -0
- package/python/Lib/site-packages/comtypes/GUID.py +119 -0
- package/python/Lib/site-packages/comtypes/__init__.py +297 -0
- package/python/Lib/site-packages/comtypes/__pycache__/GUID.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/__pycache__/_comobject.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/__pycache__/_memberspec.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/__pycache__/_meta.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/__pycache__/_npsupport.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/__pycache__/_safearray.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/__pycache__/_tlib_version_checker.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/__pycache__/_vtbl.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/__pycache__/automation.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/__pycache__/clear_cache.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/__pycache__/connectionpoints.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/__pycache__/errorinfo.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/__pycache__/git.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/__pycache__/hresult.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/__pycache__/logutil.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/__pycache__/malloc.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/__pycache__/messageloop.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/__pycache__/patcher.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/__pycache__/persist.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/__pycache__/safearray.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/__pycache__/shelllink.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/__pycache__/stream.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/__pycache__/typeinfo.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/__pycache__/util.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/__pycache__/viewobject.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/_comobject.py +549 -0
- package/python/Lib/site-packages/comtypes/_memberspec.py +757 -0
- package/python/Lib/site-packages/comtypes/_meta.py +100 -0
- package/python/Lib/site-packages/comtypes/_npsupport.py +172 -0
- package/python/Lib/site-packages/comtypes/_post_coinit/__init__.py +16 -0
- package/python/Lib/site-packages/comtypes/_post_coinit/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/_post_coinit/__pycache__/_cominterface_meta_patcher.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/_post_coinit/__pycache__/activeobj.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/_post_coinit/__pycache__/bstr.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/_post_coinit/__pycache__/instancemethod.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/_post_coinit/__pycache__/misc.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/_post_coinit/__pycache__/unknwn.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/_post_coinit/_cominterface_meta_patcher.py +149 -0
- package/python/Lib/site-packages/comtypes/_post_coinit/activeobj.py +61 -0
- package/python/Lib/site-packages/comtypes/_post_coinit/bstr.py +45 -0
- package/python/Lib/site-packages/comtypes/_post_coinit/instancemethod.py +12 -0
- package/python/Lib/site-packages/comtypes/_post_coinit/misc.py +381 -0
- package/python/Lib/site-packages/comtypes/_post_coinit/unknwn.py +423 -0
- package/python/Lib/site-packages/comtypes/_safearray.py +177 -0
- package/python/Lib/site-packages/comtypes/_tlib_version_checker.py +18 -0
- package/python/Lib/site-packages/comtypes/_vtbl.py +435 -0
- package/python/Lib/site-packages/comtypes/automation.py +1273 -0
- package/python/Lib/site-packages/comtypes/clear_cache.py +53 -0
- package/python/Lib/site-packages/comtypes/client/__init__.py +43 -0
- package/python/Lib/site-packages/comtypes/client/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/client/__pycache__/_activeobj.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/client/__pycache__/_code_cache.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/client/__pycache__/_constants.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/client/__pycache__/_create.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/client/__pycache__/_events.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/client/__pycache__/_generate.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/client/__pycache__/_managing.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/client/__pycache__/dynamic.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/client/__pycache__/lazybind.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/client/_activeobj.py +68 -0
- package/python/Lib/site-packages/comtypes/client/_code_cache.py +141 -0
- package/python/Lib/site-packages/comtypes/client/_constants.py +136 -0
- package/python/Lib/site-packages/comtypes/client/_create.py +183 -0
- package/python/Lib/site-packages/comtypes/client/_events.py +404 -0
- package/python/Lib/site-packages/comtypes/client/_generate.py +295 -0
- package/python/Lib/site-packages/comtypes/client/_managing.py +114 -0
- package/python/Lib/site-packages/comtypes/client/dynamic.py +177 -0
- package/python/Lib/site-packages/comtypes/client/lazybind.py +237 -0
- package/python/Lib/site-packages/comtypes/connectionpoints.py +168 -0
- package/python/Lib/site-packages/comtypes/errorinfo.py +175 -0
- package/python/Lib/site-packages/comtypes/gen/UIAutomationClient.py +947 -0
- package/python/Lib/site-packages/comtypes/gen/_00020430_0000_0000_C000_000000000046_0_2_0.py +516 -0
- package/python/Lib/site-packages/comtypes/gen/_944DE083_8FB8_45CF_BCB7_C477ACB2F897_0_1_0.py +6504 -0
- package/python/Lib/site-packages/comtypes/gen/__init__.py +1 -0
- package/python/Lib/site-packages/comtypes/gen/__pycache__/UIAutomationClient.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/gen/__pycache__/_00020430_0000_0000_C000_000000000046_0_2_0.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/gen/__pycache__/_944DE083_8FB8_45CF_BCB7_C477ACB2F897_0_1_0.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/gen/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/gen/__pycache__/stdole.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/gen/stdole.py +48 -0
- package/python/Lib/site-packages/comtypes/git.py +77 -0
- package/python/Lib/site-packages/comtypes/hints.pyi +316 -0
- package/python/Lib/site-packages/comtypes/hresult.py +159 -0
- package/python/Lib/site-packages/comtypes/logutil.py +28 -0
- package/python/Lib/site-packages/comtypes/malloc.py +53 -0
- package/python/Lib/site-packages/comtypes/messageloop.py +72 -0
- package/python/Lib/site-packages/comtypes/patcher.py +76 -0
- package/python/Lib/site-packages/comtypes/persist.py +312 -0
- package/python/Lib/site-packages/comtypes/py.typed +0 -0
- package/python/Lib/site-packages/comtypes/safearray.py +499 -0
- package/python/Lib/site-packages/comtypes/server/__init__.py +89 -0
- package/python/Lib/site-packages/comtypes/server/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/server/__pycache__/automation.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/server/__pycache__/connectionpoints.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/server/__pycache__/inprocserver.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/server/__pycache__/localserver.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/server/__pycache__/register.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/server/__pycache__/w_getopt.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/server/automation.py +96 -0
- package/python/Lib/site-packages/comtypes/server/connectionpoints.py +173 -0
- package/python/Lib/site-packages/comtypes/server/inprocserver.py +158 -0
- package/python/Lib/site-packages/comtypes/server/localserver.py +98 -0
- package/python/Lib/site-packages/comtypes/server/register.py +479 -0
- package/python/Lib/site-packages/comtypes/server/w_getopt.py +48 -0
- package/python/Lib/site-packages/comtypes/shelllink.py +342 -0
- package/python/Lib/site-packages/comtypes/stream.py +68 -0
- package/python/Lib/site-packages/comtypes/test/TestComServer.idl +101 -0
- package/python/Lib/site-packages/comtypes/test/TestComServer.py +156 -0
- package/python/Lib/site-packages/comtypes/test/TestComServer.tlb +0 -0
- package/python/Lib/site-packages/comtypes/test/TestDispServer.idl +79 -0
- package/python/Lib/site-packages/comtypes/test/TestDispServer.py +110 -0
- package/python/Lib/site-packages/comtypes/test/TestDispServer.tlb +0 -0
- package/python/Lib/site-packages/comtypes/test/__init__.py +229 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/TestComServer.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/TestDispServer.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/find_memleak.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/gdi_helper.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/monikers_helper.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/runtests.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/setup.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_BSTR.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_DISPPARAMS.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_GUID.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_QueryService.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_agilent.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_avmc.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_basic.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_bctx.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_casesensitivity.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_classfactory.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_clear_cache.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_client.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_client_dynamic.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_client_regenerate_modules.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_collections.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_comobject.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_compatibility_tlbparser_VT_I1_assignment.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_comserver.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_connectionpoints.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_cpp_safearray.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_createwrappers.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_dict.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_dispifc_records.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_dispifc_safearrays.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_dispinterface.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_dyndispatch.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_errorinfo.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_eventinterface.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_excel.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_findgendir.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_fixed_point_marshaling.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_fixed_point_numbers.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_getactiveobj.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_git.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_hresult.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_ienum.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_imfattributes.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_inout_args.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_logutil.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_malloc.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_messageloop.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_midl_safearray_create.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_moniker.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_msscript.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_npsupport.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_outparam.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_packing.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_persist.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_pump_events.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_puredispatch.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_record_safearray_bstr.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_record_safearray_value.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_recordinfo.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_rot.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_safearray.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_sapi.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_server.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_server_automation.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_server_register.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_shelllink.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_showevents.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_storage.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_stream.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_string_safearray_inside_variant.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_subinterface.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_typeannotator.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_typeinfo.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_typeinfo_create.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_urlhistory.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_util.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_variant.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_variant_error.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_variant_outparam.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_viewobject.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_w_getopt.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_win32com_interop.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/test_word.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/__pycache__/time_structs_helper.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/test/find_memleak.py +72 -0
- package/python/Lib/site-packages/comtypes/test/gdi_helper.py +202 -0
- package/python/Lib/site-packages/comtypes/test/monikers_helper.py +73 -0
- package/python/Lib/site-packages/comtypes/test/mylib.idl +40 -0
- package/python/Lib/site-packages/comtypes/test/mylib.tlb +0 -0
- package/python/Lib/site-packages/comtypes/test/mytypelib.idl +99 -0
- package/python/Lib/site-packages/comtypes/test/runtests.py +11 -0
- package/python/Lib/site-packages/comtypes/test/setup.py +7 -0
- package/python/Lib/site-packages/comtypes/test/test_BSTR.py +46 -0
- package/python/Lib/site-packages/comtypes/test/test_DISPPARAMS.py +44 -0
- package/python/Lib/site-packages/comtypes/test/test_GUID.py +57 -0
- package/python/Lib/site-packages/comtypes/test/test_QueryService.py +61 -0
- package/python/Lib/site-packages/comtypes/test/test_agilent.py +97 -0
- package/python/Lib/site-packages/comtypes/test/test_avmc.py +44 -0
- package/python/Lib/site-packages/comtypes/test/test_basic.py +142 -0
- package/python/Lib/site-packages/comtypes/test/test_bctx.py +143 -0
- package/python/Lib/site-packages/comtypes/test/test_casesensitivity.py +32 -0
- package/python/Lib/site-packages/comtypes/test/test_classfactory.py +64 -0
- package/python/Lib/site-packages/comtypes/test/test_clear_cache.py +26 -0
- package/python/Lib/site-packages/comtypes/test/test_client.py +386 -0
- package/python/Lib/site-packages/comtypes/test/test_client_dynamic.py +138 -0
- package/python/Lib/site-packages/comtypes/test/test_client_regenerate_modules.py +158 -0
- package/python/Lib/site-packages/comtypes/test/test_collections.py +164 -0
- package/python/Lib/site-packages/comtypes/test/test_comobject.py +214 -0
- package/python/Lib/site-packages/comtypes/test/test_compatibility_tlbparser_VT_I1_assignment.py +566 -0
- package/python/Lib/site-packages/comtypes/test/test_comserver.py +385 -0
- package/python/Lib/site-packages/comtypes/test/test_connectionpoints.py +128 -0
- package/python/Lib/site-packages/comtypes/test/test_cpp_safearray.py +178 -0
- package/python/Lib/site-packages/comtypes/test/test_createwrappers.py +131 -0
- package/python/Lib/site-packages/comtypes/test/test_dict.py +141 -0
- package/python/Lib/site-packages/comtypes/test/test_dispifc_records.py +88 -0
- package/python/Lib/site-packages/comtypes/test/test_dispifc_safearrays.py +87 -0
- package/python/Lib/site-packages/comtypes/test/test_dispinterface.py +153 -0
- package/python/Lib/site-packages/comtypes/test/test_dyndispatch.py +98 -0
- package/python/Lib/site-packages/comtypes/test/test_errorinfo.py +115 -0
- package/python/Lib/site-packages/comtypes/test/test_eventinterface.py +155 -0
- package/python/Lib/site-packages/comtypes/test/test_excel.py +152 -0
- package/python/Lib/site-packages/comtypes/test/test_findgendir.py +86 -0
- package/python/Lib/site-packages/comtypes/test/test_fixed_point_marshaling.py +456 -0
- package/python/Lib/site-packages/comtypes/test/test_fixed_point_numbers.py +571 -0
- package/python/Lib/site-packages/comtypes/test/test_getactiveobj.py +98 -0
- package/python/Lib/site-packages/comtypes/test/test_git.py +175 -0
- package/python/Lib/site-packages/comtypes/test/test_hresult.py +87 -0
- package/python/Lib/site-packages/comtypes/test/test_ienum.py +29 -0
- package/python/Lib/site-packages/comtypes/test/test_imfattributes.py +39 -0
- package/python/Lib/site-packages/comtypes/test/test_inout_args.py +501 -0
- package/python/Lib/site-packages/comtypes/test/test_jscript.js +17 -0
- package/python/Lib/site-packages/comtypes/test/test_logutil.py +243 -0
- package/python/Lib/site-packages/comtypes/test/test_malloc.py +61 -0
- package/python/Lib/site-packages/comtypes/test/test_messageloop.py +116 -0
- package/python/Lib/site-packages/comtypes/test/test_midl_safearray_create.py +134 -0
- package/python/Lib/site-packages/comtypes/test/test_moniker.py +583 -0
- package/python/Lib/site-packages/comtypes/test/test_msscript.py +74 -0
- package/python/Lib/site-packages/comtypes/test/test_npsupport.py +452 -0
- package/python/Lib/site-packages/comtypes/test/test_outparam.py +77 -0
- package/python/Lib/site-packages/comtypes/test/test_packing.py +45 -0
- package/python/Lib/site-packages/comtypes/test/test_persist.py +71 -0
- package/python/Lib/site-packages/comtypes/test/test_pump_events.py +17 -0
- package/python/Lib/site-packages/comtypes/test/test_puredispatch.py +98 -0
- package/python/Lib/site-packages/comtypes/test/test_record_safearray_bstr.py +480 -0
- package/python/Lib/site-packages/comtypes/test/test_record_safearray_value.py +403 -0
- package/python/Lib/site-packages/comtypes/test/test_recordinfo.py +77 -0
- package/python/Lib/site-packages/comtypes/test/test_rot.py +94 -0
- package/python/Lib/site-packages/comtypes/test/test_safearray.py +227 -0
- package/python/Lib/site-packages/comtypes/test/test_sapi.py +37 -0
- package/python/Lib/site-packages/comtypes/test/test_server.py +350 -0
- package/python/Lib/site-packages/comtypes/test/test_server_automation.py +135 -0
- package/python/Lib/site-packages/comtypes/test/test_server_register.py +525 -0
- package/python/Lib/site-packages/comtypes/test/test_shelllink.py +207 -0
- package/python/Lib/site-packages/comtypes/test/test_showevents.py +35 -0
- package/python/Lib/site-packages/comtypes/test/test_storage.py +329 -0
- package/python/Lib/site-packages/comtypes/test/test_stream.py +607 -0
- package/python/Lib/site-packages/comtypes/test/test_string_safearray_inside_variant.py +138 -0
- package/python/Lib/site-packages/comtypes/test/test_subinterface.py +14 -0
- package/python/Lib/site-packages/comtypes/test/test_typeannotator.py +171 -0
- package/python/Lib/site-packages/comtypes/test/test_typeinfo.py +251 -0
- package/python/Lib/site-packages/comtypes/test/test_typeinfo_create.py +449 -0
- package/python/Lib/site-packages/comtypes/test/test_urlhistory.py +61 -0
- package/python/Lib/site-packages/comtypes/test/test_util.py +227 -0
- package/python/Lib/site-packages/comtypes/test/test_variant.py +486 -0
- package/python/Lib/site-packages/comtypes/test/test_variant_error.py +68 -0
- package/python/Lib/site-packages/comtypes/test/test_variant_outparam.py +71 -0
- package/python/Lib/site-packages/comtypes/test/test_viewobject.py +117 -0
- package/python/Lib/site-packages/comtypes/test/test_w_getopt.py +29 -0
- package/python/Lib/site-packages/comtypes/test/test_win32com_interop.py +163 -0
- package/python/Lib/site-packages/comtypes/test/test_word.py +92 -0
- package/python/Lib/site-packages/comtypes/test/time_structs_helper.py +39 -0
- package/python/Lib/site-packages/comtypes/test/urlhist.tlb +0 -0
- package/python/Lib/site-packages/comtypes/tools/__init__.py +1 -0
- package/python/Lib/site-packages/comtypes/tools/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/tools/__pycache__/tlbparser.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/tools/__pycache__/typedesc.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/tools/__pycache__/typedesc_base.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/tools/codegenerator/__init__.py +5 -0
- package/python/Lib/site-packages/comtypes/tools/codegenerator/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/tools/codegenerator/__pycache__/codegenerator.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/tools/codegenerator/__pycache__/heads.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/tools/codegenerator/__pycache__/helpers.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/tools/codegenerator/__pycache__/modulenamer.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/tools/codegenerator/__pycache__/namespaces.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/tools/codegenerator/__pycache__/packing.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/tools/codegenerator/__pycache__/typeannotator.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/comtypes/tools/codegenerator/codegenerator.py +757 -0
- package/python/Lib/site-packages/comtypes/tools/codegenerator/heads.py +158 -0
- package/python/Lib/site-packages/comtypes/tools/codegenerator/helpers.py +348 -0
- package/python/Lib/site-packages/comtypes/tools/codegenerator/modulenamer.py +23 -0
- package/python/Lib/site-packages/comtypes/tools/codegenerator/namespaces.py +305 -0
- package/python/Lib/site-packages/comtypes/tools/codegenerator/packing.py +82 -0
- package/python/Lib/site-packages/comtypes/tools/codegenerator/typeannotator.py +401 -0
- package/python/Lib/site-packages/comtypes/tools/tlbparser.py +833 -0
- package/python/Lib/site-packages/comtypes/tools/typedesc.py +280 -0
- package/python/Lib/site-packages/comtypes/tools/typedesc_base.py +278 -0
- package/python/Lib/site-packages/comtypes/typeinfo.py +1442 -0
- package/python/Lib/site-packages/comtypes/util.py +198 -0
- package/python/Lib/site-packages/comtypes/viewobject.py +237 -0
- package/python/Lib/site-packages/comtypes-1.5.0.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/comtypes-1.5.0.dist-info/METADATA +105 -0
- package/python/Lib/site-packages/comtypes-1.5.0.dist-info/RECORD +167 -0
- package/python/Lib/site-packages/comtypes-1.5.0.dist-info/WHEEL +5 -0
- package/python/Lib/site-packages/comtypes-1.5.0.dist-info/entry_points.txt +2 -0
- package/python/Lib/site-packages/comtypes-1.5.0.dist-info/licenses/LICENSE.txt +24 -0
- package/python/Lib/site-packages/comtypes-1.5.0.dist-info/top_level.txt +1 -0
- package/python/Lib/site-packages/cryptography/__about__.py +17 -0
- package/python/Lib/site-packages/cryptography/__init__.py +13 -0
- package/python/Lib/site-packages/cryptography/__pycache__/__about__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/__pycache__/cobblestone.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/__pycache__/exceptions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/__pycache__/fernet.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/__pycache__/utils.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/cobblestone.py +21 -0
- package/python/Lib/site-packages/cryptography/exceptions.py +52 -0
- package/python/Lib/site-packages/cryptography/fernet.py +240 -0
- package/python/Lib/site-packages/cryptography/hazmat/__init__.py +13 -0
- package/python/Lib/site-packages/cryptography/hazmat/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/__pycache__/_oid.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/_oid.py +373 -0
- package/python/Lib/site-packages/cryptography/hazmat/asn1/__init__.py +47 -0
- package/python/Lib/site-packages/cryptography/hazmat/asn1/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/asn1/__pycache__/asn1.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/asn1/asn1.py +533 -0
- package/python/Lib/site-packages/cryptography/hazmat/backends/__init__.py +13 -0
- package/python/Lib/site-packages/cryptography/hazmat/backends/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/backends/openssl/__init__.py +9 -0
- package/python/Lib/site-packages/cryptography/hazmat/backends/openssl/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/backends/openssl/__pycache__/backend.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/backends/openssl/backend.py +309 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/__init__.py +5 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/__init__.pyi +67 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/_openssl.pyi +8 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/asn1.pyi +7 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/cobblestone.pyi +33 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/declarative_asn1.pyi +133 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/exceptions.pyi +17 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/ocsp.pyi +117 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/__init__.pyi +82 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/aead.pyi +189 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/ciphers.pyi +38 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/cmac.pyi +18 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/dh.pyi +51 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/dsa.pyi +41 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/ec.pyi +52 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/ed25519.pyi +13 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/ed448.pyi +13 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/hashes.pyi +30 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/hmac.pyi +22 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/hpke.pyi +109 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/kdf.pyi +205 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/keys.pyi +34 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/keywrap.pyi +28 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/mldsa.pyi +35 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/mlkem.pyi +18 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/poly1305.pyi +15 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/rsa.pyi +55 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/x25519.pyi +13 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/openssl/x448.pyi +13 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/pkcs12.pyi +52 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/pkcs7.pyi +50 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/test_support.pyi +23 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust/x509.pyi +313 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/_rust.pyd +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/openssl/__init__.py +5 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/openssl/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/openssl/__pycache__/_conditional.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/openssl/__pycache__/binding.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/openssl/_conditional.py +199 -0
- package/python/Lib/site-packages/cryptography/hazmat/bindings/openssl/binding.py +107 -0
- package/python/Lib/site-packages/cryptography/hazmat/decrepit/__init__.py +5 -0
- package/python/Lib/site-packages/cryptography/hazmat/decrepit/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/decrepit/ciphers/__init__.py +5 -0
- package/python/Lib/site-packages/cryptography/hazmat/decrepit/ciphers/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/decrepit/ciphers/__pycache__/algorithms.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/decrepit/ciphers/__pycache__/modes.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/decrepit/ciphers/algorithms.py +145 -0
- package/python/Lib/site-packages/cryptography/hazmat/decrepit/ciphers/modes.py +53 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/__init__.py +5 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/__pycache__/_asymmetric.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/__pycache__/_cipheralgorithm.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/__pycache__/_modes.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/__pycache__/_serialization.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/__pycache__/cmac.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/__pycache__/constant_time.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/__pycache__/hashes.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/__pycache__/hmac.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/__pycache__/hpke.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/__pycache__/keywrap.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/__pycache__/padding.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/__pycache__/poly1305.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/_asymmetric.py +19 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/_cipheralgorithm.py +60 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/_modes.py +105 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/_serialization.py +136 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/__init__.py +5 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/__pycache__/dh.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/__pycache__/dsa.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/__pycache__/ec.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/__pycache__/ed25519.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/__pycache__/ed448.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/__pycache__/mldsa.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/__pycache__/mlkem.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/__pycache__/padding.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/__pycache__/rsa.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/__pycache__/types.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/__pycache__/utils.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/__pycache__/x25519.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/__pycache__/x448.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/dh.py +253 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/dsa.py +179 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/ec.py +369 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/ed25519.py +116 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/ed448.py +143 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/mldsa.py +505 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/mlkem.py +278 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/padding.py +141 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/rsa.py +295 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/types.py +94 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/utils.py +28 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/x25519.py +134 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/x448.py +137 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/ciphers/__init__.py +27 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/ciphers/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/ciphers/__pycache__/aead.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/ciphers/__pycache__/algorithms.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/ciphers/__pycache__/base.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/ciphers/__pycache__/modes.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/ciphers/aead.py +23 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/ciphers/algorithms.py +138 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/ciphers/base.py +146 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/ciphers/modes.py +192 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/cmac.py +10 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/constant_time.py +14 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/hashes.py +357 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/hmac.py +13 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/hpke.py +27 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/kdf/__init__.py +32 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/kdf/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/kdf/__pycache__/argon2.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/kdf/__pycache__/concatkdf.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/kdf/__pycache__/hkdf.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/kdf/__pycache__/kbkdf.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/kdf/__pycache__/pbkdf2.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/kdf/__pycache__/scrypt.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/kdf/__pycache__/x963kdf.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/kdf/argon2.py +17 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/kdf/concatkdf.py +16 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/kdf/hkdf.py +16 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/kdf/kbkdf.py +26 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/kdf/pbkdf2.py +13 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/kdf/scrypt.py +19 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/kdf/x963kdf.py +13 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/keywrap.py +25 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/padding.py +69 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/poly1305.py +11 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/serialization/__init__.py +85 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/serialization/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/serialization/__pycache__/base.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/serialization/__pycache__/pkcs12.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/serialization/__pycache__/pkcs7.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/serialization/__pycache__/ssh.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/serialization/base.py +16 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/serialization/pkcs12.py +176 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/serialization/pkcs7.py +412 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/serialization/ssh.py +1615 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/twofactor/__init__.py +9 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/twofactor/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/twofactor/__pycache__/hotp.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/twofactor/__pycache__/totp.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/twofactor/hotp.py +101 -0
- package/python/Lib/site-packages/cryptography/hazmat/primitives/twofactor/totp.py +56 -0
- package/python/Lib/site-packages/cryptography/py.typed +0 -0
- package/python/Lib/site-packages/cryptography/utils.py +136 -0
- package/python/Lib/site-packages/cryptography/x509/__init__.py +270 -0
- package/python/Lib/site-packages/cryptography/x509/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/x509/__pycache__/base.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/x509/__pycache__/certificate_transparency.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/x509/__pycache__/extensions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/x509/__pycache__/general_name.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/x509/__pycache__/name.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/x509/__pycache__/ocsp.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/x509/__pycache__/oid.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/x509/__pycache__/verification.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/cryptography/x509/base.py +834 -0
- package/python/Lib/site-packages/cryptography/x509/certificate_transparency.py +35 -0
- package/python/Lib/site-packages/cryptography/x509/extensions.py +2533 -0
- package/python/Lib/site-packages/cryptography/x509/general_name.py +281 -0
- package/python/Lib/site-packages/cryptography/x509/name.py +489 -0
- package/python/Lib/site-packages/cryptography/x509/ocsp.py +379 -0
- package/python/Lib/site-packages/cryptography/x509/oid.py +37 -0
- package/python/Lib/site-packages/cryptography/x509/verification.py +34 -0
- package/python/Lib/site-packages/cryptography-50.0.2.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/cryptography-50.0.2.dist-info/METADATA +111 -0
- package/python/Lib/site-packages/cryptography-50.0.2.dist-info/RECORD +121 -0
- package/python/Lib/site-packages/cryptography-50.0.2.dist-info/WHEEL +4 -0
- package/python/Lib/site-packages/cryptography-50.0.2.dist-info/licenses/LICENSE +3 -0
- package/python/Lib/site-packages/cryptography-50.0.2.dist-info/licenses/LICENSE.APACHE +202 -0
- package/python/Lib/site-packages/cryptography-50.0.2.dist-info/licenses/LICENSE.BSD +27 -0
- package/python/Lib/site-packages/cryptography-50.0.2.dist-info/sboms/cryptography-rust.cyclonedx.json +1365 -0
- package/python/Lib/site-packages/cryptography-50.0.2.dist-info/sboms/sbom.json +43 -0
- package/python/Lib/site-packages/h11/__init__.py +62 -0
- package/python/Lib/site-packages/h11/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/h11/__pycache__/_abnf.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/h11/__pycache__/_connection.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/h11/__pycache__/_events.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/h11/__pycache__/_headers.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/h11/__pycache__/_readers.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/h11/__pycache__/_receivebuffer.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/h11/__pycache__/_state.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/h11/__pycache__/_util.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/h11/__pycache__/_version.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/h11/__pycache__/_writers.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/h11/_abnf.py +132 -0
- package/python/Lib/site-packages/h11/_connection.py +659 -0
- package/python/Lib/site-packages/h11/_events.py +369 -0
- package/python/Lib/site-packages/h11/_headers.py +282 -0
- package/python/Lib/site-packages/h11/_readers.py +250 -0
- package/python/Lib/site-packages/h11/_receivebuffer.py +153 -0
- package/python/Lib/site-packages/h11/_state.py +365 -0
- package/python/Lib/site-packages/h11/_util.py +135 -0
- package/python/Lib/site-packages/h11/_version.py +16 -0
- package/python/Lib/site-packages/h11/_writers.py +145 -0
- package/python/Lib/site-packages/h11/py.typed +1 -0
- package/python/Lib/site-packages/h11-0.16.0.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/h11-0.16.0.dist-info/METADATA +202 -0
- package/python/Lib/site-packages/h11-0.16.0.dist-info/RECORD +18 -0
- package/python/Lib/site-packages/h11-0.16.0.dist-info/WHEEL +5 -0
- package/python/Lib/site-packages/h11-0.16.0.dist-info/licenses/LICENSE.txt +22 -0
- package/python/Lib/site-packages/h11-0.16.0.dist-info/top_level.txt +1 -0
- package/python/Lib/site-packages/httpcore2/__init__.py +141 -0
- package/python/Lib/site-packages/httpcore2/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/__pycache__/_api.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/__pycache__/_exceptions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/__pycache__/_models.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/__pycache__/_ssl.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/__pycache__/_synchronization.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/__pycache__/_trace.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/__pycache__/_types.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/__pycache__/_utils.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/_api.py +95 -0
- package/python/Lib/site-packages/httpcore2/_async/__init__.py +39 -0
- package/python/Lib/site-packages/httpcore2/_async/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/_async/__pycache__/connection.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/_async/__pycache__/connection_pool.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/_async/__pycache__/http11.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/_async/__pycache__/http2.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/_async/__pycache__/http_proxy.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/_async/__pycache__/interfaces.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/_async/__pycache__/socks_proxy.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/_async/connection.py +209 -0
- package/python/Lib/site-packages/httpcore2/_async/connection_pool.py +448 -0
- package/python/Lib/site-packages/httpcore2/_async/http11.py +354 -0
- package/python/Lib/site-packages/httpcore2/_async/http2.py +582 -0
- package/python/Lib/site-packages/httpcore2/_async/http_proxy.py +373 -0
- package/python/Lib/site-packages/httpcore2/_async/interfaces.py +156 -0
- package/python/Lib/site-packages/httpcore2/_async/socks_proxy.py +342 -0
- package/python/Lib/site-packages/httpcore2/_backends/__init__.py +0 -0
- package/python/Lib/site-packages/httpcore2/_backends/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/_backends/__pycache__/anyio.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/_backends/__pycache__/auto.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/_backends/__pycache__/base.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/_backends/__pycache__/mock.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/_backends/__pycache__/sync.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/_backends/__pycache__/trio.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/_backends/anyio.py +151 -0
- package/python/Lib/site-packages/httpcore2/_backends/auto.py +51 -0
- package/python/Lib/site-packages/httpcore2/_backends/base.py +98 -0
- package/python/Lib/site-packages/httpcore2/_backends/mock.py +144 -0
- package/python/Lib/site-packages/httpcore2/_backends/sync.py +236 -0
- package/python/Lib/site-packages/httpcore2/_backends/trio.py +158 -0
- package/python/Lib/site-packages/httpcore2/_exceptions.py +83 -0
- package/python/Lib/site-packages/httpcore2/_models.py +482 -0
- package/python/Lib/site-packages/httpcore2/_ssl.py +40 -0
- package/python/Lib/site-packages/httpcore2/_sync/__init__.py +39 -0
- package/python/Lib/site-packages/httpcore2/_sync/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/_sync/__pycache__/connection.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/_sync/__pycache__/connection_pool.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/_sync/__pycache__/http11.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/_sync/__pycache__/http2.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/_sync/__pycache__/http_proxy.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/_sync/__pycache__/interfaces.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/_sync/__pycache__/socks_proxy.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpcore2/_sync/connection.py +209 -0
- package/python/Lib/site-packages/httpcore2/_sync/connection_pool.py +448 -0
- package/python/Lib/site-packages/httpcore2/_sync/http11.py +354 -0
- package/python/Lib/site-packages/httpcore2/_sync/http2.py +582 -0
- package/python/Lib/site-packages/httpcore2/_sync/http_proxy.py +373 -0
- package/python/Lib/site-packages/httpcore2/_sync/interfaces.py +156 -0
- package/python/Lib/site-packages/httpcore2/_sync/socks_proxy.py +342 -0
- package/python/Lib/site-packages/httpcore2/_synchronization.py +340 -0
- package/python/Lib/site-packages/httpcore2/_trace.py +105 -0
- package/python/Lib/site-packages/httpcore2/_types.py +17 -0
- package/python/Lib/site-packages/httpcore2/_utils.py +65 -0
- package/python/Lib/site-packages/httpcore2/py.typed +0 -0
- package/python/Lib/site-packages/httpcore2-2.17.0.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/httpcore2-2.17.0.dist-info/METADATA +814 -0
- package/python/Lib/site-packages/httpcore2-2.17.0.dist-info/RECORD +38 -0
- package/python/Lib/site-packages/httpcore2-2.17.0.dist-info/WHEEL +4 -0
- package/python/Lib/site-packages/httpcore2-2.17.0.dist-info/licenses/LICENSE.md +28 -0
- package/python/Lib/site-packages/httpx2/__init__.py +130 -0
- package/python/Lib/site-packages/httpx2/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/__pycache__/__version__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/__pycache__/_alias.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/__pycache__/_api.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/__pycache__/_auth.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/__pycache__/_client.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/__pycache__/_config.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/__pycache__/_content.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/__pycache__/_cookies.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/__pycache__/_decoders.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/__pycache__/_exceptions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/__pycache__/_main.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/__pycache__/_models.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/__pycache__/_multipart.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/__pycache__/_sse.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/__pycache__/_status_codes.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/__pycache__/_types.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/__pycache__/_urlparse.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/__pycache__/_urls.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/__pycache__/_utils.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/__version__.py +5 -0
- package/python/Lib/site-packages/httpx2/_alias.py +71 -0
- package/python/Lib/site-packages/httpx2/_api.py +532 -0
- package/python/Lib/site-packages/httpx2/_auth.py +335 -0
- package/python/Lib/site-packages/httpx2/_client.py +2239 -0
- package/python/Lib/site-packages/httpx2/_config.py +225 -0
- package/python/Lib/site-packages/httpx2/_content.py +237 -0
- package/python/Lib/site-packages/httpx2/_cookies.py +78 -0
- package/python/Lib/site-packages/httpx2/_decoders.py +459 -0
- package/python/Lib/site-packages/httpx2/_exceptions.py +380 -0
- package/python/Lib/site-packages/httpx2/_main.py +484 -0
- package/python/Lib/site-packages/httpx2/_models.py +1321 -0
- package/python/Lib/site-packages/httpx2/_multipart.py +285 -0
- package/python/Lib/site-packages/httpx2/_sse.py +226 -0
- package/python/Lib/site-packages/httpx2/_status_codes.py +190 -0
- package/python/Lib/site-packages/httpx2/_transports/__init__.py +27 -0
- package/python/Lib/site-packages/httpx2/_transports/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/_transports/__pycache__/asgi.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/_transports/__pycache__/base.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/_transports/__pycache__/default.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/_transports/__pycache__/mock.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/_transports/__pycache__/wsgi.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/_transports/asgi.py +179 -0
- package/python/Lib/site-packages/httpx2/_transports/base.py +79 -0
- package/python/Lib/site-packages/httpx2/_transports/default.py +405 -0
- package/python/Lib/site-packages/httpx2/_transports/mock.py +40 -0
- package/python/Lib/site-packages/httpx2/_transports/wsgi.py +146 -0
- package/python/Lib/site-packages/httpx2/_types.py +88 -0
- package/python/Lib/site-packages/httpx2/_urlparse.py +514 -0
- package/python/Lib/site-packages/httpx2/_urls.py +696 -0
- package/python/Lib/site-packages/httpx2/_utils.py +287 -0
- package/python/Lib/site-packages/httpx2/py.typed +0 -0
- package/python/Lib/site-packages/httpx2/websockets/__init__.py +57 -0
- package/python/Lib/site-packages/httpx2/websockets/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/websockets/__pycache__/_api.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/websockets/__pycache__/_exceptions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/websockets/__pycache__/_ping.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/websockets/__pycache__/_transport.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/httpx2/websockets/_api.py +1675 -0
- package/python/Lib/site-packages/httpx2/websockets/_exceptions.py +55 -0
- package/python/Lib/site-packages/httpx2/websockets/_ping.py +43 -0
- package/python/Lib/site-packages/httpx2/websockets/_transport.py +288 -0
- package/python/Lib/site-packages/httpx2-2.17.0.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/httpx2-2.17.0.dist-info/METADATA +252 -0
- package/python/Lib/site-packages/httpx2-2.17.0.dist-info/RECORD +39 -0
- package/python/Lib/site-packages/httpx2-2.17.0.dist-info/WHEEL +4 -0
- package/python/Lib/site-packages/httpx2-2.17.0.dist-info/entry_points.txt +2 -0
- package/python/Lib/site-packages/httpx2-2.17.0.dist-info/licenses/LICENSE.md +13 -0
- package/python/Lib/site-packages/idna/__init__.py +47 -0
- package/python/Lib/site-packages/idna/__main__.py +6 -0
- package/python/Lib/site-packages/idna/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/idna/__pycache__/__main__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/idna/__pycache__/cli.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/idna/__pycache__/codec.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/idna/__pycache__/compat.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/idna/__pycache__/core.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/idna/__pycache__/idnadata.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/idna/__pycache__/intranges.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/idna/__pycache__/package_data.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/idna/__pycache__/uts46data.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/idna/cli.py +132 -0
- package/python/Lib/site-packages/idna/codec.py +225 -0
- package/python/Lib/site-packages/idna/compat.py +43 -0
- package/python/Lib/site-packages/idna/core.py +863 -0
- package/python/Lib/site-packages/idna/idnadata.py +1933 -0
- package/python/Lib/site-packages/idna/intranges.py +55 -0
- package/python/Lib/site-packages/idna/package_data.py +1 -0
- package/python/Lib/site-packages/idna/py.typed +0 -0
- package/python/Lib/site-packages/idna/uts46data.py +17117 -0
- package/python/Lib/site-packages/idna-3.20.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/idna-3.20.dist-info/METADATA +176 -0
- package/python/Lib/site-packages/idna-3.20.dist-info/RECORD +18 -0
- package/python/Lib/site-packages/idna-3.20.dist-info/WHEEL +4 -0
- package/python/Lib/site-packages/idna-3.20.dist-info/entry_points.txt +3 -0
- package/python/Lib/site-packages/idna-3.20.dist-info/licenses/LICENSE.md +31 -0
- package/python/Lib/site-packages/isapi/PyISAPI_loader.dll +0 -0
- package/python/Lib/site-packages/isapi/README.txt +7 -0
- package/python/Lib/site-packages/isapi/__init__.py +39 -0
- package/python/Lib/site-packages/isapi/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/isapi/__pycache__/install.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/isapi/__pycache__/isapicon.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/isapi/__pycache__/simple.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/isapi/__pycache__/threaded_extension.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/isapi/doc/isapi.html +92 -0
- package/python/Lib/site-packages/isapi/install.py +807 -0
- package/python/Lib/site-packages/isapi/isapicon.py +121 -0
- package/python/Lib/site-packages/isapi/samples/README.txt +20 -0
- package/python/Lib/site-packages/isapi/samples/__pycache__/advanced.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/isapi/samples/__pycache__/redirector.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/isapi/samples/__pycache__/redirector_asynch.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/isapi/samples/__pycache__/redirector_with_filter.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/isapi/samples/__pycache__/test.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/isapi/samples/advanced.py +218 -0
- package/python/Lib/site-packages/isapi/samples/redirector.py +116 -0
- package/python/Lib/site-packages/isapi/samples/redirector_asynch.py +85 -0
- package/python/Lib/site-packages/isapi/samples/redirector_with_filter.py +162 -0
- package/python/Lib/site-packages/isapi/samples/test.py +195 -0
- package/python/Lib/site-packages/isapi/simple.py +73 -0
- package/python/Lib/site-packages/isapi/test/README.txt +3 -0
- package/python/Lib/site-packages/isapi/test/__pycache__/extension_simple.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/isapi/test/extension_simple.py +114 -0
- package/python/Lib/site-packages/isapi/threaded_extension.py +193 -0
- package/python/Lib/site-packages/jsonschema/__init__.py +120 -0
- package/python/Lib/site-packages/jsonschema/__main__.py +6 -0
- package/python/Lib/site-packages/jsonschema/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/__pycache__/__main__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/__pycache__/_format.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/__pycache__/_keywords.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/__pycache__/_legacy_keywords.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/__pycache__/_types.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/__pycache__/_typing.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/__pycache__/_utils.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/__pycache__/cli.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/__pycache__/exceptions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/__pycache__/protocols.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/__pycache__/validators.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/_format.py +546 -0
- package/python/Lib/site-packages/jsonschema/_keywords.py +449 -0
- package/python/Lib/site-packages/jsonschema/_legacy_keywords.py +449 -0
- package/python/Lib/site-packages/jsonschema/_types.py +204 -0
- package/python/Lib/site-packages/jsonschema/_typing.py +29 -0
- package/python/Lib/site-packages/jsonschema/_utils.py +355 -0
- package/python/Lib/site-packages/jsonschema/benchmarks/__init__.py +5 -0
- package/python/Lib/site-packages/jsonschema/benchmarks/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/benchmarks/__pycache__/const_vs_enum.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/benchmarks/__pycache__/contains.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/benchmarks/__pycache__/import_benchmark.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/benchmarks/__pycache__/issue232.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/benchmarks/__pycache__/json_schema_test_suite.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/benchmarks/__pycache__/nested_schemas.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/benchmarks/__pycache__/subcomponents.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/benchmarks/__pycache__/unused_registry.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/benchmarks/__pycache__/useless_applicator_schemas.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/benchmarks/__pycache__/useless_keywords.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/benchmarks/__pycache__/validator_creation.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/benchmarks/const_vs_enum.py +30 -0
- package/python/Lib/site-packages/jsonschema/benchmarks/contains.py +28 -0
- package/python/Lib/site-packages/jsonschema/benchmarks/import_benchmark.py +31 -0
- package/python/Lib/site-packages/jsonschema/benchmarks/issue232/issue.json +2653 -0
- package/python/Lib/site-packages/jsonschema/benchmarks/issue232.py +25 -0
- package/python/Lib/site-packages/jsonschema/benchmarks/json_schema_test_suite.py +12 -0
- package/python/Lib/site-packages/jsonschema/benchmarks/nested_schemas.py +56 -0
- package/python/Lib/site-packages/jsonschema/benchmarks/subcomponents.py +42 -0
- package/python/Lib/site-packages/jsonschema/benchmarks/unused_registry.py +35 -0
- package/python/Lib/site-packages/jsonschema/benchmarks/useless_applicator_schemas.py +106 -0
- package/python/Lib/site-packages/jsonschema/benchmarks/useless_keywords.py +32 -0
- package/python/Lib/site-packages/jsonschema/benchmarks/validator_creation.py +14 -0
- package/python/Lib/site-packages/jsonschema/cli.py +292 -0
- package/python/Lib/site-packages/jsonschema/exceptions.py +490 -0
- package/python/Lib/site-packages/jsonschema/protocols.py +230 -0
- package/python/Lib/site-packages/jsonschema/tests/__init__.py +0 -0
- package/python/Lib/site-packages/jsonschema/tests/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/tests/__pycache__/_suite.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/tests/__pycache__/fuzz_validate.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/tests/__pycache__/test_cli.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/tests/__pycache__/test_deprecations.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/tests/__pycache__/test_exceptions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/tests/__pycache__/test_format.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/tests/__pycache__/test_jsonschema_test_suite.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/tests/__pycache__/test_types.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/tests/__pycache__/test_utils.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/tests/__pycache__/test_validators.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/tests/_suite.py +285 -0
- package/python/Lib/site-packages/jsonschema/tests/fuzz_validate.py +50 -0
- package/python/Lib/site-packages/jsonschema/tests/test_cli.py +904 -0
- package/python/Lib/site-packages/jsonschema/tests/test_deprecations.py +432 -0
- package/python/Lib/site-packages/jsonschema/tests/test_exceptions.py +759 -0
- package/python/Lib/site-packages/jsonschema/tests/test_format.py +91 -0
- package/python/Lib/site-packages/jsonschema/tests/test_jsonschema_test_suite.py +262 -0
- package/python/Lib/site-packages/jsonschema/tests/test_types.py +221 -0
- package/python/Lib/site-packages/jsonschema/tests/test_utils.py +138 -0
- package/python/Lib/site-packages/jsonschema/tests/test_validators.py +2573 -0
- package/python/Lib/site-packages/jsonschema/tests/typing/__init__.py +0 -0
- package/python/Lib/site-packages/jsonschema/tests/typing/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/tests/typing/__pycache__/test_all_concrete_validators_match_protocol.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema/tests/typing/test_all_concrete_validators_match_protocol.py +38 -0
- package/python/Lib/site-packages/jsonschema/validators.py +1410 -0
- package/python/Lib/site-packages/jsonschema-4.26.0.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/jsonschema-4.26.0.dist-info/METADATA +170 -0
- package/python/Lib/site-packages/jsonschema-4.26.0.dist-info/RECORD +45 -0
- package/python/Lib/site-packages/jsonschema-4.26.0.dist-info/WHEEL +4 -0
- package/python/Lib/site-packages/jsonschema-4.26.0.dist-info/entry_points.txt +2 -0
- package/python/Lib/site-packages/jsonschema-4.26.0.dist-info/licenses/COPYING +19 -0
- package/python/Lib/site-packages/jsonschema_specifications/__init__.py +12 -0
- package/python/Lib/site-packages/jsonschema_specifications/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema_specifications/__pycache__/_core.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema_specifications/_core.py +38 -0
- package/python/Lib/site-packages/jsonschema_specifications/schemas/draft201909/metaschema.json +42 -0
- package/python/Lib/site-packages/jsonschema_specifications/schemas/draft201909/vocabularies/applicator +56 -0
- package/python/Lib/site-packages/jsonschema_specifications/schemas/draft201909/vocabularies/content +17 -0
- package/python/Lib/site-packages/jsonschema_specifications/schemas/draft201909/vocabularies/core +57 -0
- package/python/Lib/site-packages/jsonschema_specifications/schemas/draft201909/vocabularies/format +14 -0
- package/python/Lib/site-packages/jsonschema_specifications/schemas/draft201909/vocabularies/meta-data +37 -0
- package/python/Lib/site-packages/jsonschema_specifications/schemas/draft201909/vocabularies/validation +98 -0
- package/python/Lib/site-packages/jsonschema_specifications/schemas/draft202012/metaschema.json +58 -0
- package/python/Lib/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/applicator +48 -0
- package/python/Lib/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/content +17 -0
- package/python/Lib/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/core +51 -0
- package/python/Lib/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/format-annotation +14 -0
- package/python/Lib/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/format-assertion +14 -0
- package/python/Lib/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/meta-data +37 -0
- package/python/Lib/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/unevaluated +15 -0
- package/python/Lib/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/validation +98 -0
- package/python/Lib/site-packages/jsonschema_specifications/schemas/draft3/metaschema.json +172 -0
- package/python/Lib/site-packages/jsonschema_specifications/schemas/draft4/metaschema.json +149 -0
- package/python/Lib/site-packages/jsonschema_specifications/schemas/draft6/metaschema.json +153 -0
- package/python/Lib/site-packages/jsonschema_specifications/schemas/draft7/metaschema.json +166 -0
- package/python/Lib/site-packages/jsonschema_specifications/tests/__init__.py +0 -0
- package/python/Lib/site-packages/jsonschema_specifications/tests/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema_specifications/tests/__pycache__/test_jsonschema_specifications.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jsonschema_specifications/tests/test_jsonschema_specifications.py +41 -0
- package/python/Lib/site-packages/jsonschema_specifications-2025.9.1.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/jsonschema_specifications-2025.9.1.dist-info/METADATA +54 -0
- package/python/Lib/site-packages/jsonschema_specifications-2025.9.1.dist-info/RECORD +29 -0
- package/python/Lib/site-packages/jsonschema_specifications-2025.9.1.dist-info/WHEEL +4 -0
- package/python/Lib/site-packages/jsonschema_specifications-2025.9.1.dist-info/licenses/COPYING +19 -0
- package/python/Lib/site-packages/jwt/__init__.py +78 -0
- package/python/Lib/site-packages/jwt/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jwt/__pycache__/algorithms.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jwt/__pycache__/api_jwk.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jwt/__pycache__/api_jws.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jwt/__pycache__/api_jwt.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jwt/__pycache__/exceptions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jwt/__pycache__/help.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jwt/__pycache__/jwk_set_cache.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jwt/__pycache__/jwks_client.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jwt/__pycache__/types.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jwt/__pycache__/utils.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jwt/__pycache__/warnings.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/jwt/algorithms.py +1121 -0
- package/python/Lib/site-packages/jwt/api_jwk.py +196 -0
- package/python/Lib/site-packages/jwt/api_jws.py +485 -0
- package/python/Lib/site-packages/jwt/api_jwt.py +595 -0
- package/python/Lib/site-packages/jwt/exceptions.py +113 -0
- package/python/Lib/site-packages/jwt/help.py +66 -0
- package/python/Lib/site-packages/jwt/jwk_set_cache.py +47 -0
- package/python/Lib/site-packages/jwt/jwks_client.py +333 -0
- package/python/Lib/site-packages/jwt/py.typed +0 -0
- package/python/Lib/site-packages/jwt/types.py +69 -0
- package/python/Lib/site-packages/jwt/utils.py +146 -0
- package/python/Lib/site-packages/jwt/warnings.py +11 -0
- package/python/Lib/site-packages/kakao_pc_mcp/__init__.py +3 -0
- package/python/Lib/site-packages/kakao_pc_mcp/__main__.py +5 -0
- package/python/Lib/site-packages/kakao_pc_mcp/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/kakao_pc_mcp/__pycache__/__main__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/kakao_pc_mcp/__pycache__/classic.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/kakao_pc_mcp/__pycache__/cli.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/kakao_pc_mcp/__pycache__/common.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/kakao_pc_mcp/__pycache__/desktop.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/kakao_pc_mcp/__pycache__/digits.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/kakao_pc_mcp/__pycache__/kakao.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/kakao_pc_mcp/__pycache__/listparse.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/kakao_pc_mcp/__pycache__/ocr.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/kakao_pc_mcp/__pycache__/qt.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/kakao_pc_mcp/__pycache__/server.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/kakao_pc_mcp/__pycache__/stealth.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/kakao_pc_mcp/__pycache__/win.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/kakao_pc_mcp/classic.py +840 -0
- package/python/Lib/site-packages/kakao_pc_mcp/cli.py +112 -0
- package/python/Lib/site-packages/kakao_pc_mcp/common.py +33 -0
- package/python/Lib/site-packages/kakao_pc_mcp/desktop.py +136 -0
- package/python/Lib/site-packages/kakao_pc_mcp/digits.py +161 -0
- package/python/Lib/site-packages/kakao_pc_mcp/kakao.py +122 -0
- package/python/Lib/site-packages/kakao_pc_mcp/listparse.py +231 -0
- package/python/Lib/site-packages/kakao_pc_mcp/ocr.py +208 -0
- package/python/Lib/site-packages/kakao_pc_mcp/qt.py +455 -0
- package/python/Lib/site-packages/kakao_pc_mcp/server.py +232 -0
- package/python/Lib/site-packages/kakao_pc_mcp/stealth.py +266 -0
- package/python/Lib/site-packages/kakao_pc_mcp/win.py +409 -0
- package/python/Lib/site-packages/kakao_pc_mcp-0.5.6.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/kakao_pc_mcp-0.5.6.dist-info/METADATA +164 -0
- package/python/Lib/site-packages/kakao_pc_mcp-0.5.6.dist-info/RECORD +23 -0
- package/python/Lib/site-packages/kakao_pc_mcp-0.5.6.dist-info/REQUESTED +0 -0
- package/python/Lib/site-packages/kakao_pc_mcp-0.5.6.dist-info/WHEEL +5 -0
- package/python/Lib/site-packages/kakao_pc_mcp-0.5.6.dist-info/direct_url.json +1 -0
- package/python/Lib/site-packages/kakao_pc_mcp-0.5.6.dist-info/entry_points.txt +2 -0
- package/python/Lib/site-packages/kakao_pc_mcp-0.5.6.dist-info/top_level.txt +1 -0
- package/python/Lib/site-packages/mcp/__init__.py +145 -0
- package/python/Lib/site-packages/mcp/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/cli/__init__.py +6 -0
- package/python/Lib/site-packages/mcp/cli/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/cli/__pycache__/claude.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/cli/__pycache__/cli.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/cli/claude.py +170 -0
- package/python/Lib/site-packages/mcp/cli/cli.py +486 -0
- package/python/Lib/site-packages/mcp/client/__init__.py +44 -0
- package/python/Lib/site-packages/mcp/client/__main__.py +81 -0
- package/python/Lib/site-packages/mcp/client/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/client/__pycache__/__main__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/client/__pycache__/_input_required.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/client/__pycache__/_memory.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/client/__pycache__/_probe.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/client/__pycache__/_transport.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/client/__pycache__/caching.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/client/__pycache__/client.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/client/__pycache__/context.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/client/__pycache__/extension.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/client/__pycache__/session.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/client/__pycache__/session_group.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/client/__pycache__/sse.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/client/__pycache__/stdio.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/client/__pycache__/streamable_http.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/client/__pycache__/subscriptions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/client/_input_required.py +127 -0
- package/python/Lib/site-packages/mcp/client/_memory.py +109 -0
- package/python/Lib/site-packages/mcp/client/_probe.py +114 -0
- package/python/Lib/site-packages/mcp/client/_transport.py +21 -0
- package/python/Lib/site-packages/mcp/client/auth/__init__.py +22 -0
- package/python/Lib/site-packages/mcp/client/auth/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/client/auth/__pycache__/exceptions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/client/auth/__pycache__/oauth2.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/client/auth/__pycache__/utils.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/client/auth/exceptions.py +10 -0
- package/python/Lib/site-packages/mcp/client/auth/extensions/__init__.py +0 -0
- package/python/Lib/site-packages/mcp/client/auth/extensions/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/client/auth/extensions/__pycache__/client_credentials.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/client/auth/extensions/__pycache__/identity_assertion.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/client/auth/extensions/client_credentials.py +416 -0
- package/python/Lib/site-packages/mcp/client/auth/extensions/identity_assertion.py +216 -0
- package/python/Lib/site-packages/mcp/client/auth/oauth2.py +793 -0
- package/python/Lib/site-packages/mcp/client/auth/utils.py +442 -0
- package/python/Lib/site-packages/mcp/client/caching.py +387 -0
- package/python/Lib/site-packages/mcp/client/client.py +985 -0
- package/python/Lib/site-packages/mcp/client/context.py +5 -0
- package/python/Lib/site-packages/mcp/client/extension.py +196 -0
- package/python/Lib/site-packages/mcp/client/session.py +1506 -0
- package/python/Lib/site-packages/mcp/client/session_group.py +453 -0
- package/python/Lib/site-packages/mcp/client/sse.py +171 -0
- package/python/Lib/site-packages/mcp/client/stdio.py +355 -0
- package/python/Lib/site-packages/mcp/client/streamable_http.py +793 -0
- package/python/Lib/site-packages/mcp/client/subscriptions.py +282 -0
- package/python/Lib/site-packages/mcp/os/__init__.py +1 -0
- package/python/Lib/site-packages/mcp/os/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/os/posix/__init__.py +1 -0
- package/python/Lib/site-packages/mcp/os/posix/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/os/posix/__pycache__/utilities.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/os/posix/utilities.py +63 -0
- package/python/Lib/site-packages/mcp/os/win32/__init__.py +1 -0
- package/python/Lib/site-packages/mcp/os/win32/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/os/win32/__pycache__/utilities.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/os/win32/utilities.py +292 -0
- package/python/Lib/site-packages/mcp/py.typed +0 -0
- package/python/Lib/site-packages/mcp/server/__init__.py +7 -0
- package/python/Lib/site-packages/mcp/server/__main__.py +24 -0
- package/python/Lib/site-packages/mcp/server/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/__pycache__/__main__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/__pycache__/_otel.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/__pycache__/_streamable_http_modern.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/__pycache__/apps.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/__pycache__/caching.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/__pycache__/connection.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/__pycache__/context.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/__pycache__/elicitation.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/__pycache__/extension.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/__pycache__/fastmcp.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/__pycache__/models.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/__pycache__/request_state.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/__pycache__/runner.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/__pycache__/session.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/__pycache__/sse.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/__pycache__/stdio.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/__pycache__/streamable_http.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/__pycache__/streamable_http_manager.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/__pycache__/subscriptions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/__pycache__/transport_security.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/__pycache__/validation.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/_otel.py +72 -0
- package/python/Lib/site-packages/mcp/server/_streamable_http_modern.py +526 -0
- package/python/Lib/site-packages/mcp/server/apps.py +241 -0
- package/python/Lib/site-packages/mcp/server/auth/__init__.py +1 -0
- package/python/Lib/site-packages/mcp/server/auth/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/auth/__pycache__/errors.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/auth/__pycache__/json_response.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/auth/__pycache__/provider.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/auth/__pycache__/routes.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/auth/__pycache__/settings.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/auth/errors.py +5 -0
- package/python/Lib/site-packages/mcp/server/auth/handlers/__init__.py +1 -0
- package/python/Lib/site-packages/mcp/server/auth/handlers/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/auth/handlers/__pycache__/authorize.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/auth/handlers/__pycache__/metadata.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/auth/handlers/__pycache__/register.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/auth/handlers/__pycache__/revoke.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/auth/handlers/__pycache__/token.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/auth/handlers/authorize.py +221 -0
- package/python/Lib/site-packages/mcp/server/auth/handlers/metadata.py +29 -0
- package/python/Lib/site-packages/mcp/server/auth/handlers/register.py +154 -0
- package/python/Lib/site-packages/mcp/server/auth/handlers/revoke.py +87 -0
- package/python/Lib/site-packages/mcp/server/auth/handlers/token.py +275 -0
- package/python/Lib/site-packages/mcp/server/auth/json_response.py +10 -0
- package/python/Lib/site-packages/mcp/server/auth/middleware/__init__.py +1 -0
- package/python/Lib/site-packages/mcp/server/auth/middleware/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/auth/middleware/__pycache__/auth_context.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/auth/middleware/__pycache__/bearer_auth.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/auth/middleware/__pycache__/client_auth.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/auth/middleware/auth_context.py +46 -0
- package/python/Lib/site-packages/mcp/server/auth/middleware/bearer_auth.py +165 -0
- package/python/Lib/site-packages/mcp/server/auth/middleware/client_auth.py +119 -0
- package/python/Lib/site-packages/mcp/server/auth/provider.py +380 -0
- package/python/Lib/site-packages/mcp/server/auth/routes.py +261 -0
- package/python/Lib/site-packages/mcp/server/auth/settings.py +70 -0
- package/python/Lib/site-packages/mcp/server/caching.py +85 -0
- package/python/Lib/site-packages/mcp/server/connection.py +493 -0
- package/python/Lib/site-packages/mcp/server/context.py +194 -0
- package/python/Lib/site-packages/mcp/server/elicitation.py +191 -0
- package/python/Lib/site-packages/mcp/server/extension.py +185 -0
- package/python/Lib/site-packages/mcp/server/fastmcp.py +16 -0
- package/python/Lib/site-packages/mcp/server/lowlevel/__init__.py +3 -0
- package/python/Lib/site-packages/mcp/server/lowlevel/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/lowlevel/__pycache__/helper_types.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/lowlevel/__pycache__/server.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/lowlevel/helper_types.py +11 -0
- package/python/Lib/site-packages/mcp/server/lowlevel/server.py +852 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/__init__.py +61 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/__pycache__/context.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/__pycache__/exceptions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/__pycache__/resolve.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/__pycache__/server.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/context.py +391 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/exceptions.py +76 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/prompts/__init__.py +4 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/prompts/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/prompts/__pycache__/base.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/prompts/__pycache__/manager.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/prompts/base.py +213 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/prompts/manager.py +67 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/resolve.py +846 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/resources/__init__.py +26 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/resources/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/resources/__pycache__/base.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/resources/__pycache__/resource_manager.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/resources/__pycache__/templates.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/resources/__pycache__/types.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/resources/base.py +43 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/resources/resource_manager.py +137 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/resources/templates.py +248 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/resources/types.py +230 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/server.py +1418 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/tools/__init__.py +4 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/tools/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/tools/__pycache__/base.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/tools/__pycache__/tool_manager.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/tools/base.py +213 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/tools/tool_manager.py +87 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/utilities/__init__.py +1 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/utilities/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/utilities/__pycache__/context_injection.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/utilities/__pycache__/func_metadata.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/utilities/__pycache__/logging.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/utilities/__pycache__/types.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/utilities/context_injection.py +68 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/utilities/func_metadata.py +655 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/utilities/logging.py +39 -0
- package/python/Lib/site-packages/mcp/server/mcpserver/utilities/types.py +101 -0
- package/python/Lib/site-packages/mcp/server/models.py +17 -0
- package/python/Lib/site-packages/mcp/server/request_state.py +454 -0
- package/python/Lib/site-packages/mcp/server/runner.py +872 -0
- package/python/Lib/site-packages/mcp/server/session.py +489 -0
- package/python/Lib/site-packages/mcp/server/sse.py +287 -0
- package/python/Lib/site-packages/mcp/server/stdio.py +217 -0
- package/python/Lib/site-packages/mcp/server/streamable_http.py +1135 -0
- package/python/Lib/site-packages/mcp/server/streamable_http_manager.py +427 -0
- package/python/Lib/site-packages/mcp/server/subscriptions.py +254 -0
- package/python/Lib/site-packages/mcp/server/transport_security.py +183 -0
- package/python/Lib/site-packages/mcp/server/validation.py +93 -0
- package/python/Lib/site-packages/mcp/shared/__init__.py +0 -0
- package/python/Lib/site-packages/mcp/shared/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/shared/__pycache__/_callable_inspection.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/shared/__pycache__/_compat.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/shared/__pycache__/_context_streams.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/shared/__pycache__/_httpx_utils.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/shared/__pycache__/_otel.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/shared/__pycache__/_request_clock.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/shared/__pycache__/_stream_protocols.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/shared/__pycache__/auth.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/shared/__pycache__/auth_utils.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/shared/__pycache__/context.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/shared/__pycache__/direct_dispatcher.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/shared/__pycache__/dispatcher.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/shared/__pycache__/exceptions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/shared/__pycache__/extension.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/shared/__pycache__/inbound.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/shared/__pycache__/jsonrpc_dispatcher.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/shared/__pycache__/memory.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/shared/__pycache__/message.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/shared/__pycache__/metadata_utils.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/shared/__pycache__/path_security.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/shared/__pycache__/peer.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/shared/__pycache__/subscriptions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/shared/__pycache__/tool_name_validation.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/shared/__pycache__/transport_context.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/shared/__pycache__/uri_template.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/shared/_callable_inspection.py +33 -0
- package/python/Lib/site-packages/mcp/shared/_compat.py +19 -0
- package/python/Lib/site-packages/mcp/shared/_context_streams.py +119 -0
- package/python/Lib/site-packages/mcp/shared/_httpx_utils.py +222 -0
- package/python/Lib/site-packages/mcp/shared/_otel.py +60 -0
- package/python/Lib/site-packages/mcp/shared/_request_clock.py +81 -0
- package/python/Lib/site-packages/mcp/shared/_stream_protocols.py +49 -0
- package/python/Lib/site-packages/mcp/shared/auth.py +258 -0
- package/python/Lib/site-packages/mcp/shared/auth_utils.py +80 -0
- package/python/Lib/site-packages/mcp/shared/context.py +85 -0
- package/python/Lib/site-packages/mcp/shared/direct_dispatcher.py +337 -0
- package/python/Lib/site-packages/mcp/shared/dispatcher.py +283 -0
- package/python/Lib/site-packages/mcp/shared/exceptions.py +119 -0
- package/python/Lib/site-packages/mcp/shared/extension.py +28 -0
- package/python/Lib/site-packages/mcp/shared/inbound.py +595 -0
- package/python/Lib/site-packages/mcp/shared/jsonrpc_dispatcher.py +856 -0
- package/python/Lib/site-packages/mcp/shared/memory.py +33 -0
- package/python/Lib/site-packages/mcp/shared/message.py +63 -0
- package/python/Lib/site-packages/mcp/shared/metadata_utils.py +46 -0
- package/python/Lib/site-packages/mcp/shared/path_security.py +176 -0
- package/python/Lib/site-packages/mcp/shared/peer.py +240 -0
- package/python/Lib/site-packages/mcp/shared/subscriptions.py +111 -0
- package/python/Lib/site-packages/mcp/shared/tool_name_validation.py +129 -0
- package/python/Lib/site-packages/mcp/shared/transport_context.py +45 -0
- package/python/Lib/site-packages/mcp/shared/uri_template.py +1116 -0
- package/python/Lib/site-packages/mcp/types/__init__.py +31 -0
- package/python/Lib/site-packages/mcp/types/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/types/__pycache__/jsonrpc.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/types/__pycache__/methods.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/types/__pycache__/version.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp/types/jsonrpc.py +13 -0
- package/python/Lib/site-packages/mcp/types/methods.py +13 -0
- package/python/Lib/site-packages/mcp/types/version.py +13 -0
- package/python/Lib/site-packages/mcp-2.3.0.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/mcp-2.3.0.dist-info/METADATA +172 -0
- package/python/Lib/site-packages/mcp-2.3.0.dist-info/RECORD +132 -0
- package/python/Lib/site-packages/mcp-2.3.0.dist-info/WHEEL +4 -0
- package/python/Lib/site-packages/mcp-2.3.0.dist-info/entry_points.txt +2 -0
- package/python/Lib/site-packages/mcp-2.3.0.dist-info/licenses/LICENSE +21 -0
- package/python/Lib/site-packages/mcp_types/__init__.py +453 -0
- package/python/Lib/site-packages/mcp_types/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp_types/__pycache__/_types.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp_types/__pycache__/_wire_base.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp_types/__pycache__/jsonrpc.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp_types/__pycache__/methods.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp_types/__pycache__/version.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp_types/_types.py +2198 -0
- package/python/Lib/site-packages/mcp_types/_v2025_11_25/__init__.py +3391 -0
- package/python/Lib/site-packages/mcp_types/_v2025_11_25/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp_types/_v2026_07_28/__init__.py +3617 -0
- package/python/Lib/site-packages/mcp_types/_v2026_07_28/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/mcp_types/_wire_base.py +9 -0
- package/python/Lib/site-packages/mcp_types/jsonrpc.py +148 -0
- package/python/Lib/site-packages/mcp_types/methods.py +746 -0
- package/python/Lib/site-packages/mcp_types/py.typed +0 -0
- package/python/Lib/site-packages/mcp_types/version.py +74 -0
- package/python/Lib/site-packages/mcp_types-2.3.0.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/mcp_types-2.3.0.dist-info/METADATA +43 -0
- package/python/Lib/site-packages/mcp_types-2.3.0.dist-info/RECORD +14 -0
- package/python/Lib/site-packages/mcp_types-2.3.0.dist-info/WHEEL +4 -0
- package/python/Lib/site-packages/mcp_types-2.3.0.dist-info/licenses/LICENSE +21 -0
- package/python/Lib/site-packages/multipart/__init__.py +38 -0
- package/python/Lib/site-packages/multipart/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/multipart/__pycache__/decoders.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/multipart/__pycache__/exceptions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/multipart/__pycache__/multipart.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/multipart/decoders.py +1 -0
- package/python/Lib/site-packages/multipart/exceptions.py +1 -0
- package/python/Lib/site-packages/multipart/multipart.py +1 -0
- package/python/Lib/site-packages/opentelemetry/_logs/__init__.py +47 -0
- package/python/Lib/site-packages/opentelemetry/_logs/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/_logs/_internal/__init__.py +484 -0
- package/python/Lib/site-packages/opentelemetry/_logs/_internal/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/_logs/py.typed +0 -0
- package/python/Lib/site-packages/opentelemetry/_logs/severity/__init__.py +44 -0
- package/python/Lib/site-packages/opentelemetry/_logs/severity/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/attributes/__init__.py +243 -0
- package/python/Lib/site-packages/opentelemetry/attributes/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/attributes/py.typed +0 -0
- package/python/Lib/site-packages/opentelemetry/baggage/__init__.py +122 -0
- package/python/Lib/site-packages/opentelemetry/baggage/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/baggage/propagation/__init__.py +179 -0
- package/python/Lib/site-packages/opentelemetry/baggage/propagation/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/baggage/py.typed +0 -0
- package/python/Lib/site-packages/opentelemetry/context/__init__.py +147 -0
- package/python/Lib/site-packages/opentelemetry/context/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/context/__pycache__/context.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/context/__pycache__/contextvars_context.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/context/context.py +65 -0
- package/python/Lib/site-packages/opentelemetry/context/contextvars_context.py +43 -0
- package/python/Lib/site-packages/opentelemetry/context/py.typed +0 -0
- package/python/Lib/site-packages/opentelemetry/environment_variables/__init__.py +72 -0
- package/python/Lib/site-packages/opentelemetry/environment_variables/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/environment_variables/py.typed +0 -0
- package/python/Lib/site-packages/opentelemetry/metrics/__init__.py +121 -0
- package/python/Lib/site-packages/opentelemetry/metrics/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/metrics/_internal/__init__.py +892 -0
- package/python/Lib/site-packages/opentelemetry/metrics/_internal/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/metrics/_internal/__pycache__/instrument.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/metrics/_internal/__pycache__/observation.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/metrics/_internal/instrument.py +540 -0
- package/python/Lib/site-packages/opentelemetry/metrics/_internal/observation.py +51 -0
- package/python/Lib/site-packages/opentelemetry/metrics/py.typed +0 -0
- package/python/Lib/site-packages/opentelemetry/propagate/__init__.py +171 -0
- package/python/Lib/site-packages/opentelemetry/propagate/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/propagate/py.typed +0 -0
- package/python/Lib/site-packages/opentelemetry/propagators/__pycache__/_envcarrier.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/propagators/__pycache__/composite.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/propagators/__pycache__/textmap.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/propagators/_envcarrier.py +94 -0
- package/python/Lib/site-packages/opentelemetry/propagators/composite.py +78 -0
- package/python/Lib/site-packages/opentelemetry/propagators/py.typed +0 -0
- package/python/Lib/site-packages/opentelemetry/propagators/textmap.py +181 -0
- package/python/Lib/site-packages/opentelemetry/py.typed +0 -0
- package/python/Lib/site-packages/opentelemetry/trace/__init__.py +661 -0
- package/python/Lib/site-packages/opentelemetry/trace/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/trace/__pycache__/span.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/trace/__pycache__/status.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/trace/propagation/__init__.py +37 -0
- package/python/Lib/site-packages/opentelemetry/trace/propagation/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/trace/propagation/__pycache__/tracecontext.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/trace/propagation/tracecontext.py +126 -0
- package/python/Lib/site-packages/opentelemetry/trace/py.typed +0 -0
- package/python/Lib/site-packages/opentelemetry/trace/span.py +616 -0
- package/python/Lib/site-packages/opentelemetry/trace/status.py +68 -0
- package/python/Lib/site-packages/opentelemetry/util/__pycache__/_decorator.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/util/__pycache__/_importlib_metadata.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/util/__pycache__/_once.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/util/__pycache__/_providers.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/util/__pycache__/re.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/util/__pycache__/types.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/util/_decorator.py +75 -0
- package/python/Lib/site-packages/opentelemetry/util/_importlib_metadata.py +61 -0
- package/python/Lib/site-packages/opentelemetry/util/_once.py +36 -0
- package/python/Lib/site-packages/opentelemetry/util/_providers.py +42 -0
- package/python/Lib/site-packages/opentelemetry/util/py.typed +0 -0
- package/python/Lib/site-packages/opentelemetry/util/re.py +93 -0
- package/python/Lib/site-packages/opentelemetry/util/types.py +28 -0
- package/python/Lib/site-packages/opentelemetry/version/__init__.py +4 -0
- package/python/Lib/site-packages/opentelemetry/version/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/opentelemetry/version/py.typed +0 -0
- package/python/Lib/site-packages/opentelemetry_api-1.45.2.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/opentelemetry_api-1.45.2.dist-info/METADATA +43 -0
- package/python/Lib/site-packages/opentelemetry_api-1.45.2.dist-info/RECORD +48 -0
- package/python/Lib/site-packages/opentelemetry_api-1.45.2.dist-info/WHEEL +4 -0
- package/python/Lib/site-packages/opentelemetry_api-1.45.2.dist-info/entry_points.txt +15 -0
- package/python/Lib/site-packages/opentelemetry_api-1.45.2.dist-info/licenses/LICENSE +201 -0
- package/python/Lib/site-packages/pillow-13.0.0.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/pillow-13.0.0.dist-info/METADATA +182 -0
- package/python/Lib/site-packages/pillow-13.0.0.dist-info/RECORD +121 -0
- package/python/Lib/site-packages/pillow-13.0.0.dist-info/WHEEL +5 -0
- package/python/Lib/site-packages/pillow-13.0.0.dist-info/licenses/LICENSE +1629 -0
- package/python/Lib/site-packages/pillow-13.0.0.dist-info/sboms/pillow-13.0.0.cdx.json +721 -0
- package/python/Lib/site-packages/pillow-13.0.0.dist-info/top_level.txt +1 -0
- package/python/Lib/site-packages/pycparser/__init__.py +98 -0
- package/python/Lib/site-packages/pycparser/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pycparser/__pycache__/_ast_gen.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pycparser/__pycache__/ast_transforms.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pycparser/__pycache__/c_ast.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pycparser/__pycache__/c_generator.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pycparser/__pycache__/c_lexer.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pycparser/__pycache__/c_parser.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pycparser/_ast_gen.py +385 -0
- package/python/Lib/site-packages/pycparser/_c_ast.cfg +268 -0
- package/python/Lib/site-packages/pycparser/ast_transforms.py +201 -0
- package/python/Lib/site-packages/pycparser/c_ast.py +1670 -0
- package/python/Lib/site-packages/pycparser/c_generator.py +866 -0
- package/python/Lib/site-packages/pycparser/c_lexer.py +861 -0
- package/python/Lib/site-packages/pycparser/c_parser.py +2759 -0
- package/python/Lib/site-packages/pycparser-3.12.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/pycparser-3.12.dist-info/METADATA +286 -0
- package/python/Lib/site-packages/pycparser-3.12.dist-info/RECORD +14 -0
- package/python/Lib/site-packages/pycparser-3.12.dist-info/WHEEL +5 -0
- package/python/Lib/site-packages/pycparser-3.12.dist-info/licenses/LICENSE +27 -0
- package/python/Lib/site-packages/pycparser-3.12.dist-info/top_level.txt +1 -0
- package/python/Lib/site-packages/pydantic/__init__.py +461 -0
- package/python/Lib/site-packages/pydantic/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/_migration.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/alias_generators.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/aliases.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/annotated_handlers.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/class_validators.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/color.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/config.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/dataclasses.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/datetime_parse.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/decorator.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/env_settings.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/error_wrappers.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/errors.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/fields.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/functional_serializers.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/functional_validators.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/generics.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/json.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/json_schema.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/main.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/mypy.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/networks.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/parse.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/root_model.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/schema.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/tools.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/type_adapter.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/types.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/typing.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/utils.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/validate_call_decorator.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/validators.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/version.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/__pycache__/warnings.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__init__.py +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/_config.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/_contextlib.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/_core_metadata.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/_core_utils.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/_dataclasses.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/_decorators.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/_decorators_v1.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/_discriminated_union.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/_docs_extraction.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/_fields.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/_forward_ref.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/_generate_schema.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/_generics.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/_git.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/_import_utils.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/_known_annotated_metadata.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/_mock_val_ser.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/_model_construction.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/_namespace_utils.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/_repr.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/_schema_gather.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/_schema_generation_shared.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/_serializers.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/_signature.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/_type_refs.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/_typing_extra.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/_utils.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/_validate_call.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/__pycache__/_validators.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/_internal/_config.py +408 -0
- package/python/Lib/site-packages/pydantic/_internal/_contextlib.py +84 -0
- package/python/Lib/site-packages/pydantic/_internal/_core_metadata.py +97 -0
- package/python/Lib/site-packages/pydantic/_internal/_core_utils.py +156 -0
- package/python/Lib/site-packages/pydantic/_internal/_dataclasses.py +327 -0
- package/python/Lib/site-packages/pydantic/_internal/_decorators.py +906 -0
- package/python/Lib/site-packages/pydantic/_internal/_decorators_v1.py +174 -0
- package/python/Lib/site-packages/pydantic/_internal/_discriminated_union.py +510 -0
- package/python/Lib/site-packages/pydantic/_internal/_docs_extraction.py +128 -0
- package/python/Lib/site-packages/pydantic/_internal/_fields.py +910 -0
- package/python/Lib/site-packages/pydantic/_internal/_forward_ref.py +23 -0
- package/python/Lib/site-packages/pydantic/_internal/_generate_schema.py +3053 -0
- package/python/Lib/site-packages/pydantic/_internal/_generics.py +572 -0
- package/python/Lib/site-packages/pydantic/_internal/_git.py +27 -0
- package/python/Lib/site-packages/pydantic/_internal/_import_utils.py +20 -0
- package/python/Lib/site-packages/pydantic/_internal/_known_annotated_metadata.py +412 -0
- package/python/Lib/site-packages/pydantic/_internal/_mock_val_ser.py +241 -0
- package/python/Lib/site-packages/pydantic/_internal/_model_construction.py +833 -0
- package/python/Lib/site-packages/pydantic/_internal/_namespace_utils.py +300 -0
- package/python/Lib/site-packages/pydantic/_internal/_repr.py +129 -0
- package/python/Lib/site-packages/pydantic/_internal/_schema_gather.py +49 -0
- package/python/Lib/site-packages/pydantic/_internal/_schema_generation_shared.py +126 -0
- package/python/Lib/site-packages/pydantic/_internal/_serializers.py +59 -0
- package/python/Lib/site-packages/pydantic/_internal/_signature.py +193 -0
- package/python/Lib/site-packages/pydantic/_internal/_type_refs.py +128 -0
- package/python/Lib/site-packages/pydantic/_internal/_typing_extra.py +506 -0
- package/python/Lib/site-packages/pydantic/_internal/_utils.py +433 -0
- package/python/Lib/site-packages/pydantic/_internal/_validate_call.py +141 -0
- package/python/Lib/site-packages/pydantic/_internal/_validators.py +541 -0
- package/python/Lib/site-packages/pydantic/_migration.py +317 -0
- package/python/Lib/site-packages/pydantic/alias_generators.py +62 -0
- package/python/Lib/site-packages/pydantic/aliases.py +136 -0
- package/python/Lib/site-packages/pydantic/annotated_handlers.py +123 -0
- package/python/Lib/site-packages/pydantic/class_validators.py +5 -0
- package/python/Lib/site-packages/pydantic/color.py +605 -0
- package/python/Lib/site-packages/pydantic/config.py +1295 -0
- package/python/Lib/site-packages/pydantic/dataclasses.py +385 -0
- package/python/Lib/site-packages/pydantic/datetime_parse.py +5 -0
- package/python/Lib/site-packages/pydantic/decorator.py +5 -0
- package/python/Lib/site-packages/pydantic/deprecated/__init__.py +0 -0
- package/python/Lib/site-packages/pydantic/deprecated/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/deprecated/__pycache__/class_validators.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/deprecated/__pycache__/config.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/deprecated/__pycache__/copy_internals.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/deprecated/__pycache__/decorator.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/deprecated/__pycache__/json.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/deprecated/__pycache__/parse.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/deprecated/__pycache__/tools.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/deprecated/class_validators.py +257 -0
- package/python/Lib/site-packages/pydantic/deprecated/config.py +72 -0
- package/python/Lib/site-packages/pydantic/deprecated/copy_internals.py +224 -0
- package/python/Lib/site-packages/pydantic/deprecated/decorator.py +286 -0
- package/python/Lib/site-packages/pydantic/deprecated/json.py +142 -0
- package/python/Lib/site-packages/pydantic/deprecated/parse.py +81 -0
- package/python/Lib/site-packages/pydantic/deprecated/tools.py +104 -0
- package/python/Lib/site-packages/pydantic/env_settings.py +5 -0
- package/python/Lib/site-packages/pydantic/error_wrappers.py +5 -0
- package/python/Lib/site-packages/pydantic/errors.py +185 -0
- package/python/Lib/site-packages/pydantic/experimental/__init__.py +1 -0
- package/python/Lib/site-packages/pydantic/experimental/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/experimental/__pycache__/arguments_schema.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/experimental/__pycache__/missing_sentinel.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/experimental/__pycache__/pipeline.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/experimental/arguments_schema.py +44 -0
- package/python/Lib/site-packages/pydantic/experimental/missing_sentinel.py +29 -0
- package/python/Lib/site-packages/pydantic/experimental/pipeline.py +684 -0
- package/python/Lib/site-packages/pydantic/fields.py +2065 -0
- package/python/Lib/site-packages/pydantic/functional_serializers.py +461 -0
- package/python/Lib/site-packages/pydantic/functional_validators.py +920 -0
- package/python/Lib/site-packages/pydantic/generics.py +5 -0
- package/python/Lib/site-packages/pydantic/json.py +5 -0
- package/python/Lib/site-packages/pydantic/json_schema.py +3283 -0
- package/python/Lib/site-packages/pydantic/main.py +1947 -0
- package/python/Lib/site-packages/pydantic/mypy.py +1469 -0
- package/python/Lib/site-packages/pydantic/networks.py +1417 -0
- package/python/Lib/site-packages/pydantic/parse.py +5 -0
- package/python/Lib/site-packages/pydantic/plugin/__init__.py +190 -0
- package/python/Lib/site-packages/pydantic/plugin/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/plugin/__pycache__/_loader.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/plugin/__pycache__/_schema_validator.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/plugin/_loader.py +56 -0
- package/python/Lib/site-packages/pydantic/plugin/_schema_validator.py +152 -0
- package/python/Lib/site-packages/pydantic/py.typed +0 -0
- package/python/Lib/site-packages/pydantic/root_model.py +189 -0
- package/python/Lib/site-packages/pydantic/schema.py +5 -0
- package/python/Lib/site-packages/pydantic/tools.py +5 -0
- package/python/Lib/site-packages/pydantic/type_adapter.py +780 -0
- package/python/Lib/site-packages/pydantic/types.py +3405 -0
- package/python/Lib/site-packages/pydantic/typing.py +5 -0
- package/python/Lib/site-packages/pydantic/utils.py +5 -0
- package/python/Lib/site-packages/pydantic/v1/__init__.py +131 -0
- package/python/Lib/site-packages/pydantic/v1/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/v1/__pycache__/_hypothesis_plugin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/v1/__pycache__/annotated_types.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/v1/__pycache__/class_validators.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/v1/__pycache__/color.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/v1/__pycache__/config.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/v1/__pycache__/dataclasses.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/v1/__pycache__/datetime_parse.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/v1/__pycache__/decorator.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/v1/__pycache__/env_settings.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/v1/__pycache__/error_wrappers.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/v1/__pycache__/errors.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/v1/__pycache__/fields.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/v1/__pycache__/generics.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/v1/__pycache__/json.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/v1/__pycache__/main.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/v1/__pycache__/mypy.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/v1/__pycache__/networks.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/v1/__pycache__/parse.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/v1/__pycache__/schema.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/v1/__pycache__/tools.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/v1/__pycache__/types.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/v1/__pycache__/typing.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/v1/__pycache__/utils.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/v1/__pycache__/validators.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/v1/__pycache__/version.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic/v1/_hypothesis_plugin.py +391 -0
- package/python/Lib/site-packages/pydantic/v1/annotated_types.py +72 -0
- package/python/Lib/site-packages/pydantic/v1/class_validators.py +361 -0
- package/python/Lib/site-packages/pydantic/v1/color.py +494 -0
- package/python/Lib/site-packages/pydantic/v1/config.py +191 -0
- package/python/Lib/site-packages/pydantic/v1/dataclasses.py +503 -0
- package/python/Lib/site-packages/pydantic/v1/datetime_parse.py +248 -0
- package/python/Lib/site-packages/pydantic/v1/decorator.py +264 -0
- package/python/Lib/site-packages/pydantic/v1/env_settings.py +350 -0
- package/python/Lib/site-packages/pydantic/v1/error_wrappers.py +161 -0
- package/python/Lib/site-packages/pydantic/v1/errors.py +646 -0
- package/python/Lib/site-packages/pydantic/v1/fields.py +1253 -0
- package/python/Lib/site-packages/pydantic/v1/generics.py +400 -0
- package/python/Lib/site-packages/pydantic/v1/json.py +112 -0
- package/python/Lib/site-packages/pydantic/v1/main.py +1130 -0
- package/python/Lib/site-packages/pydantic/v1/mypy.py +950 -0
- package/python/Lib/site-packages/pydantic/v1/networks.py +747 -0
- package/python/Lib/site-packages/pydantic/v1/parse.py +66 -0
- package/python/Lib/site-packages/pydantic/v1/py.typed +0 -0
- package/python/Lib/site-packages/pydantic/v1/schema.py +1163 -0
- package/python/Lib/site-packages/pydantic/v1/tools.py +92 -0
- package/python/Lib/site-packages/pydantic/v1/types.py +1213 -0
- package/python/Lib/site-packages/pydantic/v1/typing.py +627 -0
- package/python/Lib/site-packages/pydantic/v1/utils.py +807 -0
- package/python/Lib/site-packages/pydantic/v1/validators.py +768 -0
- package/python/Lib/site-packages/pydantic/v1/version.py +38 -0
- package/python/Lib/site-packages/pydantic/validate_call_decorator.py +121 -0
- package/python/Lib/site-packages/pydantic/validators.py +5 -0
- package/python/Lib/site-packages/pydantic/version.py +113 -0
- package/python/Lib/site-packages/pydantic/warnings.py +130 -0
- package/python/Lib/site-packages/pydantic-2.14.4.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/pydantic-2.14.4.dist-info/METADATA +1682 -0
- package/python/Lib/site-packages/pydantic-2.14.4.dist-info/RECORD +113 -0
- package/python/Lib/site-packages/pydantic-2.14.4.dist-info/WHEEL +4 -0
- package/python/Lib/site-packages/pydantic-2.14.4.dist-info/licenses/LICENSE +21 -0
- package/python/Lib/site-packages/pydantic_core/__init__.py +194 -0
- package/python/Lib/site-packages/pydantic_core/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic_core/__pycache__/core_schema.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pydantic_core/_pydantic_core/__init__.pyi +1114 -0
- package/python/Lib/site-packages/pydantic_core/_pydantic_core/_schema_gather.pyi +34 -0
- package/python/Lib/site-packages/pydantic_core/_pydantic_core.cp314-win_amd64.pyd +0 -0
- package/python/Lib/site-packages/pydantic_core/core_schema.py +5093 -0
- package/python/Lib/site-packages/pydantic_core/py.typed +0 -0
- package/python/Lib/site-packages/pydantic_core-2.50.5.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/pydantic_core-2.50.5.dist-info/METADATA +172 -0
- package/python/Lib/site-packages/pydantic_core-2.50.5.dist-info/RECORD +12 -0
- package/python/Lib/site-packages/pydantic_core-2.50.5.dist-info/WHEEL +4 -0
- package/python/Lib/site-packages/pydantic_core-2.50.5.dist-info/licenses/LICENSE +21 -0
- package/python/Lib/site-packages/pydantic_core-2.50.5.dist-info/sboms/pydantic-core.cyclonedx.json +3889 -0
- package/python/Lib/site-packages/pyjwt-2.15.1.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/pyjwt-2.15.1.dist-info/METADATA +94 -0
- package/python/Lib/site-packages/pyjwt-2.15.1.dist-info/RECORD +20 -0
- package/python/Lib/site-packages/pyjwt-2.15.1.dist-info/WHEEL +5 -0
- package/python/Lib/site-packages/pyjwt-2.15.1.dist-info/licenses/AUTHORS.rst +7 -0
- package/python/Lib/site-packages/pyjwt-2.15.1.dist-info/licenses/LICENSE +21 -0
- package/python/Lib/site-packages/pyjwt-2.15.1.dist-info/top_level.txt +1 -0
- package/python/Lib/site-packages/python_multipart/__init__.py +35 -0
- package/python/Lib/site-packages/python_multipart/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/python_multipart/__pycache__/decoders.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/python_multipart/__pycache__/exceptions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/python_multipart/__pycache__/multipart.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/python_multipart/decoders.py +185 -0
- package/python/Lib/site-packages/python_multipart/exceptions.py +34 -0
- package/python/Lib/site-packages/python_multipart/multipart.py +2048 -0
- package/python/Lib/site-packages/python_multipart/py.typed +0 -0
- package/python/Lib/site-packages/python_multipart-0.0.34.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/python_multipart-0.0.34.dist-info/METADATA +179 -0
- package/python/Lib/site-packages/python_multipart-0.0.34.dist-info/RECORD +14 -0
- package/python/Lib/site-packages/python_multipart-0.0.34.dist-info/WHEEL +4 -0
- package/python/Lib/site-packages/python_multipart-0.0.34.dist-info/licenses/LICENSE.txt +202 -0
- package/python/Lib/site-packages/pythoncom.py +29 -0
- package/python/Lib/site-packages/pythonwin/License.txt +30 -0
- package/python/Lib/site-packages/pythonwin/Pythonwin.exe +0 -0
- package/python/Lib/site-packages/pythonwin/Scintilla-License.txt +20 -0
- package/python/Lib/site-packages/pythonwin/dde.pyd +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/__pycache__/cmdserver.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/__pycache__/createwin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/__pycache__/demoutils.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/__pycache__/dibdemo.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/__pycache__/dlgtest.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/__pycache__/dyndlg.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/__pycache__/fontdemo.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/__pycache__/guidemo.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/__pycache__/hiertest.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/__pycache__/menutest.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/__pycache__/objdoc.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/__pycache__/openGLDemo.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/__pycache__/progressbar.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/__pycache__/sliderdemo.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/__pycache__/splittst.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/__pycache__/threadedgui.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/__pycache__/toolbar.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/app/__pycache__/basictimerapp.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/app/__pycache__/customprint.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/app/__pycache__/demoutils.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/app/__pycache__/dlgappdemo.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/app/__pycache__/dojobapp.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/app/__pycache__/helloapp.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/app/basictimerapp.py +258 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/app/customprint.py +183 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/app/demoutils.py +63 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/app/dlgappdemo.py +51 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/app/dojobapp.py +71 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/app/helloapp.py +53 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/cmdserver.py +113 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/createwin.py +114 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/demoutils.py +65 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/dibdemo.py +73 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/dlgtest.py +145 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/dyndlg.py +104 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/fontdemo.py +85 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/guidemo.py +53 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/hiertest.py +135 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/menutest.py +13 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/objdoc.py +57 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/ocx/__pycache__/demoutils.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/ocx/__pycache__/flash.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/ocx/__pycache__/msoffice.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/ocx/__pycache__/ocxserialtest.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/ocx/__pycache__/ocxtest.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/ocx/__pycache__/webbrowser.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/ocx/demoutils.py +63 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/ocx/flash.py +95 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/ocx/msoffice.py +159 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/ocx/ocxserialtest.py +132 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/ocx/ocxtest.py +243 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/ocx/webbrowser.py +72 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/openGLDemo.py +415 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/progressbar.py +105 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/sliderdemo.py +76 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/splittst.py +78 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/threadedgui.py +189 -0
- package/python/Lib/site-packages/pythonwin/pywin/Demos/toolbar.py +105 -0
- package/python/Lib/site-packages/pythonwin/pywin/IDLE.cfg +28 -0
- package/python/Lib/site-packages/pythonwin/pywin/__init__.py +3 -0
- package/python/Lib/site-packages/pythonwin/pywin/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/debugger/__init__.py +133 -0
- package/python/Lib/site-packages/pythonwin/pywin/debugger/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/debugger/__pycache__/configui.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/debugger/__pycache__/dbgcon.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/debugger/__pycache__/dbgpyapp.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/debugger/__pycache__/debugger.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/debugger/__pycache__/fail.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/debugger/configui.py +34 -0
- package/python/Lib/site-packages/pythonwin/pywin/debugger/dbgcon.py +31 -0
- package/python/Lib/site-packages/pythonwin/pywin/debugger/dbgpyapp.py +48 -0
- package/python/Lib/site-packages/pythonwin/pywin/debugger/debugger.py +1097 -0
- package/python/Lib/site-packages/pythonwin/pywin/debugger/fail.py +54 -0
- package/python/Lib/site-packages/pythonwin/pywin/default.cfg +214 -0
- package/python/Lib/site-packages/pythonwin/pywin/dialogs/__init__.py +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/dialogs/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/dialogs/__pycache__/ideoptions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/dialogs/__pycache__/list.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/dialogs/__pycache__/login.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/dialogs/__pycache__/status.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/dialogs/ideoptions.py +136 -0
- package/python/Lib/site-packages/pythonwin/pywin/dialogs/list.py +146 -0
- package/python/Lib/site-packages/pythonwin/pywin/dialogs/login.py +155 -0
- package/python/Lib/site-packages/pythonwin/pywin/dialogs/status.py +242 -0
- package/python/Lib/site-packages/pythonwin/pywin/docking/DockingBar.py +676 -0
- package/python/Lib/site-packages/pythonwin/pywin/docking/__init__.py +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/docking/__pycache__/DockingBar.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/docking/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/__init__.py +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/__pycache__/app.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/__pycache__/bitmap.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/__pycache__/cmdline.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/__pycache__/dbgcommands.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/__pycache__/dlgappcore.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/__pycache__/help.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/__pycache__/interact.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/__pycache__/intpyapp.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/__pycache__/intpydde.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/__pycache__/scriptutils.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/__pycache__/sgrepmdi.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/__pycache__/startup.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/__pycache__/stdin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/__pycache__/toolmenu.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/__pycache__/window.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/__pycache__/winout.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/app.py +407 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/bitmap.py +168 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/cmdline.py +54 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/dbgcommands.py +190 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/dlgappcore.py +75 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/editor/ModuleBrowser.py +235 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/editor/__init__.py +105 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/editor/__pycache__/ModuleBrowser.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/editor/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/editor/__pycache__/configui.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/editor/__pycache__/document.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/editor/__pycache__/editor.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/editor/__pycache__/frame.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/editor/__pycache__/template.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/editor/__pycache__/vss.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/editor/color/__init__.py +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/editor/color/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/editor/color/__pycache__/coloreditor.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/editor/color/coloreditor.py +646 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/editor/configui.py +299 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/editor/document.py +379 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/editor/editor.py +511 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/editor/frame.py +74 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/editor/template.py +59 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/editor/vss.py +104 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/help.py +173 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/interact.py +995 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/intpyapp.py +553 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/intpydde.py +65 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/scriptutils.py +677 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/sgrepmdi.py +749 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/startup.py +70 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/stdin.py +172 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/toolmenu.py +279 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/window.py +14 -0
- package/python/Lib/site-packages/pythonwin/pywin/framework/winout.py +589 -0
- package/python/Lib/site-packages/pythonwin/pywin/idle/AutoExpand.py +95 -0
- package/python/Lib/site-packages/pythonwin/pywin/idle/AutoIndent.py +536 -0
- package/python/Lib/site-packages/pythonwin/pywin/idle/CallTips.py +214 -0
- package/python/Lib/site-packages/pythonwin/pywin/idle/FormatParagraph.py +166 -0
- package/python/Lib/site-packages/pythonwin/pywin/idle/IdleHistory.py +87 -0
- package/python/Lib/site-packages/pythonwin/pywin/idle/LICENSE.txt +246 -0
- package/python/Lib/site-packages/pythonwin/pywin/idle/PyParse.py +585 -0
- package/python/Lib/site-packages/pythonwin/pywin/idle/__init__.py +1 -0
- package/python/Lib/site-packages/pythonwin/pywin/idle/__pycache__/AutoExpand.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/idle/__pycache__/AutoIndent.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/idle/__pycache__/CallTips.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/idle/__pycache__/FormatParagraph.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/idle/__pycache__/IdleHistory.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/idle/__pycache__/PyParse.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/idle/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/mfc/__init__.py +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/mfc/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/mfc/__pycache__/activex.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/mfc/__pycache__/afxres.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/mfc/__pycache__/dialog.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/mfc/__pycache__/docview.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/mfc/__pycache__/object.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/mfc/__pycache__/thread.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/mfc/__pycache__/window.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/mfc/activex.py +79 -0
- package/python/Lib/site-packages/pythonwin/pywin/mfc/afxres.py +501 -0
- package/python/Lib/site-packages/pythonwin/pywin/mfc/dialog.py +277 -0
- package/python/Lib/site-packages/pythonwin/pywin/mfc/docview.py +151 -0
- package/python/Lib/site-packages/pythonwin/pywin/mfc/object.py +66 -0
- package/python/Lib/site-packages/pythonwin/pywin/mfc/thread.py +25 -0
- package/python/Lib/site-packages/pythonwin/pywin/mfc/window.py +50 -0
- package/python/Lib/site-packages/pythonwin/pywin/scintilla/IDLEenvironment.py +593 -0
- package/python/Lib/site-packages/pythonwin/pywin/scintilla/__init__.py +1 -0
- package/python/Lib/site-packages/pythonwin/pywin/scintilla/__pycache__/IDLEenvironment.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/scintilla/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/scintilla/__pycache__/bindings.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/scintilla/__pycache__/config.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/scintilla/__pycache__/configui.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/scintilla/__pycache__/control.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/scintilla/__pycache__/document.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/scintilla/__pycache__/find.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/scintilla/__pycache__/formatter.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/scintilla/__pycache__/keycodes.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/scintilla/__pycache__/scintillacon.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/scintilla/__pycache__/view.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/scintilla/bindings.py +181 -0
- package/python/Lib/site-packages/pythonwin/pywin/scintilla/config.py +363 -0
- package/python/Lib/site-packages/pythonwin/pywin/scintilla/configui.py +291 -0
- package/python/Lib/site-packages/pythonwin/pywin/scintilla/control.py +565 -0
- package/python/Lib/site-packages/pythonwin/pywin/scintilla/document.py +312 -0
- package/python/Lib/site-packages/pythonwin/pywin/scintilla/find.py +511 -0
- package/python/Lib/site-packages/pythonwin/pywin/scintilla/formatter.py +704 -0
- package/python/Lib/site-packages/pythonwin/pywin/scintilla/keycodes.py +190 -0
- package/python/Lib/site-packages/pythonwin/pywin/scintilla/scintillacon.py +3083 -0
- package/python/Lib/site-packages/pythonwin/pywin/scintilla/view.py +840 -0
- package/python/Lib/site-packages/pythonwin/pywin/tools/TraceCollector.py +79 -0
- package/python/Lib/site-packages/pythonwin/pywin/tools/__init__.py +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/tools/__pycache__/TraceCollector.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/tools/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/tools/__pycache__/browseProjects.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/tools/__pycache__/browser.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/tools/__pycache__/hierlist.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/tools/__pycache__/regedit.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/tools/__pycache__/regpy.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/pythonwin/pywin/tools/browseProjects.py +323 -0
- package/python/Lib/site-packages/pythonwin/pywin/tools/browser.py +492 -0
- package/python/Lib/site-packages/pythonwin/pywin/tools/hierlist.py +353 -0
- package/python/Lib/site-packages/pythonwin/pywin/tools/regedit.py +382 -0
- package/python/Lib/site-packages/pythonwin/pywin/tools/regpy.py +80 -0
- package/python/Lib/site-packages/pythonwin/scintilla.dll +0 -0
- package/python/Lib/site-packages/pythonwin/start_pythonwin.pyw +17 -0
- package/python/Lib/site-packages/pythonwin/win32ui.pyd +0 -0
- package/python/Lib/site-packages/pythonwin/win32uiole.pyd +0 -0
- package/python/Lib/site-packages/pywin32-312.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/pywin32-312.dist-info/METADATA +261 -0
- package/python/Lib/site-packages/pywin32-312.dist-info/RECORD +614 -0
- package/python/Lib/site-packages/pywin32-312.dist-info/WHEEL +5 -0
- package/python/Lib/site-packages/pywin32-312.dist-info/entry_points.txt +3 -0
- package/python/Lib/site-packages/pywin32-312.dist-info/licenses/adodbapi/license.txt +505 -0
- package/python/Lib/site-packages/pywin32-312.dist-info/licenses/com/License.txt +30 -0
- package/python/Lib/site-packages/pywin32-312.dist-info/licenses/com/win32comext/mapi/src/MAPIStubLibrary/LICENSE +21 -0
- package/python/Lib/site-packages/pywin32-312.dist-info/licenses/isapi/README.txt +7 -0
- package/python/Lib/site-packages/pywin32-312.dist-info/licenses/pythonwin/License.txt +30 -0
- package/python/Lib/site-packages/pywin32-312.dist-info/licenses/pythonwin/Scintilla/License.txt +20 -0
- package/python/Lib/site-packages/pywin32-312.dist-info/licenses/pythonwin/pywin/idle/LICENSE.txt +246 -0
- package/python/Lib/site-packages/pywin32-312.dist-info/licenses/win32/License.txt +30 -0
- package/python/Lib/site-packages/pywin32-312.dist-info/top_level.txt +93 -0
- package/python/Lib/site-packages/pywin32.pth +7 -0
- package/python/Lib/site-packages/pywin32.version.txt +1 -0
- package/python/Lib/site-packages/pywin32_system32/pythoncom314.dll +0 -0
- package/python/Lib/site-packages/pywin32_system32/pywintypes314.dll +0 -0
- package/python/Lib/site-packages/referencing/__init__.py +7 -0
- package/python/Lib/site-packages/referencing/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/referencing/__pycache__/_attrs.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/referencing/__pycache__/_core.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/referencing/__pycache__/exceptions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/referencing/__pycache__/jsonschema.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/referencing/__pycache__/retrieval.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/referencing/__pycache__/typing.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/referencing/_attrs.py +31 -0
- package/python/Lib/site-packages/referencing/_attrs.pyi +21 -0
- package/python/Lib/site-packages/referencing/_core.py +739 -0
- package/python/Lib/site-packages/referencing/exceptions.py +165 -0
- package/python/Lib/site-packages/referencing/jsonschema.py +642 -0
- package/python/Lib/site-packages/referencing/py.typed +0 -0
- package/python/Lib/site-packages/referencing/retrieval.py +94 -0
- package/python/Lib/site-packages/referencing/tests/__init__.py +0 -0
- package/python/Lib/site-packages/referencing/tests/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/referencing/tests/__pycache__/test_core.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/referencing/tests/__pycache__/test_exceptions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/referencing/tests/__pycache__/test_jsonschema.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/referencing/tests/__pycache__/test_referencing_suite.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/referencing/tests/__pycache__/test_retrieval.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/referencing/tests/test_core.py +1057 -0
- package/python/Lib/site-packages/referencing/tests/test_exceptions.py +34 -0
- package/python/Lib/site-packages/referencing/tests/test_jsonschema.py +382 -0
- package/python/Lib/site-packages/referencing/tests/test_referencing_suite.py +66 -0
- package/python/Lib/site-packages/referencing/tests/test_retrieval.py +106 -0
- package/python/Lib/site-packages/referencing/typing.py +61 -0
- package/python/Lib/site-packages/referencing-0.37.0.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/referencing-0.37.0.dist-info/METADATA +64 -0
- package/python/Lib/site-packages/referencing-0.37.0.dist-info/RECORD +20 -0
- package/python/Lib/site-packages/referencing-0.37.0.dist-info/WHEEL +4 -0
- package/python/Lib/site-packages/referencing-0.37.0.dist-info/licenses/COPYING +19 -0
- package/python/Lib/site-packages/rpds/__init__.py +5 -0
- package/python/Lib/site-packages/rpds/__init__.pyi +79 -0
- package/python/Lib/site-packages/rpds/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/rpds/py.typed +0 -0
- package/python/Lib/site-packages/rpds/rpds.cp314-win_amd64.pyd +0 -0
- package/python/Lib/site-packages/rpds_py-2026.9.1.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/rpds_py-2026.9.1.dist-info/METADATA +99 -0
- package/python/Lib/site-packages/rpds_py-2026.9.1.dist-info/RECORD +10 -0
- package/python/Lib/site-packages/rpds_py-2026.9.1.dist-info/WHEEL +4 -0
- package/python/Lib/site-packages/rpds_py-2026.9.1.dist-info/licenses/LICENSE +19 -0
- package/python/Lib/site-packages/rpds_py-2026.9.1.dist-info/sboms/rpds-py.cyclonedx.json +680 -0
- package/python/Lib/site-packages/sse_starlette/__init__.py +5 -0
- package/python/Lib/site-packages/sse_starlette/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/sse_starlette/__pycache__/_utils.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/sse_starlette/__pycache__/event.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/sse_starlette/__pycache__/sse.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/sse_starlette/_utils.py +36 -0
- package/python/Lib/site-packages/sse_starlette/event.py +96 -0
- package/python/Lib/site-packages/sse_starlette/py.typed +0 -0
- package/python/Lib/site-packages/sse_starlette/sse.py +650 -0
- package/python/Lib/site-packages/sse_starlette-3.7.1.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/sse_starlette-3.7.1.dist-info/METADATA +493 -0
- package/python/Lib/site-packages/sse_starlette-3.7.1.dist-info/RECORD +12 -0
- package/python/Lib/site-packages/sse_starlette-3.7.1.dist-info/WHEEL +5 -0
- package/python/Lib/site-packages/sse_starlette-3.7.1.dist-info/licenses/AUTHORS +10 -0
- package/python/Lib/site-packages/sse_starlette-3.7.1.dist-info/licenses/LICENSE +27 -0
- package/python/Lib/site-packages/sse_starlette-3.7.1.dist-info/top_level.txt +1 -0
- package/python/Lib/site-packages/starlette/__init__.py +1 -0
- package/python/Lib/site-packages/starlette/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/__pycache__/_exception_handler.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/__pycache__/_utils.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/__pycache__/applications.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/__pycache__/authentication.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/__pycache__/background.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/__pycache__/concurrency.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/__pycache__/config.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/__pycache__/convertors.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/__pycache__/datastructures.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/__pycache__/endpoints.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/__pycache__/exceptions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/__pycache__/formparsers.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/__pycache__/requests.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/__pycache__/responses.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/__pycache__/routing.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/__pycache__/schemas.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/__pycache__/staticfiles.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/__pycache__/status.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/__pycache__/templating.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/__pycache__/testclient.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/__pycache__/types.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/__pycache__/websockets.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/_exception_handler.py +67 -0
- package/python/Lib/site-packages/starlette/_utils.py +152 -0
- package/python/Lib/site-packages/starlette/applications.py +124 -0
- package/python/Lib/site-packages/starlette/authentication.py +157 -0
- package/python/Lib/site-packages/starlette/background.py +36 -0
- package/python/Lib/site-packages/starlette/concurrency.py +59 -0
- package/python/Lib/site-packages/starlette/config.py +142 -0
- package/python/Lib/site-packages/starlette/convertors.py +89 -0
- package/python/Lib/site-packages/starlette/datastructures.py +717 -0
- package/python/Lib/site-packages/starlette/endpoints.py +128 -0
- package/python/Lib/site-packages/starlette/exceptions.py +43 -0
- package/python/Lib/site-packages/starlette/formparsers.py +289 -0
- package/python/Lib/site-packages/starlette/middleware/__init__.py +37 -0
- package/python/Lib/site-packages/starlette/middleware/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/middleware/__pycache__/authentication.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/middleware/__pycache__/base.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/middleware/__pycache__/body_limit.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/middleware/__pycache__/cors.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/middleware/__pycache__/errors.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/middleware/__pycache__/exceptions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/middleware/__pycache__/gzip.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/middleware/__pycache__/httpsredirect.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/middleware/__pycache__/opentelemetry.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/middleware/__pycache__/sessions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/middleware/__pycache__/trustedhost.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/middleware/__pycache__/wsgi.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/starlette/middleware/authentication.py +52 -0
- package/python/Lib/site-packages/starlette/middleware/base.py +254 -0
- package/python/Lib/site-packages/starlette/middleware/body_limit.py +132 -0
- package/python/Lib/site-packages/starlette/middleware/cors.py +177 -0
- package/python/Lib/site-packages/starlette/middleware/errors.py +259 -0
- package/python/Lib/site-packages/starlette/middleware/exceptions.py +73 -0
- package/python/Lib/site-packages/starlette/middleware/gzip.py +230 -0
- package/python/Lib/site-packages/starlette/middleware/httpsredirect.py +22 -0
- package/python/Lib/site-packages/starlette/middleware/opentelemetry.py +126 -0
- package/python/Lib/site-packages/starlette/middleware/sessions.py +139 -0
- package/python/Lib/site-packages/starlette/middleware/trustedhost.py +66 -0
- package/python/Lib/site-packages/starlette/middleware/wsgi.py +157 -0
- package/python/Lib/site-packages/starlette/py.typed +0 -0
- package/python/Lib/site-packages/starlette/requests.py +357 -0
- package/python/Lib/site-packages/starlette/responses.py +616 -0
- package/python/Lib/site-packages/starlette/routing.py +772 -0
- package/python/Lib/site-packages/starlette/schemas.py +152 -0
- package/python/Lib/site-packages/starlette/staticfiles.py +231 -0
- package/python/Lib/site-packages/starlette/status.py +211 -0
- package/python/Lib/site-packages/starlette/templating.py +156 -0
- package/python/Lib/site-packages/starlette/testclient.py +624 -0
- package/python/Lib/site-packages/starlette/types.py +26 -0
- package/python/Lib/site-packages/starlette/websockets.py +202 -0
- package/python/Lib/site-packages/starlette-1.10.0.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/starlette-1.10.0.dist-info/METADATA +181 -0
- package/python/Lib/site-packages/starlette-1.10.0.dist-info/RECORD +42 -0
- package/python/Lib/site-packages/starlette-1.10.0.dist-info/WHEEL +4 -0
- package/python/Lib/site-packages/starlette-1.10.0.dist-info/licenses/LICENSE.md +27 -0
- package/python/Lib/site-packages/truststore/__init__.py +36 -0
- package/python/Lib/site-packages/truststore/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/truststore/__pycache__/_api.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/truststore/__pycache__/_macos.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/truststore/__pycache__/_openssl.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/truststore/__pycache__/_ssl_constants.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/truststore/__pycache__/_windows.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/truststore/_api.py +377 -0
- package/python/Lib/site-packages/truststore/_macos.py +571 -0
- package/python/Lib/site-packages/truststore/_openssl.py +65 -0
- package/python/Lib/site-packages/truststore/_ssl_constants.py +30 -0
- package/python/Lib/site-packages/truststore/_windows.py +567 -0
- package/python/Lib/site-packages/truststore/py.typed +0 -0
- package/python/Lib/site-packages/truststore-0.10.5.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/truststore-0.10.5.dist-info/METADATA +110 -0
- package/python/Lib/site-packages/truststore-0.10.5.dist-info/RECORD +12 -0
- package/python/Lib/site-packages/truststore-0.10.5.dist-info/WHEEL +4 -0
- package/python/Lib/site-packages/truststore-0.10.5.dist-info/licenses/LICENSE +21 -0
- package/python/Lib/site-packages/typing_extensions-4.16.0.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/typing_extensions-4.16.0.dist-info/METADATA +73 -0
- package/python/Lib/site-packages/typing_extensions-4.16.0.dist-info/RECORD +6 -0
- package/python/Lib/site-packages/typing_extensions-4.16.0.dist-info/WHEEL +4 -0
- package/python/Lib/site-packages/typing_extensions-4.16.0.dist-info/licenses/LICENSE +279 -0
- package/python/Lib/site-packages/typing_extensions.py +4422 -0
- package/python/Lib/site-packages/typing_inspection/__init__.py +0 -0
- package/python/Lib/site-packages/typing_inspection/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/typing_inspection/__pycache__/introspection.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/typing_inspection/__pycache__/typing_objects.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/typing_inspection/introspection.py +604 -0
- package/python/Lib/site-packages/typing_inspection/py.typed +0 -0
- package/python/Lib/site-packages/typing_inspection/typing_objects.py +620 -0
- package/python/Lib/site-packages/typing_inspection/typing_objects.pyi +421 -0
- package/python/Lib/site-packages/typing_inspection-0.4.5.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/typing_inspection-0.4.5.dist-info/METADATA +49 -0
- package/python/Lib/site-packages/typing_inspection-0.4.5.dist-info/RECORD +10 -0
- package/python/Lib/site-packages/typing_inspection-0.4.5.dist-info/WHEEL +4 -0
- package/python/Lib/site-packages/typing_inspection-0.4.5.dist-info/licenses/LICENSE +21 -0
- package/python/Lib/site-packages/uvicorn/__init__.py +5 -0
- package/python/Lib/site-packages/uvicorn/__main__.py +4 -0
- package/python/Lib/site-packages/uvicorn/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/__pycache__/__main__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/__pycache__/_ansi.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/__pycache__/_compat.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/__pycache__/_subprocess.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/__pycache__/_types.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/__pycache__/_version.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/__pycache__/config.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/__pycache__/importer.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/__pycache__/logging.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/__pycache__/main.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/__pycache__/server.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/__pycache__/workers.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/_ansi.py +29 -0
- package/python/Lib/site-packages/uvicorn/_compat.py +30 -0
- package/python/Lib/site-packages/uvicorn/_subprocess.py +84 -0
- package/python/Lib/site-packages/uvicorn/_types.py +274 -0
- package/python/Lib/site-packages/uvicorn/_version.py +4 -0
- package/python/Lib/site-packages/uvicorn/config.py +617 -0
- package/python/Lib/site-packages/uvicorn/importer.py +34 -0
- package/python/Lib/site-packages/uvicorn/lifespan/__init__.py +0 -0
- package/python/Lib/site-packages/uvicorn/lifespan/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/lifespan/__pycache__/off.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/lifespan/__pycache__/on.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/lifespan/off.py +17 -0
- package/python/Lib/site-packages/uvicorn/lifespan/on.py +137 -0
- package/python/Lib/site-packages/uvicorn/logging.py +117 -0
- package/python/Lib/site-packages/uvicorn/loops/__init__.py +0 -0
- package/python/Lib/site-packages/uvicorn/loops/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/loops/__pycache__/asyncio.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/loops/__pycache__/auto.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/loops/__pycache__/uvloop.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/loops/__pycache__/zuvloop.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/loops/asyncio.py +11 -0
- package/python/Lib/site-packages/uvicorn/loops/auto.py +17 -0
- package/python/Lib/site-packages/uvicorn/loops/uvloop.py +10 -0
- package/python/Lib/site-packages/uvicorn/loops/zuvloop.py +10 -0
- package/python/Lib/site-packages/uvicorn/main.py +667 -0
- package/python/Lib/site-packages/uvicorn/middleware/__init__.py +0 -0
- package/python/Lib/site-packages/uvicorn/middleware/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/middleware/__pycache__/asgi2.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/middleware/__pycache__/message_logger.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/middleware/__pycache__/proxy_headers.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/middleware/__pycache__/wsgi.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/middleware/asgi2.py +15 -0
- package/python/Lib/site-packages/uvicorn/middleware/message_logger.py +87 -0
- package/python/Lib/site-packages/uvicorn/middleware/proxy_headers.py +187 -0
- package/python/Lib/site-packages/uvicorn/middleware/wsgi.py +199 -0
- package/python/Lib/site-packages/uvicorn/protocols/__init__.py +0 -0
- package/python/Lib/site-packages/uvicorn/protocols/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/protocols/__pycache__/utils.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/protocols/http/__init__.py +0 -0
- package/python/Lib/site-packages/uvicorn/protocols/http/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/protocols/http/__pycache__/auto.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/protocols/http/__pycache__/auto_zttp_impl.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/protocols/http/__pycache__/flow_control.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/protocols/http/__pycache__/h11_impl.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/protocols/http/__pycache__/httptools_impl.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/protocols/http/__pycache__/zttp_h2_impl.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/protocols/http/__pycache__/zttp_impl.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/protocols/http/auto.py +15 -0
- package/python/Lib/site-packages/uvicorn/protocols/http/auto_zttp_impl.py +89 -0
- package/python/Lib/site-packages/uvicorn/protocols/http/flow_control.py +54 -0
- package/python/Lib/site-packages/uvicorn/protocols/http/h11_impl.py +536 -0
- package/python/Lib/site-packages/uvicorn/protocols/http/httptools_impl.py +579 -0
- package/python/Lib/site-packages/uvicorn/protocols/http/zttp_h2_impl.py +561 -0
- package/python/Lib/site-packages/uvicorn/protocols/http/zttp_impl.py +536 -0
- package/python/Lib/site-packages/uvicorn/protocols/utils.py +61 -0
- package/python/Lib/site-packages/uvicorn/protocols/websockets/__init__.py +0 -0
- package/python/Lib/site-packages/uvicorn/protocols/websockets/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/protocols/websockets/__pycache__/auto.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/protocols/websockets/__pycache__/websockets_impl.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/protocols/websockets/__pycache__/websockets_sansio_impl.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/protocols/websockets/__pycache__/wsproto_impl.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/protocols/websockets/auto.py +21 -0
- package/python/Lib/site-packages/uvicorn/protocols/websockets/websockets_impl.py +390 -0
- package/python/Lib/site-packages/uvicorn/protocols/websockets/websockets_sansio_impl.py +564 -0
- package/python/Lib/site-packages/uvicorn/protocols/websockets/wsproto_impl.py +500 -0
- package/python/Lib/site-packages/uvicorn/py.typed +1 -0
- package/python/Lib/site-packages/uvicorn/server.py +353 -0
- package/python/Lib/site-packages/uvicorn/supervisors/__init__.py +16 -0
- package/python/Lib/site-packages/uvicorn/supervisors/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/supervisors/__pycache__/basereload.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/supervisors/__pycache__/multiprocess.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/supervisors/__pycache__/statreload.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/supervisors/__pycache__/watchfilesreload.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/uvicorn/supervisors/basereload.py +124 -0
- package/python/Lib/site-packages/uvicorn/supervisors/multiprocess.py +282 -0
- package/python/Lib/site-packages/uvicorn/supervisors/statreload.py +52 -0
- package/python/Lib/site-packages/uvicorn/supervisors/watchfilesreload.py +86 -0
- package/python/Lib/site-packages/uvicorn/workers.py +111 -0
- package/python/Lib/site-packages/uvicorn-0.55.0.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/uvicorn-0.55.0.dist-info/METADATA +194 -0
- package/python/Lib/site-packages/uvicorn-0.55.0.dist-info/RECORD +54 -0
- package/python/Lib/site-packages/uvicorn-0.55.0.dist-info/WHEEL +4 -0
- package/python/Lib/site-packages/uvicorn-0.55.0.dist-info/entry_points.txt +2 -0
- package/python/Lib/site-packages/uvicorn-0.55.0.dist-info/licenses/LICENSE.md +27 -0
- package/python/Lib/site-packages/win32/Demos/BackupRead_BackupWrite.py +119 -0
- package/python/Lib/site-packages/win32/Demos/BackupSeek_streamheaders.py +137 -0
- package/python/Lib/site-packages/win32/Demos/CopyFileEx.py +57 -0
- package/python/Lib/site-packages/win32/Demos/CreateFileTransacted_MiniVersion.py +122 -0
- package/python/Lib/site-packages/win32/Demos/EvtFormatMessage.py +83 -0
- package/python/Lib/site-packages/win32/Demos/EvtSubscribe_pull.py +28 -0
- package/python/Lib/site-packages/win32/Demos/EvtSubscribe_push.py +32 -0
- package/python/Lib/site-packages/win32/Demos/FileSecurityTest.py +137 -0
- package/python/Lib/site-packages/win32/Demos/GetSaveFileName.py +43 -0
- package/python/Lib/site-packages/win32/Demos/NetValidatePasswordPolicy.py +124 -0
- package/python/Lib/site-packages/win32/Demos/OpenEncryptedFileRaw.py +66 -0
- package/python/Lib/site-packages/win32/Demos/RegCreateKeyTransacted.py +60 -0
- package/python/Lib/site-packages/win32/Demos/RegRestoreKey.py +71 -0
- package/python/Lib/site-packages/win32/Demos/SystemParametersInfo.py +192 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/BackupRead_BackupWrite.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/BackupSeek_streamheaders.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/CopyFileEx.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/CreateFileTransacted_MiniVersion.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/EvtFormatMessage.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/EvtSubscribe_pull.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/EvtSubscribe_push.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/FileSecurityTest.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/GetSaveFileName.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/NetValidatePasswordPolicy.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/OpenEncryptedFileRaw.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/RegCreateKeyTransacted.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/RegRestoreKey.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/SystemParametersInfo.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/desktopmanager.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/eventLogDemo.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/getfilever.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/mmapfile_demo.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/print_desktop.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/rastest.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/timer_demo.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/win32clipboardDemo.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/win32clipboard_bitmapdemo.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/win32comport_demo.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/win32console_demo.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/win32cred_demo.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/win32fileDemo.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/win32gui_demo.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/win32gui_devicenotify.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/win32gui_dialog.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/win32gui_menu.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/win32gui_taskbar.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/win32netdemo.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/win32rcparser_demo.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/win32servicedemo.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/win32ts_logoff_disconnected.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/__pycache__/winprocess.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/c_extension/__pycache__/setup.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/c_extension/setup.py +26 -0
- package/python/Lib/site-packages/win32/Demos/dde/__pycache__/ddeclient.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/dde/__pycache__/ddeserver.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/dde/ddeclient.py +18 -0
- package/python/Lib/site-packages/win32/Demos/dde/ddeserver.py +42 -0
- package/python/Lib/site-packages/win32/Demos/desktopmanager.py +246 -0
- package/python/Lib/site-packages/win32/Demos/eventLogDemo.py +138 -0
- package/python/Lib/site-packages/win32/Demos/getfilever.py +33 -0
- package/python/Lib/site-packages/win32/Demos/images/frowny.bmp +0 -0
- package/python/Lib/site-packages/win32/Demos/images/smiley.bmp +0 -0
- package/python/Lib/site-packages/win32/Demos/mmapfile_demo.py +101 -0
- package/python/Lib/site-packages/win32/Demos/pipes/__pycache__/cat.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/pipes/__pycache__/runproc.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/pipes/cat.py +17 -0
- package/python/Lib/site-packages/win32/Demos/pipes/runproc.py +114 -0
- package/python/Lib/site-packages/win32/Demos/print_desktop.py +113 -0
- package/python/Lib/site-packages/win32/Demos/rastest.py +168 -0
- package/python/Lib/site-packages/win32/Demos/security/GetTokenInformation.py +101 -0
- package/python/Lib/site-packages/win32/Demos/security/__pycache__/GetTokenInformation.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/security/__pycache__/account_rights.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/security/__pycache__/explicit_entries.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/security/__pycache__/get_policy_info.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/security/__pycache__/list_rights.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/security/__pycache__/localized_names.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/security/__pycache__/lsaregevent.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/security/__pycache__/lsastore.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/security/__pycache__/query_information.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/security/__pycache__/regsave_sa.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/security/__pycache__/regsecurity.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/security/__pycache__/sa_inherit.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/security/__pycache__/security_enums.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/security/__pycache__/set_file_audit.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/security/__pycache__/set_file_owner.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/security/__pycache__/set_policy_info.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/security/__pycache__/setkernelobjectsecurity.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/security/__pycache__/setnamedsecurityinfo.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/security/__pycache__/setsecurityinfo.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/security/__pycache__/setuserobjectsecurity.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/security/account_rights.py +49 -0
- package/python/Lib/site-packages/win32/Demos/security/explicit_entries.py +170 -0
- package/python/Lib/site-packages/win32/Demos/security/get_policy_info.py +39 -0
- package/python/Lib/site-packages/win32/Demos/security/list_rights.py +35 -0
- package/python/Lib/site-packages/win32/Demos/security/localized_names.py +70 -0
- package/python/Lib/site-packages/win32/Demos/security/lsaregevent.py +14 -0
- package/python/Lib/site-packages/win32/Demos/security/lsastore.py +12 -0
- package/python/Lib/site-packages/win32/Demos/security/query_information.py +25 -0
- package/python/Lib/site-packages/win32/Demos/security/regsave_sa.py +61 -0
- package/python/Lib/site-packages/win32/Demos/security/regsecurity.py +36 -0
- package/python/Lib/site-packages/win32/Demos/security/sa_inherit.py +8 -0
- package/python/Lib/site-packages/win32/Demos/security/security_enums.py +336 -0
- package/python/Lib/site-packages/win32/Demos/security/set_file_audit.py +106 -0
- package/python/Lib/site-packages/win32/Demos/security/set_file_owner.py +73 -0
- package/python/Lib/site-packages/win32/Demos/security/set_policy_info.py +25 -0
- package/python/Lib/site-packages/win32/Demos/security/setkernelobjectsecurity.py +134 -0
- package/python/Lib/site-packages/win32/Demos/security/setnamedsecurityinfo.py +131 -0
- package/python/Lib/site-packages/win32/Demos/security/setsecurityinfo.py +131 -0
- package/python/Lib/site-packages/win32/Demos/security/setuserobjectsecurity.py +102 -0
- package/python/Lib/site-packages/win32/Demos/security/sspi/__pycache__/fetch_url.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/security/sspi/__pycache__/simple_auth.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/security/sspi/__pycache__/socket_server.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/security/sspi/__pycache__/validate_password.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/security/sspi/fetch_url.py +158 -0
- package/python/Lib/site-packages/win32/Demos/security/sspi/simple_auth.py +72 -0
- package/python/Lib/site-packages/win32/Demos/security/sspi/socket_server.py +199 -0
- package/python/Lib/site-packages/win32/Demos/security/sspi/validate_password.py +41 -0
- package/python/Lib/site-packages/win32/Demos/service/__pycache__/nativePipeTestService.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/service/__pycache__/pipeTestService.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/service/__pycache__/pipeTestServiceClient.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/service/__pycache__/serviceEvents.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/service/nativePipeTestService.py +63 -0
- package/python/Lib/site-packages/win32/Demos/service/pipeTestService.py +185 -0
- package/python/Lib/site-packages/win32/Demos/service/pipeTestServiceClient.py +158 -0
- package/python/Lib/site-packages/win32/Demos/service/serviceEvents.py +98 -0
- package/python/Lib/site-packages/win32/Demos/timer_demo.py +72 -0
- package/python/Lib/site-packages/win32/Demos/win32clipboardDemo.py +155 -0
- package/python/Lib/site-packages/win32/Demos/win32clipboard_bitmapdemo.py +117 -0
- package/python/Lib/site-packages/win32/Demos/win32comport_demo.py +174 -0
- package/python/Lib/site-packages/win32/Demos/win32console_demo.py +132 -0
- package/python/Lib/site-packages/win32/Demos/win32cred_demo.py +82 -0
- package/python/Lib/site-packages/win32/Demos/win32fileDemo.py +41 -0
- package/python/Lib/site-packages/win32/Demos/win32gui_demo.py +177 -0
- package/python/Lib/site-packages/win32/Demos/win32gui_devicenotify.py +106 -0
- package/python/Lib/site-packages/win32/Demos/win32gui_dialog.py +445 -0
- package/python/Lib/site-packages/win32/Demos/win32gui_menu.py +464 -0
- package/python/Lib/site-packages/win32/Demos/win32gui_taskbar.py +136 -0
- package/python/Lib/site-packages/win32/Demos/win32netdemo.py +271 -0
- package/python/Lib/site-packages/win32/Demos/win32rcparser_demo.py +86 -0
- package/python/Lib/site-packages/win32/Demos/win32servicedemo.py +23 -0
- package/python/Lib/site-packages/win32/Demos/win32ts_logoff_disconnected.py +25 -0
- package/python/Lib/site-packages/win32/Demos/win32wnet/__pycache__/testwnet.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/win32wnet/__pycache__/winnetwk.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/Demos/win32wnet/testwnet.py +123 -0
- package/python/Lib/site-packages/win32/Demos/win32wnet/winnetwk.py +100 -0
- package/python/Lib/site-packages/win32/Demos/winprocess.py +230 -0
- package/python/Lib/site-packages/win32/License.txt +30 -0
- package/python/Lib/site-packages/win32/__pycache__/winxpgui.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/_win32sysloader.pyd +0 -0
- package/python/Lib/site-packages/win32/_winxptheme.pyd +0 -0
- package/python/Lib/site-packages/win32/include/PyWinTypes.h +745 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/_win32verstamp_pywin32ctypes.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/afxres.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/commctrl.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/mmsystem.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/netbios.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/ntsecuritycon.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/pywin32_bootstrap.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/pywin32_testutil.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/pywintypes.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/rasutil.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/regcheck.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/regutil.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/sspi.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/sspicon.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/win2kras.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/win32con.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/win32cryptcon.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/win32evtlogutil.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/win32gui_struct.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/win32inetcon.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/win32netcon.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/win32pdhquery.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/win32pdhutil.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/win32rcparser.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/win32serviceutil.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/win32timezone.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/win32traceutil.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/win32verstamp.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/winerror.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/winioctlcon.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/winnt.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/winperf.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/__pycache__/winxptheme.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/lib/_win32verstamp_pywin32ctypes.py +163 -0
- package/python/Lib/site-packages/win32/lib/afxres.py +9 -0
- package/python/Lib/site-packages/win32/lib/commctrl.py +1551 -0
- package/python/Lib/site-packages/win32/lib/mmsystem.py +956 -0
- package/python/Lib/site-packages/win32/lib/netbios.py +293 -0
- package/python/Lib/site-packages/win32/lib/ntsecuritycon.py +731 -0
- package/python/Lib/site-packages/win32/lib/pywin32_bootstrap.py +21 -0
- package/python/Lib/site-packages/win32/lib/pywin32_testutil.py +255 -0
- package/python/Lib/site-packages/win32/lib/pywintypes.py +132 -0
- package/python/Lib/site-packages/win32/lib/rasutil.py +40 -0
- package/python/Lib/site-packages/win32/lib/regcheck.py +163 -0
- package/python/Lib/site-packages/win32/lib/regutil.py +385 -0
- package/python/Lib/site-packages/win32/lib/sspi.py +413 -0
- package/python/Lib/site-packages/win32/lib/sspicon.py +477 -0
- package/python/Lib/site-packages/win32/lib/win2kras.py +14 -0
- package/python/Lib/site-packages/win32/lib/win32con.py +5062 -0
- package/python/Lib/site-packages/win32/lib/win32cryptcon.py +1922 -0
- package/python/Lib/site-packages/win32/lib/win32evtlogutil.py +225 -0
- package/python/Lib/site-packages/win32/lib/win32gui_struct.py +962 -0
- package/python/Lib/site-packages/win32/lib/win32inetcon.py +1086 -0
- package/python/Lib/site-packages/win32/lib/win32netcon.py +627 -0
- package/python/Lib/site-packages/win32/lib/win32pdhquery.py +570 -0
- package/python/Lib/site-packages/win32/lib/win32pdhutil.py +212 -0
- package/python/Lib/site-packages/win32/lib/win32rcparser.py +674 -0
- package/python/Lib/site-packages/win32/lib/win32serviceutil.py +1066 -0
- package/python/Lib/site-packages/win32/lib/win32timezone.py +1198 -0
- package/python/Lib/site-packages/win32/lib/win32traceutil.py +59 -0
- package/python/Lib/site-packages/win32/lib/win32verstamp.py +235 -0
- package/python/Lib/site-packages/win32/lib/winerror.py +7361 -0
- package/python/Lib/site-packages/win32/lib/winioctlcon.py +1079 -0
- package/python/Lib/site-packages/win32/lib/winnt.py +1347 -0
- package/python/Lib/site-packages/win32/lib/winperf.py +236 -0
- package/python/Lib/site-packages/win32/lib/winxptheme.py +8 -0
- package/python/Lib/site-packages/win32/libs/pywintypes.lib +0 -0
- package/python/Lib/site-packages/win32/mmapfile.pyd +0 -0
- package/python/Lib/site-packages/win32/odbc.pyd +0 -0
- package/python/Lib/site-packages/win32/perfmon.pyd +0 -0
- package/python/Lib/site-packages/win32/perfmondata.dll +0 -0
- package/python/Lib/site-packages/win32/pythonservice.exe +0 -0
- package/python/Lib/site-packages/win32/scripts/ControlService.py +594 -0
- package/python/Lib/site-packages/win32/scripts/VersionStamp/BrandProject.py +95 -0
- package/python/Lib/site-packages/win32/scripts/VersionStamp/__pycache__/BrandProject.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/scripts/VersionStamp/__pycache__/bulkstamp.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/scripts/VersionStamp/__pycache__/vssutil.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/scripts/VersionStamp/bulkstamp.py +157 -0
- package/python/Lib/site-packages/win32/scripts/VersionStamp/vssutil.py +201 -0
- package/python/Lib/site-packages/win32/scripts/__pycache__/ControlService.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/scripts/__pycache__/backupEventLog.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/scripts/__pycache__/h2py.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/scripts/__pycache__/killProcName.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/scripts/__pycache__/pywin32_postinstall.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/scripts/__pycache__/pywin32_testall.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/scripts/__pycache__/rasutil.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/scripts/__pycache__/regsetup.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/scripts/__pycache__/setup_d.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/scripts/backupEventLog.py +40 -0
- package/python/Lib/site-packages/win32/scripts/h2py.py +194 -0
- package/python/Lib/site-packages/win32/scripts/killProcName.py +62 -0
- package/python/Lib/site-packages/win32/scripts/pywin32_postinstall.py +729 -0
- package/python/Lib/site-packages/win32/scripts/pywin32_testall.py +120 -0
- package/python/Lib/site-packages/win32/scripts/rasutil.py +98 -0
- package/python/Lib/site-packages/win32/scripts/regsetup.py +598 -0
- package/python/Lib/site-packages/win32/scripts/setup_d.py +111 -0
- package/python/Lib/site-packages/win32/servicemanager.pyd +0 -0
- package/python/Lib/site-packages/win32/test/__pycache__/handles.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/test/__pycache__/test_clipboard.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/test/__pycache__/test_exceptions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/test/__pycache__/test_odbc.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/test/__pycache__/test_pywintypes.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/test/__pycache__/test_security.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/test/__pycache__/test_sspi.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/test/__pycache__/test_win32api.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/test/__pycache__/test_win32clipboard.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/test/__pycache__/test_win32cred.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/test/__pycache__/test_win32crypt.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/test/__pycache__/test_win32event.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/test/__pycache__/test_win32file.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/test/__pycache__/test_win32gui.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/test/__pycache__/test_win32guistruct.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/test/__pycache__/test_win32inet.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/test/__pycache__/test_win32net.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/test/__pycache__/test_win32pipe.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/test/__pycache__/test_win32print.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/test/__pycache__/test_win32profile.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/test/__pycache__/test_win32rcparser.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/test/__pycache__/test_win32timezone.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/test/__pycache__/test_win32trace.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/test/__pycache__/test_win32ts.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/test/__pycache__/test_win32wnet.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/test/__pycache__/testall.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32/test/handles.py +175 -0
- package/python/Lib/site-packages/win32/test/test_clipboard.py +132 -0
- package/python/Lib/site-packages/win32/test/test_exceptions.py +213 -0
- package/python/Lib/site-packages/win32/test/test_odbc.py +263 -0
- package/python/Lib/site-packages/win32/test/test_pywintypes.py +111 -0
- package/python/Lib/site-packages/win32/test/test_security.py +166 -0
- package/python/Lib/site-packages/win32/test/test_sspi.py +229 -0
- package/python/Lib/site-packages/win32/test/test_win32api.py +338 -0
- package/python/Lib/site-packages/win32/test/test_win32clipboard.py +59 -0
- package/python/Lib/site-packages/win32/test/test_win32cred.py +97 -0
- package/python/Lib/site-packages/win32/test/test_win32crypt.py +144 -0
- package/python/Lib/site-packages/win32/test/test_win32event.py +119 -0
- package/python/Lib/site-packages/win32/test/test_win32file.py +1095 -0
- package/python/Lib/site-packages/win32/test/test_win32gui.py +188 -0
- package/python/Lib/site-packages/win32/test/test_win32guistruct.py +333 -0
- package/python/Lib/site-packages/win32/test/test_win32inet.py +108 -0
- package/python/Lib/site-packages/win32/test/test_win32net.py +23 -0
- package/python/Lib/site-packages/win32/test/test_win32pipe.py +148 -0
- package/python/Lib/site-packages/win32/test/test_win32print.py +24 -0
- package/python/Lib/site-packages/win32/test/test_win32profile.py +19 -0
- package/python/Lib/site-packages/win32/test/test_win32rcparser.py +70 -0
- package/python/Lib/site-packages/win32/test/test_win32timezone.py +16 -0
- package/python/Lib/site-packages/win32/test/test_win32trace.py +367 -0
- package/python/Lib/site-packages/win32/test/test_win32ts.py +19 -0
- package/python/Lib/site-packages/win32/test/test_win32wnet.py +174 -0
- package/python/Lib/site-packages/win32/test/testall.py +221 -0
- package/python/Lib/site-packages/win32/test/win32rcparser/python.bmp +0 -0
- package/python/Lib/site-packages/win32/test/win32rcparser/python.ico +0 -0
- package/python/Lib/site-packages/win32/test/win32rcparser/test.h +46 -0
- package/python/Lib/site-packages/win32/test/win32rcparser/test.rc +215 -0
- package/python/Lib/site-packages/win32/timer.pyd +0 -0
- package/python/Lib/site-packages/win32/win32api.pyd +0 -0
- package/python/Lib/site-packages/win32/win32clipboard.pyd +0 -0
- package/python/Lib/site-packages/win32/win32console.pyd +0 -0
- package/python/Lib/site-packages/win32/win32cred.pyd +0 -0
- package/python/Lib/site-packages/win32/win32crypt.pyd +0 -0
- package/python/Lib/site-packages/win32/win32event.pyd +0 -0
- package/python/Lib/site-packages/win32/win32evtlog.pyd +0 -0
- package/python/Lib/site-packages/win32/win32file.pyd +0 -0
- package/python/Lib/site-packages/win32/win32gui.pyd +0 -0
- package/python/Lib/site-packages/win32/win32help.pyd +0 -0
- package/python/Lib/site-packages/win32/win32inet.pyd +0 -0
- package/python/Lib/site-packages/win32/win32job.pyd +0 -0
- package/python/Lib/site-packages/win32/win32lz.pyd +0 -0
- package/python/Lib/site-packages/win32/win32net.pyd +0 -0
- package/python/Lib/site-packages/win32/win32pdh.pyd +0 -0
- package/python/Lib/site-packages/win32/win32pipe.pyd +0 -0
- package/python/Lib/site-packages/win32/win32print.pyd +0 -0
- package/python/Lib/site-packages/win32/win32process.pyd +0 -0
- package/python/Lib/site-packages/win32/win32profile.pyd +0 -0
- package/python/Lib/site-packages/win32/win32ras.pyd +0 -0
- package/python/Lib/site-packages/win32/win32security.pyd +0 -0
- package/python/Lib/site-packages/win32/win32service.pyd +0 -0
- package/python/Lib/site-packages/win32/win32trace.pyd +0 -0
- package/python/Lib/site-packages/win32/win32transaction.pyd +0 -0
- package/python/Lib/site-packages/win32/win32ts.pyd +0 -0
- package/python/Lib/site-packages/win32/win32wnet.pyd +0 -0
- package/python/Lib/site-packages/win32/winxpgui.py +13 -0
- package/python/Lib/site-packages/win32com/HTML/COM_Records.html +382 -0
- package/python/Lib/site-packages/win32com/HTML/GeneratedSupport.html +104 -0
- package/python/Lib/site-packages/win32com/HTML/PythonCOM.html +90 -0
- package/python/Lib/site-packages/win32com/HTML/QuickStartClientCom.html +82 -0
- package/python/Lib/site-packages/win32com/HTML/QuickStartServerCom.html +195 -0
- package/python/Lib/site-packages/win32com/HTML/docindex.html +23 -0
- package/python/Lib/site-packages/win32com/HTML/image/BTN_HomePage.gif +0 -0
- package/python/Lib/site-packages/win32com/HTML/image/BTN_ManualTop.gif +0 -0
- package/python/Lib/site-packages/win32com/HTML/image/BTN_NextPage.gif +0 -0
- package/python/Lib/site-packages/win32com/HTML/image/BTN_PrevPage.gif +0 -0
- package/python/Lib/site-packages/win32com/HTML/image/blank.gif +0 -0
- package/python/Lib/site-packages/win32com/HTML/image/pycom_blowing.gif +0 -0
- package/python/Lib/site-packages/win32com/HTML/image/pythoncom.gif +0 -0
- package/python/Lib/site-packages/win32com/HTML/image/www_icon.gif +0 -0
- package/python/Lib/site-packages/win32com/HTML/index.html +31 -0
- package/python/Lib/site-packages/win32com/HTML/misc.html +18 -0
- package/python/Lib/site-packages/win32com/HTML/package.html +37 -0
- package/python/Lib/site-packages/win32com/HTML/variant.html +162 -0
- package/python/Lib/site-packages/win32com/License.txt +30 -0
- package/python/Lib/site-packages/win32com/__init__.py +130 -0
- package/python/Lib/site-packages/win32com/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/__pycache__/olectl.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/__pycache__/storagecon.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/__pycache__/universal.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/__pycache__/util.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/client/CLSIDToClass.py +60 -0
- package/python/Lib/site-packages/win32com/client/__init__.py +704 -0
- package/python/Lib/site-packages/win32com/client/__pycache__/CLSIDToClass.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/client/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/client/__pycache__/build.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/client/__pycache__/combrowse.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/client/__pycache__/connect.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/client/__pycache__/dynamic.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/client/__pycache__/gencache.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/client/__pycache__/genpy.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/client/__pycache__/makepy.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/client/__pycache__/selecttlb.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/client/__pycache__/tlbrowse.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/client/__pycache__/util.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/client/build.py +790 -0
- package/python/Lib/site-packages/win32com/client/combrowse.py +603 -0
- package/python/Lib/site-packages/win32com/client/connect.py +48 -0
- package/python/Lib/site-packages/win32com/client/dynamic.py +699 -0
- package/python/Lib/site-packages/win32com/client/gencache.py +818 -0
- package/python/Lib/site-packages/win32com/client/genpy.py +1354 -0
- package/python/Lib/site-packages/win32com/client/makepy.py +452 -0
- package/python/Lib/site-packages/win32com/client/selecttlb.py +182 -0
- package/python/Lib/site-packages/win32com/client/tlbrowse.py +277 -0
- package/python/Lib/site-packages/win32com/client/util.py +103 -0
- package/python/Lib/site-packages/win32com/demos/__init__.py +0 -0
- package/python/Lib/site-packages/win32com/demos/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/demos/__pycache__/connect.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/demos/__pycache__/dump_clipboard.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/demos/__pycache__/eventsApartmentThreaded.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/demos/__pycache__/eventsFreeThreaded.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/demos/__pycache__/excelAddin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/demos/__pycache__/excelRTDServer.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/demos/__pycache__/iebutton.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/demos/__pycache__/ietoolbar.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/demos/__pycache__/outlookAddin.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/demos/__pycache__/trybag.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/demos/connect.py +97 -0
- package/python/Lib/site-packages/win32com/demos/dump_clipboard.py +74 -0
- package/python/Lib/site-packages/win32com/demos/eventsApartmentThreaded.py +98 -0
- package/python/Lib/site-packages/win32com/demos/eventsFreeThreaded.py +92 -0
- package/python/Lib/site-packages/win32com/demos/excelAddin.py +169 -0
- package/python/Lib/site-packages/win32com/demos/excelRTDServer.py +434 -0
- package/python/Lib/site-packages/win32com/demos/iebutton.py +212 -0
- package/python/Lib/site-packages/win32com/demos/ietoolbar.py +366 -0
- package/python/Lib/site-packages/win32com/demos/outlookAddin.py +135 -0
- package/python/Lib/site-packages/win32com/demos/trybag.py +78 -0
- package/python/Lib/site-packages/win32com/include/PythonCOM.h +730 -0
- package/python/Lib/site-packages/win32com/include/PythonCOMRegister.h +56 -0
- package/python/Lib/site-packages/win32com/include/PythonCOMServer.h +167 -0
- package/python/Lib/site-packages/win32com/libs/axscript.lib +0 -0
- package/python/Lib/site-packages/win32com/libs/pythoncom.lib +0 -0
- package/python/Lib/site-packages/win32com/makegw/__init__.py +1 -0
- package/python/Lib/site-packages/win32com/makegw/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/makegw/__pycache__/makegw.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/makegw/__pycache__/makegwenum.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/makegw/__pycache__/makegwparse.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/makegw/makegw.py +618 -0
- package/python/Lib/site-packages/win32com/makegw/makegwenum.py +331 -0
- package/python/Lib/site-packages/win32com/makegw/makegwparse.py +1017 -0
- package/python/Lib/site-packages/win32com/olectl.py +70 -0
- package/python/Lib/site-packages/win32com/readme.html +87 -0
- package/python/Lib/site-packages/win32com/server/__init__.py +1 -0
- package/python/Lib/site-packages/win32com/server/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/server/__pycache__/connect.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/server/__pycache__/dispatcher.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/server/__pycache__/exception.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/server/__pycache__/factory.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/server/__pycache__/localserver.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/server/__pycache__/policy.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/server/__pycache__/register.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/server/__pycache__/util.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/server/connect.py +85 -0
- package/python/Lib/site-packages/win32com/server/dispatcher.py +239 -0
- package/python/Lib/site-packages/win32com/server/exception.py +99 -0
- package/python/Lib/site-packages/win32com/server/factory.py +26 -0
- package/python/Lib/site-packages/win32com/server/localserver.py +53 -0
- package/python/Lib/site-packages/win32com/server/policy.py +803 -0
- package/python/Lib/site-packages/win32com/server/register.py +662 -0
- package/python/Lib/site-packages/win32com/server/util.py +229 -0
- package/python/Lib/site-packages/win32com/servers/PythonTools.py +47 -0
- package/python/Lib/site-packages/win32com/servers/__init__.py +0 -0
- package/python/Lib/site-packages/win32com/servers/__pycache__/PythonTools.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/servers/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/servers/__pycache__/dictionary.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/servers/__pycache__/interp.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/servers/__pycache__/perfmon.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/servers/__pycache__/test_pycomtest.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/servers/dictionary.py +133 -0
- package/python/Lib/site-packages/win32com/servers/interp.py +59 -0
- package/python/Lib/site-packages/win32com/servers/perfmon.py +36 -0
- package/python/Lib/site-packages/win32com/servers/test_pycomtest.py +181 -0
- package/python/Lib/site-packages/win32com/storagecon.py +142 -0
- package/python/Lib/site-packages/win32com/test/GenTestScripts.py +92 -0
- package/python/Lib/site-packages/win32com/test/Testpys.sct +63 -0
- package/python/Lib/site-packages/win32com/test/__init__.py +1 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/GenTestScripts.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/daodump.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/errorSemantics.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/pippo_server.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/policySemantics.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testADOEvents.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testAXScript.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testAccess.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testArrays.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testClipboard.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testCollections.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testConversionErrors.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testDCOM.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testDates.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testDictionary.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testDynamic.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testExchange.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testExplorer.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testGIT.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testGatewayAddresses.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testIterators.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testMSOffice.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testMSOfficeEvents.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testMarshal.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testPersist.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testPippo.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testPyComTest.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testROT.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testServers.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testShell.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testStorage.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testStreams.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testWMI.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testall.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testmakepy.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testvb.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testvbscript_regexp.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/testxslt.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/__pycache__/util.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32com/test/daodump.py +88 -0
- package/python/Lib/site-packages/win32com/test/errorSemantics.py +243 -0
- package/python/Lib/site-packages/win32com/test/pippo.idl +66 -0
- package/python/Lib/site-packages/win32com/test/pippo_server.py +96 -0
- package/python/Lib/site-packages/win32com/test/policySemantics.py +115 -0
- package/python/Lib/site-packages/win32com/test/readme.txt +19 -0
- package/python/Lib/site-packages/win32com/test/testADOEvents.py +100 -0
- package/python/Lib/site-packages/win32com/test/testAXScript.py +44 -0
- package/python/Lib/site-packages/win32com/test/testAccess.py +185 -0
- package/python/Lib/site-packages/win32com/test/testArrays.py +109 -0
- package/python/Lib/site-packages/win32com/test/testClipboard.py +169 -0
- package/python/Lib/site-packages/win32com/test/testCollections.py +159 -0
- package/python/Lib/site-packages/win32com/test/testConversionErrors.py +35 -0
- package/python/Lib/site-packages/win32com/test/testDCOM.py +50 -0
- package/python/Lib/site-packages/win32com/test/testDates.py +74 -0
- package/python/Lib/site-packages/win32com/test/testDictionary.py +101 -0
- package/python/Lib/site-packages/win32com/test/testDictionary.vbs +24 -0
- package/python/Lib/site-packages/win32com/test/testDynamic.py +84 -0
- package/python/Lib/site-packages/win32com/test/testExchange.py +121 -0
- package/python/Lib/site-packages/win32com/test/testExplorer.py +139 -0
- package/python/Lib/site-packages/win32com/test/testGIT.py +142 -0
- package/python/Lib/site-packages/win32com/test/testGatewayAddresses.py +149 -0
- package/python/Lib/site-packages/win32com/test/testInterp.vbs +11 -0
- package/python/Lib/site-packages/win32com/test/testIterators.py +140 -0
- package/python/Lib/site-packages/win32com/test/testMSOffice.py +184 -0
- package/python/Lib/site-packages/win32com/test/testMSOfficeEvents.py +138 -0
- package/python/Lib/site-packages/win32com/test/testMarshal.py +164 -0
- package/python/Lib/site-packages/win32com/test/testPersist.py +227 -0
- package/python/Lib/site-packages/win32com/test/testPippo.py +80 -0
- package/python/Lib/site-packages/win32com/test/testPyComTest.py +1107 -0
- package/python/Lib/site-packages/win32com/test/testPyScriptlet.js +33 -0
- package/python/Lib/site-packages/win32com/test/testROT.py +29 -0
- package/python/Lib/site-packages/win32com/test/testServers.py +51 -0
- package/python/Lib/site-packages/win32com/test/testShell.py +272 -0
- package/python/Lib/site-packages/win32com/test/testStorage.py +88 -0
- package/python/Lib/site-packages/win32com/test/testStreams.py +147 -0
- package/python/Lib/site-packages/win32com/test/testWMI.py +18 -0
- package/python/Lib/site-packages/win32com/test/testall.py +332 -0
- package/python/Lib/site-packages/win32com/test/testmakepy.py +91 -0
- package/python/Lib/site-packages/win32com/test/testvb.py +578 -0
- package/python/Lib/site-packages/win32com/test/testvbscript_regexp.py +40 -0
- package/python/Lib/site-packages/win32com/test/testxslt.js +12 -0
- package/python/Lib/site-packages/win32com/test/testxslt.py +34 -0
- package/python/Lib/site-packages/win32com/test/testxslt.xsl +54 -0
- package/python/Lib/site-packages/win32com/test/util.py +252 -0
- package/python/Lib/site-packages/win32com/universal.py +224 -0
- package/python/Lib/site-packages/win32com/util.py +35 -0
- package/python/Lib/site-packages/win32comext/License.txt +30 -0
- package/python/Lib/site-packages/win32comext/adsi/__init__.py +113 -0
- package/python/Lib/site-packages/win32comext/adsi/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/adsi/__pycache__/adsicon.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/adsi/adsi.pyd +0 -0
- package/python/Lib/site-packages/win32comext/adsi/adsicon.py +340 -0
- package/python/Lib/site-packages/win32comext/adsi/demos/__pycache__/objectPicker.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/adsi/demos/__pycache__/scp.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/adsi/demos/__pycache__/search.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/adsi/demos/__pycache__/test.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/adsi/demos/objectPicker.py +68 -0
- package/python/Lib/site-packages/win32comext/adsi/demos/scp.py +565 -0
- package/python/Lib/site-packages/win32comext/adsi/demos/search.py +151 -0
- package/python/Lib/site-packages/win32comext/adsi/demos/test.py +274 -0
- package/python/Lib/site-packages/win32comext/authorization/__init__.py +6 -0
- package/python/Lib/site-packages/win32comext/authorization/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/authorization/authorization.pyd +0 -0
- package/python/Lib/site-packages/win32comext/authorization/demos/EditSecurity.py +229 -0
- package/python/Lib/site-packages/win32comext/authorization/demos/EditServiceSecurity.py +219 -0
- package/python/Lib/site-packages/win32comext/authorization/demos/__pycache__/EditSecurity.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/authorization/demos/__pycache__/EditServiceSecurity.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/axcontrol/__init__.py +4 -0
- package/python/Lib/site-packages/win32comext/axcontrol/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/axcontrol/axcontrol.pyd +0 -0
- package/python/Lib/site-packages/win32comext/axdebug/__init__.py +4 -0
- package/python/Lib/site-packages/win32comext/axdebug/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/axdebug/__pycache__/adb.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/axdebug/__pycache__/codecontainer.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/axdebug/__pycache__/contexts.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/axdebug/__pycache__/debugger.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/axdebug/__pycache__/documents.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/axdebug/__pycache__/dump.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/axdebug/__pycache__/expressions.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/axdebug/__pycache__/gateways.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/axdebug/__pycache__/stackframe.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/axdebug/__pycache__/util.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/axdebug/adb.py +480 -0
- package/python/Lib/site-packages/win32comext/axdebug/axdebug.pyd +0 -0
- package/python/Lib/site-packages/win32comext/axdebug/codecontainer.py +278 -0
- package/python/Lib/site-packages/win32comext/axdebug/contexts.py +58 -0
- package/python/Lib/site-packages/win32comext/axdebug/debugger.py +238 -0
- package/python/Lib/site-packages/win32comext/axdebug/documents.py +135 -0
- package/python/Lib/site-packages/win32comext/axdebug/dump.py +57 -0
- package/python/Lib/site-packages/win32comext/axdebug/expressions.py +212 -0
- package/python/Lib/site-packages/win32comext/axdebug/gateways.py +583 -0
- package/python/Lib/site-packages/win32comext/axdebug/stackframe.py +178 -0
- package/python/Lib/site-packages/win32comext/axdebug/util.py +98 -0
- package/python/Lib/site-packages/win32comext/axscript/__init__.py +4 -0
- package/python/Lib/site-packages/win32comext/axscript/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/axscript/__pycache__/asputil.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/axscript/asputil.py +13 -0
- package/python/Lib/site-packages/win32comext/axscript/axscript.pyd +0 -0
- package/python/Lib/site-packages/win32comext/axscript/client/__init__.py +1 -0
- package/python/Lib/site-packages/win32comext/axscript/client/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/axscript/client/__pycache__/debug.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/axscript/client/__pycache__/error.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/axscript/client/__pycache__/framework.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/axscript/client/__pycache__/pydumper.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/axscript/client/__pycache__/pyscript.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/axscript/client/__pycache__/pyscript_rexec.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/axscript/client/__pycache__/scriptdispatch.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/axscript/client/debug.py +223 -0
- package/python/Lib/site-packages/win32comext/axscript/client/error.py +260 -0
- package/python/Lib/site-packages/win32comext/axscript/client/framework.py +1291 -0
- package/python/Lib/site-packages/win32comext/axscript/client/pydumper.py +78 -0
- package/python/Lib/site-packages/win32comext/axscript/client/pyscript.py +438 -0
- package/python/Lib/site-packages/win32comext/axscript/client/pyscript_rexec.py +54 -0
- package/python/Lib/site-packages/win32comext/axscript/client/scriptdispatch.py +103 -0
- package/python/Lib/site-packages/win32comext/axscript/demos/client/asp/CreateObject.asp +18 -0
- package/python/Lib/site-packages/win32comext/axscript/demos/client/asp/caps.asp +52 -0
- package/python/Lib/site-packages/win32comext/axscript/demos/client/asp/interrupt/test.asp +4 -0
- package/python/Lib/site-packages/win32comext/axscript/demos/client/asp/interrupt/test.html +10 -0
- package/python/Lib/site-packages/win32comext/axscript/demos/client/asp/interrupt/test1.asp +6 -0
- package/python/Lib/site-packages/win32comext/axscript/demos/client/asp/interrupt/test1.html +10 -0
- package/python/Lib/site-packages/win32comext/axscript/demos/client/asp/tut1.asp +10 -0
- package/python/Lib/site-packages/win32comext/axscript/demos/client/ie/CHARTPY.HTM +179 -0
- package/python/Lib/site-packages/win32comext/axscript/demos/client/ie/FOO.HTM +46 -0
- package/python/Lib/site-packages/win32comext/axscript/demos/client/ie/MarqueeText1.htm +24 -0
- package/python/Lib/site-packages/win32comext/axscript/demos/client/ie/calc.htm +115 -0
- package/python/Lib/site-packages/win32comext/axscript/demos/client/ie/dbgtest.htm +16 -0
- package/python/Lib/site-packages/win32comext/axscript/demos/client/ie/demo.htm +25 -0
- package/python/Lib/site-packages/win32comext/axscript/demos/client/ie/demo_check.htm +39 -0
- package/python/Lib/site-packages/win32comext/axscript/demos/client/ie/demo_intro.htm +37 -0
- package/python/Lib/site-packages/win32comext/axscript/demos/client/ie/demo_menu.htm +14 -0
- package/python/Lib/site-packages/win32comext/axscript/demos/client/ie/docwrite.htm +25 -0
- package/python/Lib/site-packages/win32comext/axscript/demos/client/ie/foo2.htm +105 -0
- package/python/Lib/site-packages/win32comext/axscript/demos/client/ie/form.htm +25 -0
- package/python/Lib/site-packages/win32comext/axscript/demos/client/ie/marqueeDemo.htm +59 -0
- package/python/Lib/site-packages/win32comext/axscript/demos/client/ie/mousetrack.htm +82 -0
- package/python/Lib/site-packages/win32comext/axscript/demos/client/ie/pycom_blowing.gif +0 -0
- package/python/Lib/site-packages/win32comext/axscript/demos/client/wsh/blank.pys +0 -0
- package/python/Lib/site-packages/win32comext/axscript/demos/client/wsh/excel.pys +31 -0
- package/python/Lib/site-packages/win32comext/axscript/demos/client/wsh/registry.pys +44 -0
- package/python/Lib/site-packages/win32comext/axscript/demos/client/wsh/test.pys +14 -0
- package/python/Lib/site-packages/win32comext/axscript/server/__init__.py +0 -0
- package/python/Lib/site-packages/win32comext/axscript/server/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/axscript/server/__pycache__/axsite.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/axscript/server/axsite.py +145 -0
- package/python/Lib/site-packages/win32comext/axscript/test/__pycache__/leakTest.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/axscript/test/__pycache__/testHost.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/axscript/test/__pycache__/testHost4Dbg.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/axscript/test/debugTest.pys +16 -0
- package/python/Lib/site-packages/win32comext/axscript/test/debugTest.vbs +7 -0
- package/python/Lib/site-packages/win32comext/axscript/test/leakTest.py +186 -0
- package/python/Lib/site-packages/win32comext/axscript/test/testHost.py +241 -0
- package/python/Lib/site-packages/win32comext/axscript/test/testHost4Dbg.py +83 -0
- package/python/Lib/site-packages/win32comext/bits/__init__.py +6 -0
- package/python/Lib/site-packages/win32comext/bits/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/bits/bits.pyd +0 -0
- package/python/Lib/site-packages/win32comext/bits/test/__pycache__/show_all_jobs.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/bits/test/__pycache__/test_bits.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/bits/test/show_all_jobs.py +48 -0
- package/python/Lib/site-packages/win32comext/bits/test/test_bits.py +119 -0
- package/python/Lib/site-packages/win32comext/directsound/__init__.py +4 -0
- package/python/Lib/site-packages/win32comext/directsound/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/directsound/directsound.pyd +0 -0
- package/python/Lib/site-packages/win32comext/directsound/test/__init__.py +1 -0
- package/python/Lib/site-packages/win32comext/directsound/test/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/directsound/test/__pycache__/ds_record.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/directsound/test/__pycache__/ds_test.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/directsound/test/ds_record.py +60 -0
- package/python/Lib/site-packages/win32comext/directsound/test/ds_test.py +402 -0
- package/python/Lib/site-packages/win32comext/ifilter/__init__.py +1 -0
- package/python/Lib/site-packages/win32comext/ifilter/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/ifilter/__pycache__/ifiltercon.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/ifilter/demos/__pycache__/filterDemo.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/ifilter/demos/filterDemo.py +296 -0
- package/python/Lib/site-packages/win32comext/ifilter/ifilter.pyd +0 -0
- package/python/Lib/site-packages/win32comext/ifilter/ifiltercon.py +110 -0
- package/python/Lib/site-packages/win32comext/internet/__init__.py +4 -0
- package/python/Lib/site-packages/win32comext/internet/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/internet/__pycache__/inetcon.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/internet/inetcon.py +261 -0
- package/python/Lib/site-packages/win32comext/internet/internet.pyd +0 -0
- package/python/Lib/site-packages/win32comext/mapi/MAPIStubLibrary-License.txt +21 -0
- package/python/Lib/site-packages/win32comext/mapi/NOTICE.md +6 -0
- package/python/Lib/site-packages/win32comext/mapi/__init__.py +21 -0
- package/python/Lib/site-packages/win32comext/mapi/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/mapi/__pycache__/emsabtags.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/mapi/__pycache__/mapitags.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/mapi/__pycache__/mapiutil.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/mapi/demos/__pycache__/mapisend.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/mapi/demos/mapisend.py +98 -0
- package/python/Lib/site-packages/win32comext/mapi/emsabtags.py +875 -0
- package/python/Lib/site-packages/win32comext/mapi/exchange.pyd +0 -0
- package/python/Lib/site-packages/win32comext/mapi/mapi.pyd +0 -0
- package/python/Lib/site-packages/win32comext/mapi/mapitags.py +1023 -0
- package/python/Lib/site-packages/win32comext/mapi/mapiutil.py +211 -0
- package/python/Lib/site-packages/win32comext/propsys/__init__.py +1 -0
- package/python/Lib/site-packages/win32comext/propsys/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/propsys/__pycache__/pscon.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/propsys/propsys.pyd +0 -0
- package/python/Lib/site-packages/win32comext/propsys/pscon.py +839 -0
- package/python/Lib/site-packages/win32comext/propsys/test/__pycache__/testpropsys.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/propsys/test/testpropsys.py +5 -0
- package/python/Lib/site-packages/win32comext/shell/__init__.py +4 -0
- package/python/Lib/site-packages/win32comext/shell/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/shell/__pycache__/shellcon.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/shell/demos/IActiveDesktop.py +83 -0
- package/python/Lib/site-packages/win32comext/shell/demos/IFileOperationProgressSink.py +179 -0
- package/python/Lib/site-packages/win32comext/shell/demos/IShellLinkDataList.py +67 -0
- package/python/Lib/site-packages/win32comext/shell/demos/ITransferAdviseSink.py +93 -0
- package/python/Lib/site-packages/win32comext/shell/demos/IUniformResourceLocator.py +56 -0
- package/python/Lib/site-packages/win32comext/shell/demos/__pycache__/IActiveDesktop.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/shell/demos/__pycache__/IFileOperationProgressSink.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/shell/demos/__pycache__/IShellLinkDataList.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/shell/demos/__pycache__/ITransferAdviseSink.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/shell/demos/__pycache__/IUniformResourceLocator.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/shell/demos/__pycache__/browse_for_folder.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/shell/demos/__pycache__/create_link.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/shell/demos/__pycache__/dump_link.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/shell/demos/__pycache__/explorer_browser.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/shell/demos/__pycache__/shellexecuteex.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/shell/demos/__pycache__/viewstate.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/shell/demos/__pycache__/walk_shell_folders.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/shell/demos/browse_for_folder.py +45 -0
- package/python/Lib/site-packages/win32comext/shell/demos/create_link.py +73 -0
- package/python/Lib/site-packages/win32comext/shell/demos/dump_link.py +58 -0
- package/python/Lib/site-packages/win32comext/shell/demos/explorer_browser.py +143 -0
- package/python/Lib/site-packages/win32comext/shell/demos/servers/__pycache__/column_provider.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/shell/demos/servers/__pycache__/context_menu.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/shell/demos/servers/__pycache__/copy_hook.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/shell/demos/servers/__pycache__/empty_volume_cache.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/shell/demos/servers/__pycache__/folder_view.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/shell/demos/servers/__pycache__/icon_handler.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/shell/demos/servers/__pycache__/shell_view.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/shell/demos/servers/column_provider.py +117 -0
- package/python/Lib/site-packages/win32comext/shell/demos/servers/context_menu.py +121 -0
- package/python/Lib/site-packages/win32comext/shell/demos/servers/copy_hook.py +84 -0
- package/python/Lib/site-packages/win32comext/shell/demos/servers/empty_volume_cache.py +186 -0
- package/python/Lib/site-packages/win32comext/shell/demos/servers/folder_view.py +858 -0
- package/python/Lib/site-packages/win32comext/shell/demos/servers/icon_handler.py +81 -0
- package/python/Lib/site-packages/win32comext/shell/demos/servers/shell_view.py +971 -0
- package/python/Lib/site-packages/win32comext/shell/demos/shellexecuteex.py +19 -0
- package/python/Lib/site-packages/win32comext/shell/demos/viewstate.py +68 -0
- package/python/Lib/site-packages/win32comext/shell/demos/walk_shell_folders.py +24 -0
- package/python/Lib/site-packages/win32comext/shell/shell.pyd +0 -0
- package/python/Lib/site-packages/win32comext/shell/shellcon.py +1615 -0
- package/python/Lib/site-packages/win32comext/shell/test/__pycache__/testSHFileOperation.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/shell/test/__pycache__/testShellFolder.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/shell/test/__pycache__/testShellItem.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/shell/test/testSHFileOperation.py +75 -0
- package/python/Lib/site-packages/win32comext/shell/test/testShellFolder.py +21 -0
- package/python/Lib/site-packages/win32comext/shell/test/testShellItem.py +69 -0
- package/python/Lib/site-packages/win32comext/taskscheduler/__init__.py +6 -0
- package/python/Lib/site-packages/win32comext/taskscheduler/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/taskscheduler/taskscheduler.pyd +0 -0
- package/python/Lib/site-packages/win32comext/taskscheduler/test/__pycache__/test_addtask.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/taskscheduler/test/__pycache__/test_addtask_1.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/taskscheduler/test/__pycache__/test_addtask_2.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/taskscheduler/test/__pycache__/test_localsystem.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/win32comext/taskscheduler/test/test_addtask.py +66 -0
- package/python/Lib/site-packages/win32comext/taskscheduler/test/test_addtask_1.py +68 -0
- package/python/Lib/site-packages/win32comext/taskscheduler/test/test_addtask_2.py +49 -0
- package/python/Lib/site-packages/win32comext/taskscheduler/test/test_localsystem.py +3 -0
- package/python/Lib/site-packages/winrt/__pyinstaller/__init__.py +13 -0
- package/python/Lib/site-packages/winrt/__pyinstaller/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/winrt/__pyinstaller/__pycache__/hook-winrt.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/winrt/__pyinstaller/hook-winrt.py +85 -0
- package/python/Lib/site-packages/winrt/_winrt.cp314-win_amd64.pyd +0 -0
- package/python/Lib/site-packages/winrt/_winrt.pyi +178 -0
- package/python/Lib/site-packages/winrt/py.typed +0 -0
- package/python/Lib/site-packages/winrt/runtime/__init__.py +28 -0
- package/python/Lib/site-packages/winrt/runtime/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/winrt/runtime/__pycache__/_internals.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/winrt/runtime/__pycache__/interop.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/winrt/runtime/_internals.py +672 -0
- package/python/Lib/site-packages/winrt/runtime/interop.py +27 -0
- package/python/Lib/site-packages/winrt/runtime/py.typed +0 -0
- package/python/Lib/site-packages/winrt/system/__init__.py +191 -0
- package/python/Lib/site-packages/winrt/system/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/winrt/system/__pycache__/hresult.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/winrt/system/hresult.py +47 -0
- package/python/Lib/site-packages/winrt/system/py.typed +0 -0
- package/python/Lib/site-packages/winrt/windows/foundation/__init__.py +65 -0
- package/python/Lib/site-packages/winrt/windows/foundation/__init__.pyi +689 -0
- package/python/Lib/site-packages/winrt/windows/foundation/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/winrt/windows/foundation/_table.pywinrt +0 -0
- package/python/Lib/site-packages/winrt/windows/foundation/collections/__init__.py +45 -0
- package/python/Lib/site-packages/winrt/windows/foundation/collections/__init__.pyi +332 -0
- package/python/Lib/site-packages/winrt/windows/foundation/collections/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/winrt/windows/foundation/collections/_table.pywinrt +0 -0
- package/python/Lib/site-packages/winrt/windows/foundation/collections/py.typed +0 -0
- package/python/Lib/site-packages/winrt/windows/foundation/py.typed +0 -0
- package/python/Lib/site-packages/winrt/windows/globalization/__init__.py +31 -0
- package/python/Lib/site-packages/winrt/windows/globalization/__init__.pyi +1196 -0
- package/python/Lib/site-packages/winrt/windows/globalization/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/winrt/windows/globalization/_table.pywinrt +0 -0
- package/python/Lib/site-packages/winrt/windows/globalization/py.typed +0 -0
- package/python/Lib/site-packages/winrt/windows/graphics/imaging/__init__.py +60 -0
- package/python/Lib/site-packages/winrt/windows/graphics/imaging/__init__.pyi +780 -0
- package/python/Lib/site-packages/winrt/windows/graphics/imaging/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/winrt/windows/graphics/imaging/_table.pywinrt +0 -0
- package/python/Lib/site-packages/winrt/windows/graphics/imaging/py.typed +0 -0
- package/python/Lib/site-packages/winrt/windows/media/ocr/__init__.py +14 -0
- package/python/Lib/site-packages/winrt/windows/media/ocr/__init__.pyi +80 -0
- package/python/Lib/site-packages/winrt/windows/media/ocr/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/winrt/windows/media/ocr/_table.pywinrt +0 -0
- package/python/Lib/site-packages/winrt/windows/media/ocr/py.typed +0 -0
- package/python/Lib/site-packages/winrt/windows/storage/streams/__init__.py +48 -0
- package/python/Lib/site-packages/winrt/windows/storage/streams/__init__.pyi +805 -0
- package/python/Lib/site-packages/winrt/windows/storage/streams/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/Lib/site-packages/winrt/windows/storage/streams/_table.pywinrt +0 -0
- package/python/Lib/site-packages/winrt/windows/storage/streams/py.typed +0 -0
- package/python/Lib/site-packages/winrt_runtime-4.2.1.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/winrt_runtime-4.2.1.dist-info/METADATA +41 -0
- package/python/Lib/site-packages/winrt_runtime-4.2.1.dist-info/RECORD +19 -0
- package/python/Lib/site-packages/winrt_runtime-4.2.1.dist-info/WHEEL +5 -0
- package/python/Lib/site-packages/winrt_runtime-4.2.1.dist-info/entry_points.txt +2 -0
- package/python/Lib/site-packages/winrt_runtime-4.2.1.dist-info/licenses/LICENSE +22 -0
- package/python/Lib/site-packages/winrt_runtime-4.2.1.dist-info/top_level.txt +1 -0
- package/python/Lib/site-packages/winrt_windows_foundation-4!10.0.28000.2957.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/winrt_windows_foundation-4!10.0.28000.2957.dist-info/METADATA +44 -0
- package/python/Lib/site-packages/winrt_windows_foundation-4!10.0.28000.2957.dist-info/RECORD +9 -0
- package/python/Lib/site-packages/winrt_windows_foundation-4!10.0.28000.2957.dist-info/WHEEL +4 -0
- package/python/Lib/site-packages/winrt_windows_foundation-4!10.0.28000.2957.dist-info/licenses/LICENSE +22 -0
- package/python/Lib/site-packages/winrt_windows_foundation_collections-4!10.0.28000.2957.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/winrt_windows_foundation_collections-4!10.0.28000.2957.dist-info/METADATA +44 -0
- package/python/Lib/site-packages/winrt_windows_foundation_collections-4!10.0.28000.2957.dist-info/RECORD +9 -0
- package/python/Lib/site-packages/winrt_windows_foundation_collections-4!10.0.28000.2957.dist-info/WHEEL +4 -0
- package/python/Lib/site-packages/winrt_windows_foundation_collections-4!10.0.28000.2957.dist-info/licenses/LICENSE +22 -0
- package/python/Lib/site-packages/winrt_windows_globalization-4!10.0.28000.2957.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/winrt_windows_globalization-4!10.0.28000.2957.dist-info/METADATA +47 -0
- package/python/Lib/site-packages/winrt_windows_globalization-4!10.0.28000.2957.dist-info/RECORD +9 -0
- package/python/Lib/site-packages/winrt_windows_globalization-4!10.0.28000.2957.dist-info/WHEEL +4 -0
- package/python/Lib/site-packages/winrt_windows_globalization-4!10.0.28000.2957.dist-info/licenses/LICENSE +22 -0
- package/python/Lib/site-packages/winrt_windows_graphics_imaging-4!10.0.28000.2957.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/winrt_windows_graphics_imaging-4!10.0.28000.2957.dist-info/METADATA +49 -0
- package/python/Lib/site-packages/winrt_windows_graphics_imaging-4!10.0.28000.2957.dist-info/RECORD +9 -0
- package/python/Lib/site-packages/winrt_windows_graphics_imaging-4!10.0.28000.2957.dist-info/WHEEL +4 -0
- package/python/Lib/site-packages/winrt_windows_graphics_imaging-4!10.0.28000.2957.dist-info/licenses/LICENSE +22 -0
- package/python/Lib/site-packages/winrt_windows_media_ocr-4!10.0.28000.2957.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/winrt_windows_media_ocr-4!10.0.28000.2957.dist-info/METADATA +48 -0
- package/python/Lib/site-packages/winrt_windows_media_ocr-4!10.0.28000.2957.dist-info/RECORD +9 -0
- package/python/Lib/site-packages/winrt_windows_media_ocr-4!10.0.28000.2957.dist-info/WHEEL +4 -0
- package/python/Lib/site-packages/winrt_windows_media_ocr-4!10.0.28000.2957.dist-info/licenses/LICENSE +22 -0
- package/python/Lib/site-packages/winrt_windows_storage_streams-4!10.0.28000.2957.dist-info/INSTALLER +1 -0
- package/python/Lib/site-packages/winrt_windows_storage_streams-4!10.0.28000.2957.dist-info/METADATA +48 -0
- package/python/Lib/site-packages/winrt_windows_storage_streams-4!10.0.28000.2957.dist-info/RECORD +9 -0
- package/python/Lib/site-packages/winrt_windows_storage_streams-4!10.0.28000.2957.dist-info/WHEEL +4 -0
- package/python/Lib/site-packages/winrt_windows_storage_streams-4!10.0.28000.2957.dist-info/licenses/LICENSE +22 -0
- package/python/_asyncio.pyd +0 -0
- package/python/_bz2.pyd +0 -0
- package/python/_ctypes.pyd +0 -0
- package/python/_decimal.pyd +0 -0
- package/python/_elementtree.pyd +0 -0
- package/python/_hashlib.pyd +0 -0
- package/python/_lzma.pyd +0 -0
- package/python/_multiprocessing.pyd +0 -0
- package/python/_overlapped.pyd +0 -0
- package/python/_queue.pyd +0 -0
- package/python/_remote_debugging.pyd +0 -0
- package/python/_socket.pyd +0 -0
- package/python/_sqlite3.pyd +0 -0
- package/python/_ssl.pyd +0 -0
- package/python/_uuid.pyd +0 -0
- package/python/_wmi.pyd +0 -0
- package/python/_zoneinfo.pyd +0 -0
- package/python/_zstd.pyd +0 -0
- package/python/libcrypto-3.dll +0 -0
- package/python/libffi-8.dll +0 -0
- package/python/libssl-3.dll +0 -0
- package/python/libtommath.dll +0 -0
- package/python/pyexpat.pyd +0 -0
- package/python/python.cat +0 -0
- package/python/python.exe +0 -0
- package/python/python3.dll +0 -0
- package/python/python314._pth +4 -0
- package/python/python314.dll +0 -0
- package/python/python314.zip +0 -0
- package/python/pythonw.exe +0 -0
- package/python/select.pyd +0 -0
- package/python/sqlite3.dll +0 -0
- package/python/unicodedata.pyd +0 -0
- package/python/vcruntime140.dll +0 -0
- package/python/vcruntime140_1.dll +0 -0
- package/python/winsound.pyd +0 -0
|
@@ -0,0 +1,3405 @@
|
|
|
1
|
+
"""The types module contains custom types used by pydantic."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations as _annotations
|
|
4
|
+
|
|
5
|
+
import base64
|
|
6
|
+
import dataclasses as _dataclasses
|
|
7
|
+
import re
|
|
8
|
+
import secrets
|
|
9
|
+
import sys
|
|
10
|
+
from collections.abc import Callable, Hashable, Iterator
|
|
11
|
+
from datetime import date, datetime
|
|
12
|
+
from decimal import Decimal
|
|
13
|
+
from enum import Enum
|
|
14
|
+
from pathlib import Path
|
|
15
|
+
from re import Pattern
|
|
16
|
+
from types import ModuleType
|
|
17
|
+
from typing import (
|
|
18
|
+
TYPE_CHECKING,
|
|
19
|
+
Annotated,
|
|
20
|
+
Any,
|
|
21
|
+
ClassVar,
|
|
22
|
+
Generic,
|
|
23
|
+
Literal,
|
|
24
|
+
TypeAlias,
|
|
25
|
+
TypeVar,
|
|
26
|
+
cast,
|
|
27
|
+
)
|
|
28
|
+
from uuid import UUID
|
|
29
|
+
|
|
30
|
+
import annotated_types
|
|
31
|
+
from annotated_types import BaseMetadata, MaxLen, MinLen
|
|
32
|
+
from pydantic_core import CoreSchema, PydanticCustomError, SchemaSerializer, core_schema
|
|
33
|
+
from typing_extensions import ( # noqa: UP035 (for `get_args` and `get_origin`)
|
|
34
|
+
Protocol,
|
|
35
|
+
TypeAliasType,
|
|
36
|
+
deprecated,
|
|
37
|
+
get_args,
|
|
38
|
+
get_origin,
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
from ._internal import _fields, _utils, _validators
|
|
42
|
+
from ._migration import getattr_migration
|
|
43
|
+
from .annotated_handlers import GetCoreSchemaHandler, GetJsonSchemaHandler
|
|
44
|
+
from .errors import PydanticUserError
|
|
45
|
+
from .json_schema import JsonSchemaValue
|
|
46
|
+
from .warnings import PydanticDeprecatedSince20
|
|
47
|
+
|
|
48
|
+
if TYPE_CHECKING:
|
|
49
|
+
from ._internal._core_metadata import CoreMetadata
|
|
50
|
+
|
|
51
|
+
__all__ = (
|
|
52
|
+
'Strict',
|
|
53
|
+
'StrictStr',
|
|
54
|
+
'SocketPath',
|
|
55
|
+
'conbytes',
|
|
56
|
+
'conlist',
|
|
57
|
+
'conset',
|
|
58
|
+
'confrozenset',
|
|
59
|
+
'constr',
|
|
60
|
+
'ImportString',
|
|
61
|
+
'conint',
|
|
62
|
+
'PositiveInt',
|
|
63
|
+
'NegativeInt',
|
|
64
|
+
'NonNegativeInt',
|
|
65
|
+
'NonPositiveInt',
|
|
66
|
+
'confloat',
|
|
67
|
+
'PositiveFloat',
|
|
68
|
+
'NegativeFloat',
|
|
69
|
+
'NonNegativeFloat',
|
|
70
|
+
'NonPositiveFloat',
|
|
71
|
+
'FiniteFloat',
|
|
72
|
+
'condecimal',
|
|
73
|
+
'UUID1',
|
|
74
|
+
'UUID3',
|
|
75
|
+
'UUID4',
|
|
76
|
+
'UUID5',
|
|
77
|
+
'UUID6',
|
|
78
|
+
'UUID7',
|
|
79
|
+
'UUID8',
|
|
80
|
+
'FilePath',
|
|
81
|
+
'DirectoryPath',
|
|
82
|
+
'NewPath',
|
|
83
|
+
'Json',
|
|
84
|
+
'Secret',
|
|
85
|
+
'SecretStr',
|
|
86
|
+
'SecretBytes',
|
|
87
|
+
'StrictBool',
|
|
88
|
+
'StrictBytes',
|
|
89
|
+
'StrictInt',
|
|
90
|
+
'StrictFloat',
|
|
91
|
+
'PaymentCardNumber',
|
|
92
|
+
'ByteSize',
|
|
93
|
+
'PastDate',
|
|
94
|
+
'FutureDate',
|
|
95
|
+
'PastDatetime',
|
|
96
|
+
'FutureDatetime',
|
|
97
|
+
'condate',
|
|
98
|
+
'AwareDatetime',
|
|
99
|
+
'NaiveDatetime',
|
|
100
|
+
'AllowInfNan',
|
|
101
|
+
'EncoderProtocol',
|
|
102
|
+
'EncodedBytes',
|
|
103
|
+
'EncodedStr',
|
|
104
|
+
'Base64Encoder',
|
|
105
|
+
'Base64Bytes',
|
|
106
|
+
'Base64Str',
|
|
107
|
+
'Base64UrlBytes',
|
|
108
|
+
'Base64UrlStr',
|
|
109
|
+
'GetPydanticSchema',
|
|
110
|
+
'StringConstraints',
|
|
111
|
+
'Tag',
|
|
112
|
+
'Discriminator',
|
|
113
|
+
'JsonValue',
|
|
114
|
+
'OnErrorOmit',
|
|
115
|
+
'FailFast',
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
T = TypeVar('T')
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
@_dataclasses.dataclass
|
|
123
|
+
class Strict(_fields.PydanticMetadata, BaseMetadata):
|
|
124
|
+
"""!!! abstract "Usage Documentation"
|
|
125
|
+
[Strict Mode with `Annotated` `Strict`](../concepts/strict_mode.md#strict-mode-with-annotated-strict)
|
|
126
|
+
|
|
127
|
+
A field metadata class to indicate that a field should be validated in strict mode.
|
|
128
|
+
Use this class as an annotation via [`Annotated`](https://docs.python.org/3/library/typing.html#typing.Annotated), as seen below.
|
|
129
|
+
|
|
130
|
+
Attributes:
|
|
131
|
+
strict: Whether to validate the field in strict mode.
|
|
132
|
+
|
|
133
|
+
Example:
|
|
134
|
+
```python
|
|
135
|
+
from typing import Annotated
|
|
136
|
+
|
|
137
|
+
from pydantic.types import Strict
|
|
138
|
+
|
|
139
|
+
StrictBool = Annotated[bool, Strict()]
|
|
140
|
+
```
|
|
141
|
+
"""
|
|
142
|
+
|
|
143
|
+
strict: bool = True
|
|
144
|
+
|
|
145
|
+
def __hash__(self) -> int:
|
|
146
|
+
return hash(self.strict)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BOOLEAN TYPES ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
150
|
+
|
|
151
|
+
StrictBool = Annotated[bool, Strict()]
|
|
152
|
+
"""A boolean that must be either ``True`` or ``False``."""
|
|
153
|
+
|
|
154
|
+
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ INTEGER TYPES ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
def conint(
|
|
158
|
+
*,
|
|
159
|
+
strict: bool | None = None,
|
|
160
|
+
gt: int | None = None,
|
|
161
|
+
ge: int | None = None,
|
|
162
|
+
lt: int | None = None,
|
|
163
|
+
le: int | None = None,
|
|
164
|
+
multiple_of: int | None = None,
|
|
165
|
+
) -> type[int]:
|
|
166
|
+
"""
|
|
167
|
+
!!! warning "Discouraged"
|
|
168
|
+
This function is **discouraged** in favor of using
|
|
169
|
+
[`Annotated`](https://docs.python.org/3/library/typing.html#typing.Annotated) with
|
|
170
|
+
[`Field`][pydantic.fields.Field] instead.
|
|
171
|
+
|
|
172
|
+
This function will be **deprecated** in Pydantic 3.0.
|
|
173
|
+
|
|
174
|
+
The reason is that `conint` returns a type, which doesn't play well with static analysis tools.
|
|
175
|
+
|
|
176
|
+
=== ":x: Don't do this"
|
|
177
|
+
```python
|
|
178
|
+
from pydantic import BaseModel, conint
|
|
179
|
+
|
|
180
|
+
class Foo(BaseModel):
|
|
181
|
+
bar: conint(strict=True, gt=0)
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
=== ":white_check_mark: Do this"
|
|
185
|
+
```python
|
|
186
|
+
from typing import Annotated
|
|
187
|
+
|
|
188
|
+
from pydantic import BaseModel, Field
|
|
189
|
+
|
|
190
|
+
class Foo(BaseModel):
|
|
191
|
+
bar: Annotated[int, Field(strict=True, gt=0)]
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
A wrapper around `int` that allows for additional constraints.
|
|
195
|
+
|
|
196
|
+
Args:
|
|
197
|
+
strict: Whether to validate the integer in strict mode. Defaults to `None`.
|
|
198
|
+
gt: The value must be greater than this.
|
|
199
|
+
ge: The value must be greater than or equal to this.
|
|
200
|
+
lt: The value must be less than this.
|
|
201
|
+
le: The value must be less than or equal to this.
|
|
202
|
+
multiple_of: The value must be a multiple of this.
|
|
203
|
+
|
|
204
|
+
Returns:
|
|
205
|
+
The wrapped integer type.
|
|
206
|
+
|
|
207
|
+
```python
|
|
208
|
+
from pydantic import BaseModel, ValidationError, conint
|
|
209
|
+
|
|
210
|
+
class ConstrainedExample(BaseModel):
|
|
211
|
+
constrained_int: conint(gt=1)
|
|
212
|
+
|
|
213
|
+
m = ConstrainedExample(constrained_int=2)
|
|
214
|
+
print(repr(m))
|
|
215
|
+
#> ConstrainedExample(constrained_int=2)
|
|
216
|
+
|
|
217
|
+
try:
|
|
218
|
+
ConstrainedExample(constrained_int=0)
|
|
219
|
+
except ValidationError as e:
|
|
220
|
+
print(e.errors())
|
|
221
|
+
'''
|
|
222
|
+
[
|
|
223
|
+
{
|
|
224
|
+
'type': 'greater_than',
|
|
225
|
+
'loc': ('constrained_int',),
|
|
226
|
+
'msg': 'Input should be greater than 1',
|
|
227
|
+
'input': 0,
|
|
228
|
+
'ctx': {'gt': 1},
|
|
229
|
+
'url': 'https://errors.pydantic.dev/2/v/greater_than',
|
|
230
|
+
}
|
|
231
|
+
]
|
|
232
|
+
'''
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
""" # noqa: D212
|
|
236
|
+
return Annotated[ # pyright: ignore[reportReturnType]
|
|
237
|
+
int,
|
|
238
|
+
Strict(strict) if strict is not None else None,
|
|
239
|
+
annotated_types.Interval(gt=gt, ge=ge, lt=lt, le=le),
|
|
240
|
+
annotated_types.MultipleOf(multiple_of) if multiple_of is not None else None,
|
|
241
|
+
]
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
PositiveInt = Annotated[int, annotated_types.Gt(0)]
|
|
245
|
+
"""An integer that must be greater than zero.
|
|
246
|
+
|
|
247
|
+
```python
|
|
248
|
+
from pydantic import BaseModel, PositiveInt, ValidationError
|
|
249
|
+
|
|
250
|
+
class Model(BaseModel):
|
|
251
|
+
positive_int: PositiveInt
|
|
252
|
+
|
|
253
|
+
m = Model(positive_int=1)
|
|
254
|
+
print(repr(m))
|
|
255
|
+
#> Model(positive_int=1)
|
|
256
|
+
|
|
257
|
+
try:
|
|
258
|
+
Model(positive_int=-1)
|
|
259
|
+
except ValidationError as e:
|
|
260
|
+
print(e.errors())
|
|
261
|
+
'''
|
|
262
|
+
[
|
|
263
|
+
{
|
|
264
|
+
'type': 'greater_than',
|
|
265
|
+
'loc': ('positive_int',),
|
|
266
|
+
'msg': 'Input should be greater than 0',
|
|
267
|
+
'input': -1,
|
|
268
|
+
'ctx': {'gt': 0},
|
|
269
|
+
'url': 'https://errors.pydantic.dev/2/v/greater_than',
|
|
270
|
+
}
|
|
271
|
+
]
|
|
272
|
+
'''
|
|
273
|
+
```
|
|
274
|
+
"""
|
|
275
|
+
NegativeInt = Annotated[int, annotated_types.Lt(0)]
|
|
276
|
+
"""An integer that must be less than zero.
|
|
277
|
+
|
|
278
|
+
```python
|
|
279
|
+
from pydantic import BaseModel, NegativeInt, ValidationError
|
|
280
|
+
|
|
281
|
+
class Model(BaseModel):
|
|
282
|
+
negative_int: NegativeInt
|
|
283
|
+
|
|
284
|
+
m = Model(negative_int=-1)
|
|
285
|
+
print(repr(m))
|
|
286
|
+
#> Model(negative_int=-1)
|
|
287
|
+
|
|
288
|
+
try:
|
|
289
|
+
Model(negative_int=1)
|
|
290
|
+
except ValidationError as e:
|
|
291
|
+
print(e.errors())
|
|
292
|
+
'''
|
|
293
|
+
[
|
|
294
|
+
{
|
|
295
|
+
'type': 'less_than',
|
|
296
|
+
'loc': ('negative_int',),
|
|
297
|
+
'msg': 'Input should be less than 0',
|
|
298
|
+
'input': 1,
|
|
299
|
+
'ctx': {'lt': 0},
|
|
300
|
+
'url': 'https://errors.pydantic.dev/2/v/less_than',
|
|
301
|
+
}
|
|
302
|
+
]
|
|
303
|
+
'''
|
|
304
|
+
```
|
|
305
|
+
"""
|
|
306
|
+
NonPositiveInt = Annotated[int, annotated_types.Le(0)]
|
|
307
|
+
"""An integer that must be less than or equal to zero.
|
|
308
|
+
|
|
309
|
+
```python
|
|
310
|
+
from pydantic import BaseModel, NonPositiveInt, ValidationError
|
|
311
|
+
|
|
312
|
+
class Model(BaseModel):
|
|
313
|
+
non_positive_int: NonPositiveInt
|
|
314
|
+
|
|
315
|
+
m = Model(non_positive_int=0)
|
|
316
|
+
print(repr(m))
|
|
317
|
+
#> Model(non_positive_int=0)
|
|
318
|
+
|
|
319
|
+
try:
|
|
320
|
+
Model(non_positive_int=1)
|
|
321
|
+
except ValidationError as e:
|
|
322
|
+
print(e.errors())
|
|
323
|
+
'''
|
|
324
|
+
[
|
|
325
|
+
{
|
|
326
|
+
'type': 'less_than_equal',
|
|
327
|
+
'loc': ('non_positive_int',),
|
|
328
|
+
'msg': 'Input should be less than or equal to 0',
|
|
329
|
+
'input': 1,
|
|
330
|
+
'ctx': {'le': 0},
|
|
331
|
+
'url': 'https://errors.pydantic.dev/2/v/less_than_equal',
|
|
332
|
+
}
|
|
333
|
+
]
|
|
334
|
+
'''
|
|
335
|
+
```
|
|
336
|
+
"""
|
|
337
|
+
NonNegativeInt = Annotated[int, annotated_types.Ge(0)]
|
|
338
|
+
"""An integer that must be greater than or equal to zero.
|
|
339
|
+
|
|
340
|
+
```python
|
|
341
|
+
from pydantic import BaseModel, NonNegativeInt, ValidationError
|
|
342
|
+
|
|
343
|
+
class Model(BaseModel):
|
|
344
|
+
non_negative_int: NonNegativeInt
|
|
345
|
+
|
|
346
|
+
m = Model(non_negative_int=0)
|
|
347
|
+
print(repr(m))
|
|
348
|
+
#> Model(non_negative_int=0)
|
|
349
|
+
|
|
350
|
+
try:
|
|
351
|
+
Model(non_negative_int=-1)
|
|
352
|
+
except ValidationError as e:
|
|
353
|
+
print(e.errors())
|
|
354
|
+
'''
|
|
355
|
+
[
|
|
356
|
+
{
|
|
357
|
+
'type': 'greater_than_equal',
|
|
358
|
+
'loc': ('non_negative_int',),
|
|
359
|
+
'msg': 'Input should be greater than or equal to 0',
|
|
360
|
+
'input': -1,
|
|
361
|
+
'ctx': {'ge': 0},
|
|
362
|
+
'url': 'https://errors.pydantic.dev/2/v/greater_than_equal',
|
|
363
|
+
}
|
|
364
|
+
]
|
|
365
|
+
'''
|
|
366
|
+
```
|
|
367
|
+
"""
|
|
368
|
+
StrictInt = Annotated[int, Strict()]
|
|
369
|
+
"""An integer that must be validated in strict mode.
|
|
370
|
+
|
|
371
|
+
```python
|
|
372
|
+
from pydantic import BaseModel, StrictInt, ValidationError
|
|
373
|
+
|
|
374
|
+
class StrictIntModel(BaseModel):
|
|
375
|
+
strict_int: StrictInt
|
|
376
|
+
|
|
377
|
+
try:
|
|
378
|
+
StrictIntModel(strict_int=3.14159)
|
|
379
|
+
except ValidationError as e:
|
|
380
|
+
print(e)
|
|
381
|
+
'''
|
|
382
|
+
1 validation error for StrictIntModel
|
|
383
|
+
strict_int
|
|
384
|
+
Input should be a valid integer [type=int_type, input_value=3.14159, input_type=float]
|
|
385
|
+
'''
|
|
386
|
+
```
|
|
387
|
+
"""
|
|
388
|
+
|
|
389
|
+
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ FLOAT TYPES ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
@_dataclasses.dataclass
|
|
393
|
+
class AllowInfNan(_fields.PydanticMetadata):
|
|
394
|
+
"""A field metadata class to indicate that a field should allow `-inf`, `inf`, and `nan`.
|
|
395
|
+
|
|
396
|
+
Use this class as an annotation via [`Annotated`](https://docs.python.org/3/library/typing.html#typing.Annotated), as seen below.
|
|
397
|
+
|
|
398
|
+
Attributes:
|
|
399
|
+
allow_inf_nan: Whether to allow `-inf`, `inf`, and `nan`. Defaults to `True`.
|
|
400
|
+
|
|
401
|
+
Example:
|
|
402
|
+
```python
|
|
403
|
+
from typing import Annotated
|
|
404
|
+
|
|
405
|
+
from pydantic.types import AllowInfNan
|
|
406
|
+
|
|
407
|
+
LaxFloat = Annotated[float, AllowInfNan()]
|
|
408
|
+
```
|
|
409
|
+
"""
|
|
410
|
+
|
|
411
|
+
allow_inf_nan: bool = True
|
|
412
|
+
|
|
413
|
+
def __hash__(self) -> int:
|
|
414
|
+
return hash(self.allow_inf_nan)
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
def confloat(
|
|
418
|
+
*,
|
|
419
|
+
strict: bool | None = None,
|
|
420
|
+
gt: float | None = None,
|
|
421
|
+
ge: float | None = None,
|
|
422
|
+
lt: float | None = None,
|
|
423
|
+
le: float | None = None,
|
|
424
|
+
multiple_of: float | None = None,
|
|
425
|
+
allow_inf_nan: bool | None = None,
|
|
426
|
+
) -> type[float]:
|
|
427
|
+
"""
|
|
428
|
+
!!! warning "Discouraged"
|
|
429
|
+
This function is **discouraged** in favor of using
|
|
430
|
+
[`Annotated`](https://docs.python.org/3/library/typing.html#typing.Annotated) with
|
|
431
|
+
[`Field`][pydantic.fields.Field] instead.
|
|
432
|
+
|
|
433
|
+
This function will be **deprecated** in Pydantic 3.0.
|
|
434
|
+
|
|
435
|
+
The reason is that `confloat` returns a type, which doesn't play well with static analysis tools.
|
|
436
|
+
|
|
437
|
+
=== ":x: Don't do this"
|
|
438
|
+
```python
|
|
439
|
+
from pydantic import BaseModel, confloat
|
|
440
|
+
|
|
441
|
+
class Foo(BaseModel):
|
|
442
|
+
bar: confloat(strict=True, gt=0)
|
|
443
|
+
```
|
|
444
|
+
|
|
445
|
+
=== ":white_check_mark: Do this"
|
|
446
|
+
```python
|
|
447
|
+
from typing import Annotated
|
|
448
|
+
|
|
449
|
+
from pydantic import BaseModel, Field
|
|
450
|
+
|
|
451
|
+
class Foo(BaseModel):
|
|
452
|
+
bar: Annotated[float, Field(strict=True, gt=0)]
|
|
453
|
+
```
|
|
454
|
+
|
|
455
|
+
A wrapper around `float` that allows for additional constraints.
|
|
456
|
+
|
|
457
|
+
Args:
|
|
458
|
+
strict: Whether to validate the float in strict mode.
|
|
459
|
+
gt: The value must be greater than this.
|
|
460
|
+
ge: The value must be greater than or equal to this.
|
|
461
|
+
lt: The value must be less than this.
|
|
462
|
+
le: The value must be less than or equal to this.
|
|
463
|
+
multiple_of: The value must be a multiple of this.
|
|
464
|
+
allow_inf_nan: Whether to allow `-inf`, `inf`, and `nan`.
|
|
465
|
+
|
|
466
|
+
Returns:
|
|
467
|
+
The wrapped float type.
|
|
468
|
+
|
|
469
|
+
```python
|
|
470
|
+
from pydantic import BaseModel, ValidationError, confloat
|
|
471
|
+
|
|
472
|
+
class ConstrainedExample(BaseModel):
|
|
473
|
+
constrained_float: confloat(gt=1.0)
|
|
474
|
+
|
|
475
|
+
m = ConstrainedExample(constrained_float=1.1)
|
|
476
|
+
print(repr(m))
|
|
477
|
+
#> ConstrainedExample(constrained_float=1.1)
|
|
478
|
+
|
|
479
|
+
try:
|
|
480
|
+
ConstrainedExample(constrained_float=0.9)
|
|
481
|
+
except ValidationError as e:
|
|
482
|
+
print(e.errors())
|
|
483
|
+
'''
|
|
484
|
+
[
|
|
485
|
+
{
|
|
486
|
+
'type': 'greater_than',
|
|
487
|
+
'loc': ('constrained_float',),
|
|
488
|
+
'msg': 'Input should be greater than 1',
|
|
489
|
+
'input': 0.9,
|
|
490
|
+
'ctx': {'gt': 1.0},
|
|
491
|
+
'url': 'https://errors.pydantic.dev/2/v/greater_than',
|
|
492
|
+
}
|
|
493
|
+
]
|
|
494
|
+
'''
|
|
495
|
+
```
|
|
496
|
+
""" # noqa: D212
|
|
497
|
+
return Annotated[ # pyright: ignore[reportReturnType]
|
|
498
|
+
float,
|
|
499
|
+
Strict(strict) if strict is not None else None,
|
|
500
|
+
annotated_types.Interval(gt=gt, ge=ge, lt=lt, le=le),
|
|
501
|
+
annotated_types.MultipleOf(multiple_of) if multiple_of is not None else None,
|
|
502
|
+
AllowInfNan(allow_inf_nan) if allow_inf_nan is not None else None,
|
|
503
|
+
]
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
PositiveFloat = Annotated[float, annotated_types.Gt(0)]
|
|
507
|
+
"""A float that must be greater than zero.
|
|
508
|
+
|
|
509
|
+
```python
|
|
510
|
+
from pydantic import BaseModel, PositiveFloat, ValidationError
|
|
511
|
+
|
|
512
|
+
class Model(BaseModel):
|
|
513
|
+
positive_float: PositiveFloat
|
|
514
|
+
|
|
515
|
+
m = Model(positive_float=1.0)
|
|
516
|
+
print(repr(m))
|
|
517
|
+
#> Model(positive_float=1.0)
|
|
518
|
+
|
|
519
|
+
try:
|
|
520
|
+
Model(positive_float=-1.0)
|
|
521
|
+
except ValidationError as e:
|
|
522
|
+
print(e.errors())
|
|
523
|
+
'''
|
|
524
|
+
[
|
|
525
|
+
{
|
|
526
|
+
'type': 'greater_than',
|
|
527
|
+
'loc': ('positive_float',),
|
|
528
|
+
'msg': 'Input should be greater than 0',
|
|
529
|
+
'input': -1.0,
|
|
530
|
+
'ctx': {'gt': 0.0},
|
|
531
|
+
'url': 'https://errors.pydantic.dev/2/v/greater_than',
|
|
532
|
+
}
|
|
533
|
+
]
|
|
534
|
+
'''
|
|
535
|
+
```
|
|
536
|
+
"""
|
|
537
|
+
NegativeFloat = Annotated[float, annotated_types.Lt(0)]
|
|
538
|
+
"""A float that must be less than zero.
|
|
539
|
+
|
|
540
|
+
```python
|
|
541
|
+
from pydantic import BaseModel, NegativeFloat, ValidationError
|
|
542
|
+
|
|
543
|
+
class Model(BaseModel):
|
|
544
|
+
negative_float: NegativeFloat
|
|
545
|
+
|
|
546
|
+
m = Model(negative_float=-1.0)
|
|
547
|
+
print(repr(m))
|
|
548
|
+
#> Model(negative_float=-1.0)
|
|
549
|
+
|
|
550
|
+
try:
|
|
551
|
+
Model(negative_float=1.0)
|
|
552
|
+
except ValidationError as e:
|
|
553
|
+
print(e.errors())
|
|
554
|
+
'''
|
|
555
|
+
[
|
|
556
|
+
{
|
|
557
|
+
'type': 'less_than',
|
|
558
|
+
'loc': ('negative_float',),
|
|
559
|
+
'msg': 'Input should be less than 0',
|
|
560
|
+
'input': 1.0,
|
|
561
|
+
'ctx': {'lt': 0.0},
|
|
562
|
+
'url': 'https://errors.pydantic.dev/2/v/less_than',
|
|
563
|
+
}
|
|
564
|
+
]
|
|
565
|
+
'''
|
|
566
|
+
```
|
|
567
|
+
"""
|
|
568
|
+
NonPositiveFloat = Annotated[float, annotated_types.Le(0)]
|
|
569
|
+
"""A float that must be less than or equal to zero.
|
|
570
|
+
|
|
571
|
+
```python
|
|
572
|
+
from pydantic import BaseModel, NonPositiveFloat, ValidationError
|
|
573
|
+
|
|
574
|
+
class Model(BaseModel):
|
|
575
|
+
non_positive_float: NonPositiveFloat
|
|
576
|
+
|
|
577
|
+
m = Model(non_positive_float=0.0)
|
|
578
|
+
print(repr(m))
|
|
579
|
+
#> Model(non_positive_float=0.0)
|
|
580
|
+
|
|
581
|
+
try:
|
|
582
|
+
Model(non_positive_float=1.0)
|
|
583
|
+
except ValidationError as e:
|
|
584
|
+
print(e.errors())
|
|
585
|
+
'''
|
|
586
|
+
[
|
|
587
|
+
{
|
|
588
|
+
'type': 'less_than_equal',
|
|
589
|
+
'loc': ('non_positive_float',),
|
|
590
|
+
'msg': 'Input should be less than or equal to 0',
|
|
591
|
+
'input': 1.0,
|
|
592
|
+
'ctx': {'le': 0.0},
|
|
593
|
+
'url': 'https://errors.pydantic.dev/2/v/less_than_equal',
|
|
594
|
+
}
|
|
595
|
+
]
|
|
596
|
+
'''
|
|
597
|
+
```
|
|
598
|
+
"""
|
|
599
|
+
NonNegativeFloat = Annotated[float, annotated_types.Ge(0)]
|
|
600
|
+
"""A float that must be greater than or equal to zero.
|
|
601
|
+
|
|
602
|
+
```python
|
|
603
|
+
from pydantic import BaseModel, NonNegativeFloat, ValidationError
|
|
604
|
+
|
|
605
|
+
class Model(BaseModel):
|
|
606
|
+
non_negative_float: NonNegativeFloat
|
|
607
|
+
|
|
608
|
+
m = Model(non_negative_float=0.0)
|
|
609
|
+
print(repr(m))
|
|
610
|
+
#> Model(non_negative_float=0.0)
|
|
611
|
+
|
|
612
|
+
try:
|
|
613
|
+
Model(non_negative_float=-1.0)
|
|
614
|
+
except ValidationError as e:
|
|
615
|
+
print(e.errors())
|
|
616
|
+
'''
|
|
617
|
+
[
|
|
618
|
+
{
|
|
619
|
+
'type': 'greater_than_equal',
|
|
620
|
+
'loc': ('non_negative_float',),
|
|
621
|
+
'msg': 'Input should be greater than or equal to 0',
|
|
622
|
+
'input': -1.0,
|
|
623
|
+
'ctx': {'ge': 0.0},
|
|
624
|
+
'url': 'https://errors.pydantic.dev/2/v/greater_than_equal',
|
|
625
|
+
}
|
|
626
|
+
]
|
|
627
|
+
'''
|
|
628
|
+
```
|
|
629
|
+
"""
|
|
630
|
+
StrictFloat = Annotated[float, Strict(True)]
|
|
631
|
+
"""A float that must be validated in strict mode.
|
|
632
|
+
|
|
633
|
+
```python
|
|
634
|
+
from pydantic import BaseModel, StrictFloat, ValidationError
|
|
635
|
+
|
|
636
|
+
class StrictFloatModel(BaseModel):
|
|
637
|
+
strict_float: StrictFloat
|
|
638
|
+
|
|
639
|
+
try:
|
|
640
|
+
StrictFloatModel(strict_float='1.0')
|
|
641
|
+
except ValidationError as e:
|
|
642
|
+
print(e)
|
|
643
|
+
'''
|
|
644
|
+
1 validation error for StrictFloatModel
|
|
645
|
+
strict_float
|
|
646
|
+
Input should be a valid number [type=float_type, input_value='1.0', input_type=str]
|
|
647
|
+
'''
|
|
648
|
+
```
|
|
649
|
+
"""
|
|
650
|
+
FiniteFloat = Annotated[float, AllowInfNan(False)]
|
|
651
|
+
"""A float that must be finite (not ``-inf``, ``inf``, or ``nan``).
|
|
652
|
+
|
|
653
|
+
```python
|
|
654
|
+
from pydantic import BaseModel, FiniteFloat
|
|
655
|
+
|
|
656
|
+
class Model(BaseModel):
|
|
657
|
+
finite: FiniteFloat
|
|
658
|
+
|
|
659
|
+
m = Model(finite=1.0)
|
|
660
|
+
print(m)
|
|
661
|
+
#> finite=1.0
|
|
662
|
+
```
|
|
663
|
+
"""
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BYTES TYPES ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
def conbytes(
|
|
670
|
+
*,
|
|
671
|
+
min_length: int | None = None,
|
|
672
|
+
max_length: int | None = None,
|
|
673
|
+
strict: bool | None = None,
|
|
674
|
+
) -> type[bytes]:
|
|
675
|
+
"""A wrapper around `bytes` that allows for additional constraints.
|
|
676
|
+
|
|
677
|
+
Args:
|
|
678
|
+
min_length: The minimum length of the bytes.
|
|
679
|
+
max_length: The maximum length of the bytes.
|
|
680
|
+
strict: Whether to validate the bytes in strict mode.
|
|
681
|
+
|
|
682
|
+
Returns:
|
|
683
|
+
The wrapped bytes type.
|
|
684
|
+
"""
|
|
685
|
+
return Annotated[ # pyright: ignore[reportReturnType]
|
|
686
|
+
bytes,
|
|
687
|
+
Strict(strict) if strict is not None else None,
|
|
688
|
+
annotated_types.Len(min_length or 0, max_length),
|
|
689
|
+
]
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
StrictBytes = Annotated[bytes, Strict()]
|
|
693
|
+
"""A bytes that must be validated in strict mode."""
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ STRING TYPES ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
@_dataclasses.dataclass(frozen=True)
|
|
700
|
+
class StringConstraints(annotated_types.GroupedMetadata):
|
|
701
|
+
"""!!! abstract "Usage Documentation"
|
|
702
|
+
[String types](./standard_library_types.md#strings)
|
|
703
|
+
|
|
704
|
+
A field metadata class to apply constraints to `str` types.
|
|
705
|
+
Use this class as an annotation via [`Annotated`](https://docs.python.org/3/library/typing.html#typing.Annotated), as seen below.
|
|
706
|
+
|
|
707
|
+
Attributes:
|
|
708
|
+
strip_whitespace: Whether to remove leading and trailing whitespace.
|
|
709
|
+
to_upper: Whether to convert the string to uppercase.
|
|
710
|
+
to_lower: Whether to convert the string to lowercase.
|
|
711
|
+
strict: Whether to validate the string in strict mode.
|
|
712
|
+
min_length: The minimum length of the string.
|
|
713
|
+
max_length: The maximum length of the string.
|
|
714
|
+
pattern: A regex pattern that the string must match.
|
|
715
|
+
ascii_only: Whether the string should contain only ASCII characters.
|
|
716
|
+
|
|
717
|
+
Example:
|
|
718
|
+
```python
|
|
719
|
+
from typing import Annotated
|
|
720
|
+
|
|
721
|
+
from pydantic.types import StringConstraints
|
|
722
|
+
|
|
723
|
+
ConstrainedStr = Annotated[str, StringConstraints(min_length=1, max_length=10)]
|
|
724
|
+
```
|
|
725
|
+
"""
|
|
726
|
+
|
|
727
|
+
strip_whitespace: bool | None = None
|
|
728
|
+
to_upper: bool | None = None
|
|
729
|
+
to_lower: bool | None = None
|
|
730
|
+
strict: bool | None = None
|
|
731
|
+
min_length: int | None = None
|
|
732
|
+
max_length: int | None = None
|
|
733
|
+
pattern: str | Pattern[str] | None = None
|
|
734
|
+
ascii_only: bool | None = None
|
|
735
|
+
|
|
736
|
+
def __iter__(self) -> Iterator[BaseMetadata]:
|
|
737
|
+
if self.min_length is not None:
|
|
738
|
+
yield MinLen(self.min_length)
|
|
739
|
+
if self.max_length is not None:
|
|
740
|
+
yield MaxLen(self.max_length)
|
|
741
|
+
if self.strict is not None:
|
|
742
|
+
yield Strict(self.strict)
|
|
743
|
+
if (
|
|
744
|
+
self.strip_whitespace is not None
|
|
745
|
+
or self.pattern is not None
|
|
746
|
+
or self.to_lower is not None
|
|
747
|
+
or self.to_upper is not None
|
|
748
|
+
or self.ascii_only is not None
|
|
749
|
+
):
|
|
750
|
+
yield _fields.pydantic_general_metadata(
|
|
751
|
+
strip_whitespace=self.strip_whitespace,
|
|
752
|
+
to_upper=self.to_upper,
|
|
753
|
+
to_lower=self.to_lower,
|
|
754
|
+
pattern=self.pattern,
|
|
755
|
+
ascii_only=self.ascii_only,
|
|
756
|
+
)
|
|
757
|
+
|
|
758
|
+
|
|
759
|
+
def constr(
|
|
760
|
+
*,
|
|
761
|
+
strip_whitespace: bool | None = None,
|
|
762
|
+
to_upper: bool | None = None,
|
|
763
|
+
to_lower: bool | None = None,
|
|
764
|
+
strict: bool | None = None,
|
|
765
|
+
min_length: int | None = None,
|
|
766
|
+
max_length: int | None = None,
|
|
767
|
+
pattern: str | Pattern[str] | None = None,
|
|
768
|
+
ascii_only: bool | None = None,
|
|
769
|
+
) -> type[str]:
|
|
770
|
+
"""
|
|
771
|
+
!!! warning "Discouraged"
|
|
772
|
+
This function is **discouraged** in favor of using
|
|
773
|
+
[`Annotated`](https://docs.python.org/3/library/typing.html#typing.Annotated) with
|
|
774
|
+
[`StringConstraints`][pydantic.types.StringConstraints] instead.
|
|
775
|
+
|
|
776
|
+
This function will be **deprecated** in Pydantic 3.0.
|
|
777
|
+
|
|
778
|
+
The reason is that `constr` returns a type, which doesn't play well with static analysis tools.
|
|
779
|
+
|
|
780
|
+
=== ":x: Don't do this"
|
|
781
|
+
```python
|
|
782
|
+
from pydantic import BaseModel, constr
|
|
783
|
+
|
|
784
|
+
class Foo(BaseModel):
|
|
785
|
+
bar: constr(strip_whitespace=True, to_upper=True, pattern=r'^[A-Z]+$')
|
|
786
|
+
```
|
|
787
|
+
|
|
788
|
+
=== ":white_check_mark: Do this"
|
|
789
|
+
```python
|
|
790
|
+
from typing import Annotated
|
|
791
|
+
|
|
792
|
+
from pydantic import BaseModel, StringConstraints
|
|
793
|
+
|
|
794
|
+
class Foo(BaseModel):
|
|
795
|
+
bar: Annotated[
|
|
796
|
+
str,
|
|
797
|
+
StringConstraints(
|
|
798
|
+
strip_whitespace=True, to_upper=True, pattern=r'^[A-Z]+$'
|
|
799
|
+
),
|
|
800
|
+
]
|
|
801
|
+
```
|
|
802
|
+
|
|
803
|
+
A wrapper around `str` that allows for additional constraints.
|
|
804
|
+
|
|
805
|
+
```python
|
|
806
|
+
from pydantic import BaseModel, constr
|
|
807
|
+
|
|
808
|
+
class Foo(BaseModel):
|
|
809
|
+
bar: constr(strip_whitespace=True, to_upper=True)
|
|
810
|
+
|
|
811
|
+
foo = Foo(bar=' hello ')
|
|
812
|
+
print(foo)
|
|
813
|
+
#> bar='HELLO'
|
|
814
|
+
```
|
|
815
|
+
|
|
816
|
+
Args:
|
|
817
|
+
strip_whitespace: Whether to remove leading and trailing whitespace.
|
|
818
|
+
to_upper: Whether to turn all characters to uppercase.
|
|
819
|
+
to_lower: Whether to turn all characters to lowercase.
|
|
820
|
+
strict: Whether to validate the string in strict mode.
|
|
821
|
+
min_length: The minimum length of the string.
|
|
822
|
+
max_length: The maximum length of the string.
|
|
823
|
+
pattern: A regex pattern to validate the string against.
|
|
824
|
+
ascii_only: Whether the string should contain only ASCII characters.
|
|
825
|
+
|
|
826
|
+
Returns:
|
|
827
|
+
The wrapped string type.
|
|
828
|
+
""" # noqa: D212
|
|
829
|
+
return Annotated[ # pyright: ignore[reportReturnType]
|
|
830
|
+
str,
|
|
831
|
+
StringConstraints(
|
|
832
|
+
strip_whitespace=strip_whitespace,
|
|
833
|
+
to_upper=to_upper,
|
|
834
|
+
to_lower=to_lower,
|
|
835
|
+
strict=strict,
|
|
836
|
+
min_length=min_length,
|
|
837
|
+
max_length=max_length,
|
|
838
|
+
pattern=pattern,
|
|
839
|
+
ascii_only=ascii_only,
|
|
840
|
+
),
|
|
841
|
+
]
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
StrictStr = Annotated[str, Strict()]
|
|
845
|
+
"""A string that must be validated in strict mode."""
|
|
846
|
+
|
|
847
|
+
|
|
848
|
+
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~ COLLECTION TYPES ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
849
|
+
HashableItemType = TypeVar('HashableItemType', bound=Hashable)
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
def conset(
|
|
853
|
+
item_type: type[HashableItemType], *, min_length: int | None = None, max_length: int | None = None
|
|
854
|
+
) -> type[set[HashableItemType]]:
|
|
855
|
+
"""A wrapper around `typing.Set` that allows for additional constraints.
|
|
856
|
+
|
|
857
|
+
Args:
|
|
858
|
+
item_type: The type of the items in the set.
|
|
859
|
+
min_length: The minimum length of the set.
|
|
860
|
+
max_length: The maximum length of the set.
|
|
861
|
+
|
|
862
|
+
Returns:
|
|
863
|
+
The wrapped set type.
|
|
864
|
+
"""
|
|
865
|
+
return Annotated[set[item_type], annotated_types.Len(min_length or 0, max_length)] # pyright: ignore[reportReturnType]
|
|
866
|
+
|
|
867
|
+
|
|
868
|
+
def confrozenset(
|
|
869
|
+
item_type: type[HashableItemType], *, min_length: int | None = None, max_length: int | None = None
|
|
870
|
+
) -> type[frozenset[HashableItemType]]:
|
|
871
|
+
"""A wrapper around `typing.FrozenSet` that allows for additional constraints.
|
|
872
|
+
|
|
873
|
+
Args:
|
|
874
|
+
item_type: The type of the items in the frozenset.
|
|
875
|
+
min_length: The minimum length of the frozenset.
|
|
876
|
+
max_length: The maximum length of the frozenset.
|
|
877
|
+
|
|
878
|
+
Returns:
|
|
879
|
+
The wrapped frozenset type.
|
|
880
|
+
"""
|
|
881
|
+
return Annotated[frozenset[item_type], annotated_types.Len(min_length or 0, max_length)] # pyright: ignore[reportReturnType]
|
|
882
|
+
|
|
883
|
+
|
|
884
|
+
AnyItemType = TypeVar('AnyItemType')
|
|
885
|
+
|
|
886
|
+
|
|
887
|
+
def conlist(
|
|
888
|
+
item_type: type[AnyItemType],
|
|
889
|
+
*,
|
|
890
|
+
min_length: int | None = None,
|
|
891
|
+
max_length: int | None = None,
|
|
892
|
+
unique_items: bool | None = None,
|
|
893
|
+
) -> type[list[AnyItemType]]:
|
|
894
|
+
"""A wrapper around [`list`][] that adds validation.
|
|
895
|
+
|
|
896
|
+
Args:
|
|
897
|
+
item_type: The type of the items in the list.
|
|
898
|
+
min_length: The minimum length of the list. Defaults to None.
|
|
899
|
+
max_length: The maximum length of the list. Defaults to None.
|
|
900
|
+
unique_items: Whether the items in the list must be unique. Defaults to None.
|
|
901
|
+
!!! warning Deprecated
|
|
902
|
+
The `unique_items` parameter is deprecated, use `Set` instead.
|
|
903
|
+
See [this issue](https://github.com/pydantic/pydantic-core/issues/296) for more details.
|
|
904
|
+
|
|
905
|
+
Returns:
|
|
906
|
+
The wrapped list type.
|
|
907
|
+
"""
|
|
908
|
+
if unique_items is not None:
|
|
909
|
+
raise PydanticUserError(
|
|
910
|
+
(
|
|
911
|
+
'`unique_items` is removed, use `Set` instead'
|
|
912
|
+
'(this feature is discussed in https://github.com/pydantic/pydantic-core/issues/296)'
|
|
913
|
+
),
|
|
914
|
+
code='removed-kwargs',
|
|
915
|
+
)
|
|
916
|
+
return Annotated[list[item_type], annotated_types.Len(min_length or 0, max_length)] # pyright: ignore[reportReturnType]
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
# ~~~~~~~~~~~~~~~~~~~~~~~~~~ IMPORT STRING TYPE ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
920
|
+
|
|
921
|
+
AnyType = TypeVar('AnyType')
|
|
922
|
+
if TYPE_CHECKING:
|
|
923
|
+
ImportString = Annotated[AnyType, ...]
|
|
924
|
+
else:
|
|
925
|
+
|
|
926
|
+
class ImportString:
|
|
927
|
+
"""A type that can be used to import a Python object from a string.
|
|
928
|
+
|
|
929
|
+
`ImportString` expects a string and loads the Python object importable at that dotted path.
|
|
930
|
+
Attributes of modules may be separated from the module by `:` or `.`, e.g. if `'math:cos'` is provided,
|
|
931
|
+
the resulting field value would be the function `cos`. If a `.` is used and both an attribute and submodule
|
|
932
|
+
are present at the same path, the module will be preferred.
|
|
933
|
+
|
|
934
|
+
On model instantiation, pointers will be evaluated and imported. There is
|
|
935
|
+
some nuance to this behavior, demonstrated in the examples below.
|
|
936
|
+
|
|
937
|
+
```python
|
|
938
|
+
import math
|
|
939
|
+
|
|
940
|
+
from pydantic import BaseModel, Field, ImportString, ValidationError
|
|
941
|
+
|
|
942
|
+
class ImportThings(BaseModel):
|
|
943
|
+
obj: ImportString
|
|
944
|
+
|
|
945
|
+
# A string value will cause an automatic import
|
|
946
|
+
my_cos = ImportThings(obj='math.cos')
|
|
947
|
+
|
|
948
|
+
# You can use the imported function as you would expect
|
|
949
|
+
cos_of_0 = my_cos.obj(0)
|
|
950
|
+
assert cos_of_0 == 1
|
|
951
|
+
|
|
952
|
+
# A string whose value cannot be imported will raise an error
|
|
953
|
+
try:
|
|
954
|
+
ImportThings(obj='foo.bar')
|
|
955
|
+
except ValidationError as e:
|
|
956
|
+
print(e)
|
|
957
|
+
'''
|
|
958
|
+
1 validation error for ImportThings
|
|
959
|
+
obj
|
|
960
|
+
Invalid python path: No module named 'foo' [type=import_error, input_value='foo.bar', input_type=str]
|
|
961
|
+
'''
|
|
962
|
+
|
|
963
|
+
# Actual python objects can be assigned as well
|
|
964
|
+
my_cos = ImportThings(obj=math.cos)
|
|
965
|
+
my_cos_2 = ImportThings(obj='math.cos')
|
|
966
|
+
my_cos_3 = ImportThings(obj='math:cos')
|
|
967
|
+
assert my_cos == my_cos_2 == my_cos_3
|
|
968
|
+
|
|
969
|
+
# You can set default field value either as Python object:
|
|
970
|
+
class ImportThingsDefaultPyObj(BaseModel):
|
|
971
|
+
obj: ImportString = math.cos
|
|
972
|
+
|
|
973
|
+
# or as a string value (but only if used with `validate_default=True`)
|
|
974
|
+
class ImportThingsDefaultString(BaseModel):
|
|
975
|
+
obj: ImportString = Field(default='math.cos', validate_default=True)
|
|
976
|
+
|
|
977
|
+
my_cos_default1 = ImportThingsDefaultPyObj()
|
|
978
|
+
my_cos_default2 = ImportThingsDefaultString()
|
|
979
|
+
assert my_cos_default1.obj == my_cos_default2.obj == math.cos
|
|
980
|
+
|
|
981
|
+
# note: this will not work!
|
|
982
|
+
class ImportThingsMissingValidateDefault(BaseModel):
|
|
983
|
+
obj: ImportString = 'math.cos'
|
|
984
|
+
|
|
985
|
+
my_cos_default3 = ImportThingsMissingValidateDefault()
|
|
986
|
+
assert my_cos_default3.obj == 'math.cos' # just string, not evaluated
|
|
987
|
+
```
|
|
988
|
+
|
|
989
|
+
Serializing an `ImportString` type to json is also possible.
|
|
990
|
+
|
|
991
|
+
```python
|
|
992
|
+
from pydantic import BaseModel, ImportString
|
|
993
|
+
|
|
994
|
+
class ImportThings(BaseModel):
|
|
995
|
+
obj: ImportString
|
|
996
|
+
|
|
997
|
+
# Create an instance
|
|
998
|
+
m = ImportThings(obj='math.cos')
|
|
999
|
+
print(m)
|
|
1000
|
+
#> obj=<built-in function cos>
|
|
1001
|
+
print(m.model_dump_json())
|
|
1002
|
+
#> {"obj":"math.cos"}
|
|
1003
|
+
```
|
|
1004
|
+
"""
|
|
1005
|
+
|
|
1006
|
+
@classmethod
|
|
1007
|
+
def __class_getitem__(cls, item: AnyType) -> AnyType:
|
|
1008
|
+
return Annotated[item, cls()]
|
|
1009
|
+
|
|
1010
|
+
@classmethod
|
|
1011
|
+
def __get_pydantic_core_schema__(
|
|
1012
|
+
cls, source: type[Any], handler: GetCoreSchemaHandler
|
|
1013
|
+
) -> core_schema.CoreSchema:
|
|
1014
|
+
serializer = core_schema.plain_serializer_function_ser_schema(cls._serialize, when_used='json')
|
|
1015
|
+
if cls is source:
|
|
1016
|
+
# Treat bare usage of ImportString (`schema is None`) as the same as ImportString[Any]
|
|
1017
|
+
return core_schema.no_info_plain_validator_function(
|
|
1018
|
+
function=_validators.import_string, serialization=serializer
|
|
1019
|
+
)
|
|
1020
|
+
else:
|
|
1021
|
+
return core_schema.no_info_before_validator_function(
|
|
1022
|
+
function=_validators.import_string, schema=handler(source), serialization=serializer
|
|
1023
|
+
)
|
|
1024
|
+
|
|
1025
|
+
@classmethod
|
|
1026
|
+
def __get_pydantic_json_schema__(cls, cs: CoreSchema, handler: GetJsonSchemaHandler) -> JsonSchemaValue:
|
|
1027
|
+
return handler(core_schema.str_schema())
|
|
1028
|
+
|
|
1029
|
+
@staticmethod
|
|
1030
|
+
def _serialize(v: Any) -> str:
|
|
1031
|
+
if isinstance(v, ModuleType):
|
|
1032
|
+
return v.__name__
|
|
1033
|
+
elif hasattr(v, '__module__') and hasattr(v, '__name__'):
|
|
1034
|
+
return f'{v.__module__}.{v.__name__}'
|
|
1035
|
+
# Handle special cases for sys.XXX streams
|
|
1036
|
+
# if we see more of these, we should consider a more general solution
|
|
1037
|
+
elif hasattr(v, 'name'):
|
|
1038
|
+
if v.name == '<stdout>':
|
|
1039
|
+
return 'sys.stdout'
|
|
1040
|
+
elif v.name == '<stdin>':
|
|
1041
|
+
return 'sys.stdin'
|
|
1042
|
+
elif v.name == '<stderr>':
|
|
1043
|
+
return 'sys.stderr'
|
|
1044
|
+
return v
|
|
1045
|
+
|
|
1046
|
+
def __repr__(self) -> str:
|
|
1047
|
+
return 'ImportString'
|
|
1048
|
+
|
|
1049
|
+
|
|
1050
|
+
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DECIMAL TYPES ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
1051
|
+
|
|
1052
|
+
|
|
1053
|
+
def condecimal(
|
|
1054
|
+
*,
|
|
1055
|
+
strict: bool | None = None,
|
|
1056
|
+
gt: int | Decimal | None = None,
|
|
1057
|
+
ge: int | Decimal | None = None,
|
|
1058
|
+
lt: int | Decimal | None = None,
|
|
1059
|
+
le: int | Decimal | None = None,
|
|
1060
|
+
multiple_of: int | Decimal | None = None,
|
|
1061
|
+
max_digits: int | None = None,
|
|
1062
|
+
decimal_places: int | None = None,
|
|
1063
|
+
allow_inf_nan: bool | None = None,
|
|
1064
|
+
) -> type[Decimal]:
|
|
1065
|
+
"""
|
|
1066
|
+
!!! warning "Discouraged"
|
|
1067
|
+
This function is **discouraged** in favor of using
|
|
1068
|
+
[`Annotated`](https://docs.python.org/3/library/typing.html#typing.Annotated) with
|
|
1069
|
+
[`Field`][pydantic.fields.Field] instead.
|
|
1070
|
+
|
|
1071
|
+
This function will be **deprecated** in Pydantic 3.0.
|
|
1072
|
+
|
|
1073
|
+
The reason is that `condecimal` returns a type, which doesn't play well with static analysis tools.
|
|
1074
|
+
|
|
1075
|
+
=== ":x: Don't do this"
|
|
1076
|
+
```python
|
|
1077
|
+
from pydantic import BaseModel, condecimal
|
|
1078
|
+
|
|
1079
|
+
class Foo(BaseModel):
|
|
1080
|
+
bar: condecimal(strict=True, allow_inf_nan=True)
|
|
1081
|
+
```
|
|
1082
|
+
|
|
1083
|
+
=== ":white_check_mark: Do this"
|
|
1084
|
+
```python
|
|
1085
|
+
from decimal import Decimal
|
|
1086
|
+
from typing import Annotated
|
|
1087
|
+
|
|
1088
|
+
from pydantic import BaseModel, Field
|
|
1089
|
+
|
|
1090
|
+
class Foo(BaseModel):
|
|
1091
|
+
bar: Annotated[Decimal, Field(strict=True, allow_inf_nan=True)]
|
|
1092
|
+
```
|
|
1093
|
+
|
|
1094
|
+
A wrapper around Decimal that adds validation.
|
|
1095
|
+
|
|
1096
|
+
Args:
|
|
1097
|
+
strict: Whether to validate the value in strict mode. Defaults to `None`.
|
|
1098
|
+
gt: The value must be greater than this. Defaults to `None`.
|
|
1099
|
+
ge: The value must be greater than or equal to this. Defaults to `None`.
|
|
1100
|
+
lt: The value must be less than this. Defaults to `None`.
|
|
1101
|
+
le: The value must be less than or equal to this. Defaults to `None`.
|
|
1102
|
+
multiple_of: The value must be a multiple of this. Defaults to `None`.
|
|
1103
|
+
max_digits: The maximum number of digits. Defaults to `None`.
|
|
1104
|
+
decimal_places: The number of decimal places. Defaults to `None`.
|
|
1105
|
+
allow_inf_nan: Whether to allow infinity and NaN. Defaults to `None`.
|
|
1106
|
+
|
|
1107
|
+
```python
|
|
1108
|
+
from decimal import Decimal
|
|
1109
|
+
|
|
1110
|
+
from pydantic import BaseModel, ValidationError, condecimal
|
|
1111
|
+
|
|
1112
|
+
class ConstrainedExample(BaseModel):
|
|
1113
|
+
constrained_decimal: condecimal(gt=Decimal('1.0'))
|
|
1114
|
+
|
|
1115
|
+
m = ConstrainedExample(constrained_decimal=Decimal('1.1'))
|
|
1116
|
+
print(repr(m))
|
|
1117
|
+
#> ConstrainedExample(constrained_decimal=Decimal('1.1'))
|
|
1118
|
+
|
|
1119
|
+
try:
|
|
1120
|
+
ConstrainedExample(constrained_decimal=Decimal('0.9'))
|
|
1121
|
+
except ValidationError as e:
|
|
1122
|
+
print(e.errors())
|
|
1123
|
+
'''
|
|
1124
|
+
[
|
|
1125
|
+
{
|
|
1126
|
+
'type': 'greater_than',
|
|
1127
|
+
'loc': ('constrained_decimal',),
|
|
1128
|
+
'msg': 'Input should be greater than 1.0',
|
|
1129
|
+
'input': Decimal('0.9'),
|
|
1130
|
+
'ctx': {'gt': Decimal('1.0')},
|
|
1131
|
+
'url': 'https://errors.pydantic.dev/2/v/greater_than',
|
|
1132
|
+
}
|
|
1133
|
+
]
|
|
1134
|
+
'''
|
|
1135
|
+
```
|
|
1136
|
+
""" # noqa: D212
|
|
1137
|
+
return Annotated[ # pyright: ignore[reportReturnType]
|
|
1138
|
+
Decimal,
|
|
1139
|
+
Strict(strict) if strict is not None else None,
|
|
1140
|
+
annotated_types.Interval(gt=gt, ge=ge, lt=lt, le=le),
|
|
1141
|
+
annotated_types.MultipleOf(multiple_of) if multiple_of is not None else None,
|
|
1142
|
+
_fields.pydantic_general_metadata(max_digits=max_digits, decimal_places=decimal_places),
|
|
1143
|
+
AllowInfNan(allow_inf_nan) if allow_inf_nan is not None else None,
|
|
1144
|
+
]
|
|
1145
|
+
|
|
1146
|
+
|
|
1147
|
+
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ UUID TYPES ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
1148
|
+
|
|
1149
|
+
|
|
1150
|
+
@_dataclasses.dataclass(slots=True)
|
|
1151
|
+
class UuidVersion:
|
|
1152
|
+
"""A field metadata class to indicate a [UUID](https://docs.python.org/3/library/uuid.html) version.
|
|
1153
|
+
|
|
1154
|
+
Use this class as an annotation via [`Annotated`](https://docs.python.org/3/library/typing.html#typing.Annotated), as seen below.
|
|
1155
|
+
|
|
1156
|
+
Attributes:
|
|
1157
|
+
uuid_version: The version of the UUID. Must be one of 1, 3, 4, 5, 6, 7 or 8.
|
|
1158
|
+
|
|
1159
|
+
Example:
|
|
1160
|
+
```python
|
|
1161
|
+
from typing import Annotated
|
|
1162
|
+
from uuid import UUID
|
|
1163
|
+
|
|
1164
|
+
from pydantic.types import UuidVersion
|
|
1165
|
+
|
|
1166
|
+
UUID1 = Annotated[UUID, UuidVersion(1)]
|
|
1167
|
+
```
|
|
1168
|
+
"""
|
|
1169
|
+
|
|
1170
|
+
uuid_version: Literal[1, 3, 4, 5, 6, 7, 8]
|
|
1171
|
+
|
|
1172
|
+
def __get_pydantic_json_schema__(
|
|
1173
|
+
self, core_schema: core_schema.CoreSchema, handler: GetJsonSchemaHandler
|
|
1174
|
+
) -> JsonSchemaValue:
|
|
1175
|
+
field_schema = handler(core_schema)
|
|
1176
|
+
field_schema.pop('anyOf', None) # remove the bytes/str union
|
|
1177
|
+
field_schema.update(type='string', format=f'uuid{self.uuid_version}')
|
|
1178
|
+
return field_schema
|
|
1179
|
+
|
|
1180
|
+
def __get_pydantic_core_schema__(self, source: Any, handler: GetCoreSchemaHandler) -> core_schema.CoreSchema:
|
|
1181
|
+
schema = handler(source)
|
|
1182
|
+
_check_annotated_type(schema['type'], 'uuid', self.__class__.__name__)
|
|
1183
|
+
schema['version'] = self.uuid_version # type: ignore
|
|
1184
|
+
return schema
|
|
1185
|
+
|
|
1186
|
+
def __hash__(self) -> int:
|
|
1187
|
+
return hash(self.uuid_version)
|
|
1188
|
+
|
|
1189
|
+
|
|
1190
|
+
UUID1 = Annotated[UUID, UuidVersion(1)]
|
|
1191
|
+
"""A [UUID](https://docs.python.org/3/library/uuid.html) that must be version 1.
|
|
1192
|
+
|
|
1193
|
+
```python
|
|
1194
|
+
import uuid
|
|
1195
|
+
|
|
1196
|
+
from pydantic import UUID1, BaseModel
|
|
1197
|
+
|
|
1198
|
+
class Model(BaseModel):
|
|
1199
|
+
uuid1: UUID1
|
|
1200
|
+
|
|
1201
|
+
Model(uuid1=uuid.uuid1())
|
|
1202
|
+
```
|
|
1203
|
+
"""
|
|
1204
|
+
UUID3 = Annotated[UUID, UuidVersion(3)]
|
|
1205
|
+
"""A [UUID](https://docs.python.org/3/library/uuid.html) that must be version 3.
|
|
1206
|
+
|
|
1207
|
+
```python
|
|
1208
|
+
import uuid
|
|
1209
|
+
|
|
1210
|
+
from pydantic import UUID3, BaseModel
|
|
1211
|
+
|
|
1212
|
+
class Model(BaseModel):
|
|
1213
|
+
uuid3: UUID3
|
|
1214
|
+
|
|
1215
|
+
Model(uuid3=uuid.uuid3(uuid.NAMESPACE_DNS, 'pydantic.org'))
|
|
1216
|
+
```
|
|
1217
|
+
"""
|
|
1218
|
+
UUID4 = Annotated[UUID, UuidVersion(4)]
|
|
1219
|
+
"""A [UUID](https://docs.python.org/3/library/uuid.html) that must be version 4.
|
|
1220
|
+
|
|
1221
|
+
```python
|
|
1222
|
+
import uuid
|
|
1223
|
+
|
|
1224
|
+
from pydantic import UUID4, BaseModel
|
|
1225
|
+
|
|
1226
|
+
class Model(BaseModel):
|
|
1227
|
+
uuid4: UUID4
|
|
1228
|
+
|
|
1229
|
+
Model(uuid4=uuid.uuid4())
|
|
1230
|
+
```
|
|
1231
|
+
"""
|
|
1232
|
+
UUID5 = Annotated[UUID, UuidVersion(5)]
|
|
1233
|
+
"""A [UUID](https://docs.python.org/3/library/uuid.html) that must be version 5.
|
|
1234
|
+
|
|
1235
|
+
```python
|
|
1236
|
+
import uuid
|
|
1237
|
+
|
|
1238
|
+
from pydantic import UUID5, BaseModel
|
|
1239
|
+
|
|
1240
|
+
class Model(BaseModel):
|
|
1241
|
+
uuid5: UUID5
|
|
1242
|
+
|
|
1243
|
+
Model(uuid5=uuid.uuid5(uuid.NAMESPACE_DNS, 'pydantic.org'))
|
|
1244
|
+
```
|
|
1245
|
+
"""
|
|
1246
|
+
UUID6 = Annotated[UUID, UuidVersion(6)]
|
|
1247
|
+
"""A [UUID](https://docs.python.org/3/library/uuid.html) that must be version 6.
|
|
1248
|
+
|
|
1249
|
+
```python
|
|
1250
|
+
import uuid
|
|
1251
|
+
|
|
1252
|
+
from pydantic import UUID6, BaseModel
|
|
1253
|
+
|
|
1254
|
+
class Model(BaseModel):
|
|
1255
|
+
uuid6: UUID6
|
|
1256
|
+
|
|
1257
|
+
Model(uuid6=uuid.UUID('1efea953-c2d6-6790-aa0a-69db8c87df97'))
|
|
1258
|
+
```
|
|
1259
|
+
"""
|
|
1260
|
+
UUID7 = Annotated[UUID, UuidVersion(7)]
|
|
1261
|
+
"""A [UUID](https://docs.python.org/3/library/uuid.html) that must be version 7.
|
|
1262
|
+
|
|
1263
|
+
```python
|
|
1264
|
+
import uuid
|
|
1265
|
+
|
|
1266
|
+
from pydantic import UUID7, BaseModel
|
|
1267
|
+
|
|
1268
|
+
class Model(BaseModel):
|
|
1269
|
+
uuid7: UUID7
|
|
1270
|
+
|
|
1271
|
+
Model(uuid7=uuid.UUID('0194fdcb-1c47-7a09-b52c-561154de0b4a'))
|
|
1272
|
+
```
|
|
1273
|
+
"""
|
|
1274
|
+
UUID8 = Annotated[UUID, UuidVersion(8)]
|
|
1275
|
+
"""A [UUID](https://docs.python.org/3/library/uuid.html) that must be version 8.
|
|
1276
|
+
|
|
1277
|
+
```python
|
|
1278
|
+
import uuid
|
|
1279
|
+
|
|
1280
|
+
from pydantic import UUID8, BaseModel
|
|
1281
|
+
|
|
1282
|
+
class Model(BaseModel):
|
|
1283
|
+
uuid8: UUID8
|
|
1284
|
+
|
|
1285
|
+
Model(uuid8=uuid.UUID('81a0b92e-6078-8551-9c81-8ccb666bdab8'))
|
|
1286
|
+
```
|
|
1287
|
+
"""
|
|
1288
|
+
|
|
1289
|
+
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PATH TYPES ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
1290
|
+
|
|
1291
|
+
|
|
1292
|
+
@_dataclasses.dataclass
|
|
1293
|
+
class PathType:
|
|
1294
|
+
path_type: Literal['file', 'dir', 'new', 'socket']
|
|
1295
|
+
|
|
1296
|
+
def __get_pydantic_json_schema__(
|
|
1297
|
+
self, core_schema: core_schema.CoreSchema, handler: GetJsonSchemaHandler
|
|
1298
|
+
) -> JsonSchemaValue:
|
|
1299
|
+
field_schema = handler(core_schema)
|
|
1300
|
+
format_conversion = {'file': 'file-path', 'dir': 'directory-path'}
|
|
1301
|
+
field_schema.update(format=format_conversion.get(self.path_type, 'path'), type='string')
|
|
1302
|
+
return field_schema
|
|
1303
|
+
|
|
1304
|
+
def __get_pydantic_core_schema__(self, source: Any, handler: GetCoreSchemaHandler) -> core_schema.CoreSchema:
|
|
1305
|
+
function_lookup = {
|
|
1306
|
+
'file': cast(core_schema.WithInfoValidatorFunction, self.validate_file),
|
|
1307
|
+
'dir': cast(core_schema.WithInfoValidatorFunction, self.validate_directory),
|
|
1308
|
+
'new': cast(core_schema.WithInfoValidatorFunction, self.validate_new),
|
|
1309
|
+
'socket': cast(core_schema.WithInfoValidatorFunction, self.validate_socket),
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
return core_schema.with_info_after_validator_function(
|
|
1313
|
+
function_lookup[self.path_type],
|
|
1314
|
+
handler(source),
|
|
1315
|
+
)
|
|
1316
|
+
|
|
1317
|
+
@staticmethod
|
|
1318
|
+
def validate_file(path: Path, _: core_schema.ValidationInfo) -> Path:
|
|
1319
|
+
if path.is_file():
|
|
1320
|
+
return path
|
|
1321
|
+
else:
|
|
1322
|
+
raise PydanticCustomError('path_not_file', 'Path does not point to a file')
|
|
1323
|
+
|
|
1324
|
+
@staticmethod
|
|
1325
|
+
def validate_socket(path: Path, _: core_schema.ValidationInfo) -> Path:
|
|
1326
|
+
if path.is_socket():
|
|
1327
|
+
return path
|
|
1328
|
+
else:
|
|
1329
|
+
raise PydanticCustomError('path_not_socket', 'Path does not point to a socket')
|
|
1330
|
+
|
|
1331
|
+
@staticmethod
|
|
1332
|
+
def validate_directory(path: Path, _: core_schema.ValidationInfo) -> Path:
|
|
1333
|
+
if path.is_dir():
|
|
1334
|
+
return path
|
|
1335
|
+
else:
|
|
1336
|
+
raise PydanticCustomError('path_not_directory', 'Path does not point to a directory')
|
|
1337
|
+
|
|
1338
|
+
@staticmethod
|
|
1339
|
+
def validate_new(path: Path, _: core_schema.ValidationInfo) -> Path:
|
|
1340
|
+
if path.exists():
|
|
1341
|
+
raise PydanticCustomError('path_exists', 'Path already exists')
|
|
1342
|
+
elif not path.parent.exists():
|
|
1343
|
+
raise PydanticCustomError('parent_does_not_exist', 'Parent directory does not exist')
|
|
1344
|
+
else:
|
|
1345
|
+
return path
|
|
1346
|
+
|
|
1347
|
+
def __hash__(self) -> int:
|
|
1348
|
+
return hash(self.path_type)
|
|
1349
|
+
|
|
1350
|
+
|
|
1351
|
+
FilePath = Annotated[Path, PathType('file')]
|
|
1352
|
+
"""A path that must point to a file.
|
|
1353
|
+
|
|
1354
|
+
```python
|
|
1355
|
+
from pathlib import Path
|
|
1356
|
+
|
|
1357
|
+
from pydantic import BaseModel, FilePath, ValidationError
|
|
1358
|
+
|
|
1359
|
+
class Model(BaseModel):
|
|
1360
|
+
f: FilePath
|
|
1361
|
+
|
|
1362
|
+
path = Path('text.txt')
|
|
1363
|
+
path.touch()
|
|
1364
|
+
m = Model(f='text.txt')
|
|
1365
|
+
print(m.model_dump())
|
|
1366
|
+
#> {'f': PosixPath('text.txt')}
|
|
1367
|
+
path.unlink()
|
|
1368
|
+
|
|
1369
|
+
path = Path('directory')
|
|
1370
|
+
path.mkdir(exist_ok=True)
|
|
1371
|
+
try:
|
|
1372
|
+
Model(f='directory') # directory
|
|
1373
|
+
except ValidationError as e:
|
|
1374
|
+
print(e)
|
|
1375
|
+
'''
|
|
1376
|
+
1 validation error for Model
|
|
1377
|
+
f
|
|
1378
|
+
Path does not point to a file [type=path_not_file, input_value='directory', input_type=str]
|
|
1379
|
+
'''
|
|
1380
|
+
path.rmdir()
|
|
1381
|
+
|
|
1382
|
+
try:
|
|
1383
|
+
Model(f='not-exists-file')
|
|
1384
|
+
except ValidationError as e:
|
|
1385
|
+
print(e)
|
|
1386
|
+
'''
|
|
1387
|
+
1 validation error for Model
|
|
1388
|
+
f
|
|
1389
|
+
Path does not point to a file [type=path_not_file, input_value='not-exists-file', input_type=str]
|
|
1390
|
+
'''
|
|
1391
|
+
```
|
|
1392
|
+
"""
|
|
1393
|
+
DirectoryPath = Annotated[Path, PathType('dir')]
|
|
1394
|
+
"""A path that must point to a directory.
|
|
1395
|
+
|
|
1396
|
+
```python
|
|
1397
|
+
from pathlib import Path
|
|
1398
|
+
|
|
1399
|
+
from pydantic import BaseModel, DirectoryPath, ValidationError
|
|
1400
|
+
|
|
1401
|
+
class Model(BaseModel):
|
|
1402
|
+
f: DirectoryPath
|
|
1403
|
+
|
|
1404
|
+
path = Path('directory/')
|
|
1405
|
+
path.mkdir()
|
|
1406
|
+
m = Model(f='directory/')
|
|
1407
|
+
print(m.model_dump())
|
|
1408
|
+
#> {'f': PosixPath('directory')}
|
|
1409
|
+
path.rmdir()
|
|
1410
|
+
|
|
1411
|
+
path = Path('file.txt')
|
|
1412
|
+
path.touch()
|
|
1413
|
+
try:
|
|
1414
|
+
Model(f='file.txt') # file
|
|
1415
|
+
except ValidationError as e:
|
|
1416
|
+
print(e)
|
|
1417
|
+
'''
|
|
1418
|
+
1 validation error for Model
|
|
1419
|
+
f
|
|
1420
|
+
Path does not point to a directory [type=path_not_directory, input_value='file.txt', input_type=str]
|
|
1421
|
+
'''
|
|
1422
|
+
path.unlink()
|
|
1423
|
+
|
|
1424
|
+
try:
|
|
1425
|
+
Model(f='not-exists-directory')
|
|
1426
|
+
except ValidationError as e:
|
|
1427
|
+
print(e)
|
|
1428
|
+
'''
|
|
1429
|
+
1 validation error for Model
|
|
1430
|
+
f
|
|
1431
|
+
Path does not point to a directory [type=path_not_directory, input_value='not-exists-directory', input_type=str]
|
|
1432
|
+
'''
|
|
1433
|
+
```
|
|
1434
|
+
"""
|
|
1435
|
+
NewPath = Annotated[Path, PathType('new')]
|
|
1436
|
+
"""A path for a new file or directory that must not already exist. The parent directory must already exist."""
|
|
1437
|
+
|
|
1438
|
+
SocketPath = Annotated[Path, PathType('socket')]
|
|
1439
|
+
"""A path to an existing socket file"""
|
|
1440
|
+
|
|
1441
|
+
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ JSON TYPE ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
1442
|
+
|
|
1443
|
+
if TYPE_CHECKING:
|
|
1444
|
+
# Json[list[str]] will be recognized by type checkers as list[str]
|
|
1445
|
+
Json = Annotated[AnyType, ...]
|
|
1446
|
+
|
|
1447
|
+
else:
|
|
1448
|
+
|
|
1449
|
+
class Json:
|
|
1450
|
+
"""A special type wrapper which loads JSON before parsing.
|
|
1451
|
+
|
|
1452
|
+
You can use the `Json` data type to make Pydantic first load a raw JSON string before
|
|
1453
|
+
validating the loaded data into the parametrized type:
|
|
1454
|
+
|
|
1455
|
+
```python
|
|
1456
|
+
from typing import Any
|
|
1457
|
+
|
|
1458
|
+
from pydantic import BaseModel, Json, ValidationError
|
|
1459
|
+
|
|
1460
|
+
class AnyJsonModel(BaseModel):
|
|
1461
|
+
json_obj: Json[Any]
|
|
1462
|
+
|
|
1463
|
+
class ConstrainedJsonModel(BaseModel):
|
|
1464
|
+
json_obj: Json[list[int]]
|
|
1465
|
+
|
|
1466
|
+
print(AnyJsonModel(json_obj='{"b": 1}'))
|
|
1467
|
+
#> json_obj={'b': 1}
|
|
1468
|
+
print(ConstrainedJsonModel(json_obj='[1, 2, 3]'))
|
|
1469
|
+
#> json_obj=[1, 2, 3]
|
|
1470
|
+
|
|
1471
|
+
try:
|
|
1472
|
+
ConstrainedJsonModel(json_obj=12)
|
|
1473
|
+
except ValidationError as e:
|
|
1474
|
+
print(e)
|
|
1475
|
+
'''
|
|
1476
|
+
1 validation error for ConstrainedJsonModel
|
|
1477
|
+
json_obj
|
|
1478
|
+
JSON input should be string, bytes or bytearray [type=json_type, input_value=12, input_type=int]
|
|
1479
|
+
'''
|
|
1480
|
+
|
|
1481
|
+
try:
|
|
1482
|
+
ConstrainedJsonModel(json_obj='[a, b]')
|
|
1483
|
+
except ValidationError as e:
|
|
1484
|
+
print(e)
|
|
1485
|
+
'''
|
|
1486
|
+
1 validation error for ConstrainedJsonModel
|
|
1487
|
+
json_obj
|
|
1488
|
+
Invalid JSON: expected value at line 1 column 2 [type=json_invalid, input_value='[a, b]', input_type=str]
|
|
1489
|
+
'''
|
|
1490
|
+
|
|
1491
|
+
try:
|
|
1492
|
+
ConstrainedJsonModel(json_obj='["a", "b"]')
|
|
1493
|
+
except ValidationError as e:
|
|
1494
|
+
print(e)
|
|
1495
|
+
'''
|
|
1496
|
+
2 validation errors for ConstrainedJsonModel
|
|
1497
|
+
json_obj.0
|
|
1498
|
+
Input should be a valid integer, unable to parse string as an integer [type=int_parsing, input_value='a', input_type=str]
|
|
1499
|
+
json_obj.1
|
|
1500
|
+
Input should be a valid integer, unable to parse string as an integer [type=int_parsing, input_value='b', input_type=str]
|
|
1501
|
+
'''
|
|
1502
|
+
```
|
|
1503
|
+
|
|
1504
|
+
When you dump the model using `model_dump` or `model_dump_json`, the dumped value will be the result of validation,
|
|
1505
|
+
not the original JSON string. However, you can use the argument `round_trip=True` to get the original JSON string back:
|
|
1506
|
+
|
|
1507
|
+
```python
|
|
1508
|
+
from pydantic import BaseModel, Json
|
|
1509
|
+
|
|
1510
|
+
class ConstrainedJsonModel(BaseModel):
|
|
1511
|
+
json_obj: Json[list[int]]
|
|
1512
|
+
|
|
1513
|
+
print(ConstrainedJsonModel(json_obj='[1, 2, 3]').model_dump_json())
|
|
1514
|
+
#> {"json_obj":[1,2,3]}
|
|
1515
|
+
print(
|
|
1516
|
+
ConstrainedJsonModel(json_obj='[1, 2, 3]').model_dump_json(round_trip=True)
|
|
1517
|
+
)
|
|
1518
|
+
#> {"json_obj":"[1,2,3]"}
|
|
1519
|
+
```
|
|
1520
|
+
"""
|
|
1521
|
+
|
|
1522
|
+
@classmethod
|
|
1523
|
+
def __class_getitem__(cls, item: AnyType) -> AnyType:
|
|
1524
|
+
return Annotated[item, cls()]
|
|
1525
|
+
|
|
1526
|
+
@classmethod
|
|
1527
|
+
def __get_pydantic_core_schema__(cls, source: Any, handler: GetCoreSchemaHandler) -> core_schema.CoreSchema:
|
|
1528
|
+
if cls is source:
|
|
1529
|
+
return core_schema.json_schema(None)
|
|
1530
|
+
else:
|
|
1531
|
+
return core_schema.json_schema(handler(source))
|
|
1532
|
+
|
|
1533
|
+
def __repr__(self) -> str:
|
|
1534
|
+
return 'Json'
|
|
1535
|
+
|
|
1536
|
+
def __hash__(self) -> int:
|
|
1537
|
+
return hash(type(self))
|
|
1538
|
+
|
|
1539
|
+
def __eq__(self, other: Any) -> bool:
|
|
1540
|
+
return type(other) is type(self)
|
|
1541
|
+
|
|
1542
|
+
|
|
1543
|
+
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SECRET TYPES ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
1544
|
+
|
|
1545
|
+
# The `Secret` class being conceptually immutable, make the type variable covariant:
|
|
1546
|
+
SecretType = TypeVar('SecretType', covariant=True)
|
|
1547
|
+
|
|
1548
|
+
|
|
1549
|
+
class _SecretBase(Generic[SecretType]):
|
|
1550
|
+
def __init__(self, secret_value: SecretType) -> None:
|
|
1551
|
+
self._secret_value: SecretType = secret_value
|
|
1552
|
+
|
|
1553
|
+
def get_secret_value(self) -> SecretType:
|
|
1554
|
+
"""Get the secret value.
|
|
1555
|
+
|
|
1556
|
+
Returns:
|
|
1557
|
+
The secret value.
|
|
1558
|
+
"""
|
|
1559
|
+
return self._secret_value
|
|
1560
|
+
|
|
1561
|
+
def __eq__(self, other: Any) -> bool:
|
|
1562
|
+
return isinstance(other, self.__class__) and self.get_secret_value() == other.get_secret_value()
|
|
1563
|
+
|
|
1564
|
+
def __hash__(self) -> int:
|
|
1565
|
+
return hash(self.get_secret_value())
|
|
1566
|
+
|
|
1567
|
+
def __str__(self) -> str:
|
|
1568
|
+
return str(self._display())
|
|
1569
|
+
|
|
1570
|
+
def __repr__(self) -> str:
|
|
1571
|
+
return f'{self.__class__.__name__}({self._display()!r})'
|
|
1572
|
+
|
|
1573
|
+
def _display(self) -> str | bytes:
|
|
1574
|
+
raise NotImplementedError
|
|
1575
|
+
|
|
1576
|
+
|
|
1577
|
+
def _serialize_secret(value: Secret[SecretType], info: core_schema.SerializationInfo) -> str | Secret[SecretType]:
|
|
1578
|
+
if info.mode == 'json':
|
|
1579
|
+
return str(value)
|
|
1580
|
+
else:
|
|
1581
|
+
return value
|
|
1582
|
+
|
|
1583
|
+
|
|
1584
|
+
class Secret(_SecretBase[SecretType]):
|
|
1585
|
+
"""A generic base class used for defining a field with sensitive information that you do not want to be visible in logging or tracebacks.
|
|
1586
|
+
|
|
1587
|
+
You may either directly parametrize `Secret` with a type, or subclass from `Secret` with a parametrized type. The benefit of subclassing
|
|
1588
|
+
is that you can define a custom `_display()` method, which will be used for [`repr()`][repr] and [`str()`][str] methods. The examples below demonstrate both
|
|
1589
|
+
ways of using `Secret` to create a new secret type.
|
|
1590
|
+
|
|
1591
|
+
1. Directly parametrizing `Secret` with a type:
|
|
1592
|
+
|
|
1593
|
+
```python
|
|
1594
|
+
from pydantic import BaseModel, Secret
|
|
1595
|
+
|
|
1596
|
+
SecretBool = Secret[bool]
|
|
1597
|
+
|
|
1598
|
+
class Model(BaseModel):
|
|
1599
|
+
secret_bool: SecretBool
|
|
1600
|
+
|
|
1601
|
+
m = Model(secret_bool=True)
|
|
1602
|
+
print(m.model_dump())
|
|
1603
|
+
#> {'secret_bool': Secret('**********')}
|
|
1604
|
+
|
|
1605
|
+
print(m.model_dump_json())
|
|
1606
|
+
#> {"secret_bool":"**********"}
|
|
1607
|
+
|
|
1608
|
+
print(m.secret_bool.get_secret_value())
|
|
1609
|
+
#> True
|
|
1610
|
+
```
|
|
1611
|
+
|
|
1612
|
+
2. Subclassing from parametrized `Secret`:
|
|
1613
|
+
|
|
1614
|
+
```python
|
|
1615
|
+
from datetime import date
|
|
1616
|
+
|
|
1617
|
+
from pydantic import BaseModel, Secret
|
|
1618
|
+
|
|
1619
|
+
class SecretDate(Secret[date]):
|
|
1620
|
+
def _display(self) -> str:
|
|
1621
|
+
return '****/**/**'
|
|
1622
|
+
|
|
1623
|
+
class Model(BaseModel):
|
|
1624
|
+
secret_date: SecretDate
|
|
1625
|
+
|
|
1626
|
+
m = Model(secret_date=date(2022, 1, 1))
|
|
1627
|
+
print(m.model_dump())
|
|
1628
|
+
#> {'secret_date': SecretDate('****/**/**')}
|
|
1629
|
+
|
|
1630
|
+
print(m.model_dump_json())
|
|
1631
|
+
#> {"secret_date":"****/**/**"}
|
|
1632
|
+
|
|
1633
|
+
print(m.secret_date.get_secret_value())
|
|
1634
|
+
#> 2022-01-01
|
|
1635
|
+
```
|
|
1636
|
+
|
|
1637
|
+
The value returned by the `_display()` method will be used for [`repr()`][repr] and [`str()`][str].
|
|
1638
|
+
|
|
1639
|
+
You can enforce constraints on the underlying type through annotations:
|
|
1640
|
+
For example:
|
|
1641
|
+
|
|
1642
|
+
```python
|
|
1643
|
+
from typing import Annotated
|
|
1644
|
+
|
|
1645
|
+
from pydantic import BaseModel, Field, Secret, ValidationError
|
|
1646
|
+
|
|
1647
|
+
SecretPosInt = Secret[Annotated[int, Field(gt=0, strict=True)]]
|
|
1648
|
+
|
|
1649
|
+
class Model(BaseModel):
|
|
1650
|
+
sensitive_int: SecretPosInt
|
|
1651
|
+
|
|
1652
|
+
m = Model(sensitive_int=42)
|
|
1653
|
+
print(m.model_dump())
|
|
1654
|
+
#> {'sensitive_int': Secret('**********')}
|
|
1655
|
+
|
|
1656
|
+
try:
|
|
1657
|
+
m = Model(sensitive_int=-42) # (1)!
|
|
1658
|
+
except ValidationError as exc_info:
|
|
1659
|
+
print(exc_info.errors(include_url=False, include_input=False))
|
|
1660
|
+
'''
|
|
1661
|
+
[
|
|
1662
|
+
{
|
|
1663
|
+
'type': 'greater_than',
|
|
1664
|
+
'loc': ('sensitive_int',),
|
|
1665
|
+
'msg': 'Input should be greater than 0',
|
|
1666
|
+
'ctx': {'gt': 0},
|
|
1667
|
+
}
|
|
1668
|
+
]
|
|
1669
|
+
'''
|
|
1670
|
+
|
|
1671
|
+
try:
|
|
1672
|
+
m = Model(sensitive_int='42') # (2)!
|
|
1673
|
+
except ValidationError as exc_info:
|
|
1674
|
+
print(exc_info.errors(include_url=False, include_input=False))
|
|
1675
|
+
'''
|
|
1676
|
+
[
|
|
1677
|
+
{
|
|
1678
|
+
'type': 'int_type',
|
|
1679
|
+
'loc': ('sensitive_int',),
|
|
1680
|
+
'msg': 'Input should be a valid integer',
|
|
1681
|
+
}
|
|
1682
|
+
]
|
|
1683
|
+
'''
|
|
1684
|
+
```
|
|
1685
|
+
|
|
1686
|
+
1. The input value is not greater than 0, so it raises a validation error.
|
|
1687
|
+
2. The input value is not an integer, so it raises a validation error because the `SecretPosInt` type has strict mode enabled.
|
|
1688
|
+
|
|
1689
|
+
Two `Secret` types compare equal if the secret values are equal. For the [`SecretStr`][pydantic.types.SecretStr] and
|
|
1690
|
+
[`SecretBytes`][pydantic.types.SecretBytes] implementations, constant-time comparison is achieved
|
|
1691
|
+
(using [`secrets.compare_digest()`][secrets.compare_digest]). If you need constant-time comparison on your `Secret`
|
|
1692
|
+
subclass, you can do so by overriding [`__eq__()`][object.__eq__].
|
|
1693
|
+
"""
|
|
1694
|
+
|
|
1695
|
+
def _display(self) -> str | bytes:
|
|
1696
|
+
return '**********' if self.get_secret_value() else ''
|
|
1697
|
+
|
|
1698
|
+
@classmethod
|
|
1699
|
+
def __get_pydantic_core_schema__(cls, source: type[Any], handler: GetCoreSchemaHandler) -> core_schema.CoreSchema:
|
|
1700
|
+
inner_type = None
|
|
1701
|
+
# if origin_type is Secret, then cls is a GenericAlias, and we can extract the inner type directly
|
|
1702
|
+
origin_type = get_origin(source)
|
|
1703
|
+
if origin_type is not None:
|
|
1704
|
+
inner_type = get_args(source)[0]
|
|
1705
|
+
# otherwise, we need to get the inner type from the base class
|
|
1706
|
+
else:
|
|
1707
|
+
bases = getattr(cls, '__orig_bases__', getattr(cls, '__bases__', []))
|
|
1708
|
+
for base in bases:
|
|
1709
|
+
if get_origin(base) is Secret:
|
|
1710
|
+
inner_type = get_args(base)[0]
|
|
1711
|
+
if bases == [] or inner_type is None:
|
|
1712
|
+
raise TypeError(
|
|
1713
|
+
f"Can't get secret type from {cls.__name__}. "
|
|
1714
|
+
'Please use Secret[<type>], or subclass from Secret[<type>] instead.'
|
|
1715
|
+
)
|
|
1716
|
+
|
|
1717
|
+
inner_schema = handler.generate_schema(inner_type) # type: ignore
|
|
1718
|
+
|
|
1719
|
+
def validate_secret_value(value, handler) -> Secret[SecretType]:
|
|
1720
|
+
if isinstance(value, Secret):
|
|
1721
|
+
value = value.get_secret_value()
|
|
1722
|
+
validated_inner = handler(value)
|
|
1723
|
+
return cls(validated_inner)
|
|
1724
|
+
|
|
1725
|
+
return core_schema.json_or_python_schema(
|
|
1726
|
+
python_schema=core_schema.no_info_wrap_validator_function(
|
|
1727
|
+
validate_secret_value,
|
|
1728
|
+
inner_schema,
|
|
1729
|
+
),
|
|
1730
|
+
json_schema=core_schema.no_info_after_validator_function(lambda x: cls(x), inner_schema),
|
|
1731
|
+
serialization=core_schema.plain_serializer_function_ser_schema(
|
|
1732
|
+
_serialize_secret,
|
|
1733
|
+
info_arg=True,
|
|
1734
|
+
when_used='always',
|
|
1735
|
+
),
|
|
1736
|
+
)
|
|
1737
|
+
|
|
1738
|
+
__pydantic_serializer__ = SchemaSerializer(
|
|
1739
|
+
core_schema.any_schema(
|
|
1740
|
+
serialization=core_schema.plain_serializer_function_ser_schema(
|
|
1741
|
+
_serialize_secret,
|
|
1742
|
+
info_arg=True,
|
|
1743
|
+
when_used='always',
|
|
1744
|
+
)
|
|
1745
|
+
)
|
|
1746
|
+
)
|
|
1747
|
+
|
|
1748
|
+
|
|
1749
|
+
def _secret_display(value: SecretType) -> str: # type: ignore
|
|
1750
|
+
return '**********' if value else ''
|
|
1751
|
+
|
|
1752
|
+
|
|
1753
|
+
def _serialize_secret_field(
|
|
1754
|
+
value: _SecretField[SecretType], info: core_schema.SerializationInfo
|
|
1755
|
+
) -> str | _SecretField[SecretType]:
|
|
1756
|
+
if info.mode == 'json':
|
|
1757
|
+
# we want the output to always be string without the `b'` prefix for bytes,
|
|
1758
|
+
# hence we just use `secret_display`
|
|
1759
|
+
return _secret_display(value.get_secret_value())
|
|
1760
|
+
else:
|
|
1761
|
+
return value
|
|
1762
|
+
|
|
1763
|
+
|
|
1764
|
+
class _SecretField(_SecretBase[SecretType]):
|
|
1765
|
+
_inner_schema: ClassVar[CoreSchema]
|
|
1766
|
+
_error_kind: ClassVar[str]
|
|
1767
|
+
|
|
1768
|
+
@classmethod
|
|
1769
|
+
def __get_pydantic_core_schema__(cls, source: type[Any], handler: GetCoreSchemaHandler) -> core_schema.CoreSchema:
|
|
1770
|
+
def get_json_schema(_core_schema: core_schema.CoreSchema, handler: GetJsonSchemaHandler) -> JsonSchemaValue:
|
|
1771
|
+
json_schema = handler(cls._inner_schema)
|
|
1772
|
+
_utils.update_not_none(
|
|
1773
|
+
json_schema,
|
|
1774
|
+
type='string',
|
|
1775
|
+
writeOnly=True,
|
|
1776
|
+
format='password',
|
|
1777
|
+
)
|
|
1778
|
+
return json_schema
|
|
1779
|
+
|
|
1780
|
+
def get_secret_schema(strict: bool) -> CoreSchema:
|
|
1781
|
+
inner_schema = {**cls._inner_schema, 'strict': strict}
|
|
1782
|
+
json_schema = core_schema.no_info_after_validator_function(
|
|
1783
|
+
source, # construct the type
|
|
1784
|
+
inner_schema, # pyright: ignore[reportArgumentType]
|
|
1785
|
+
)
|
|
1786
|
+
return core_schema.json_or_python_schema(
|
|
1787
|
+
python_schema=core_schema.union_schema(
|
|
1788
|
+
[
|
|
1789
|
+
core_schema.is_instance_schema(source),
|
|
1790
|
+
json_schema,
|
|
1791
|
+
],
|
|
1792
|
+
custom_error_type=cls._error_kind,
|
|
1793
|
+
),
|
|
1794
|
+
json_schema=json_schema,
|
|
1795
|
+
serialization=core_schema.plain_serializer_function_ser_schema(
|
|
1796
|
+
_serialize_secret_field,
|
|
1797
|
+
info_arg=True,
|
|
1798
|
+
when_used='unless-none',
|
|
1799
|
+
),
|
|
1800
|
+
)
|
|
1801
|
+
|
|
1802
|
+
return core_schema.lax_or_strict_schema(
|
|
1803
|
+
lax_schema=get_secret_schema(strict=False),
|
|
1804
|
+
strict_schema=get_secret_schema(strict=True),
|
|
1805
|
+
metadata={'pydantic_js_functions': [get_json_schema]},
|
|
1806
|
+
)
|
|
1807
|
+
|
|
1808
|
+
__pydantic_serializer__ = SchemaSerializer(
|
|
1809
|
+
core_schema.any_schema(
|
|
1810
|
+
serialization=core_schema.plain_serializer_function_ser_schema(
|
|
1811
|
+
_serialize_secret_field,
|
|
1812
|
+
info_arg=True,
|
|
1813
|
+
when_used='always',
|
|
1814
|
+
)
|
|
1815
|
+
)
|
|
1816
|
+
)
|
|
1817
|
+
|
|
1818
|
+
|
|
1819
|
+
class SecretStr(_SecretField[str]):
|
|
1820
|
+
"""A string used for storing sensitive information that you do not want to be visible in logging or tracebacks.
|
|
1821
|
+
|
|
1822
|
+
When the secret value is nonempty, it is displayed as `'**********'` instead of the underlying value in
|
|
1823
|
+
calls to [`repr()`][repr] and [`str()`][str]. If the value _is_ empty, it is displayed as `''`.
|
|
1824
|
+
|
|
1825
|
+
Two `SecretStr` types compare equal if the secret values are equal. Constant-time comparison is achieved
|
|
1826
|
+
(using [`secrets.compare_digest()`][secrets.compare_digest]).
|
|
1827
|
+
|
|
1828
|
+
```python
|
|
1829
|
+
from pydantic import BaseModel, SecretStr
|
|
1830
|
+
|
|
1831
|
+
class User(BaseModel):
|
|
1832
|
+
username: str
|
|
1833
|
+
password: SecretStr
|
|
1834
|
+
|
|
1835
|
+
user = User(username='scolvin', password='password1')
|
|
1836
|
+
|
|
1837
|
+
print(user)
|
|
1838
|
+
#> username='scolvin' password=SecretStr('**********')
|
|
1839
|
+
print(user.password.get_secret_value())
|
|
1840
|
+
#> password1
|
|
1841
|
+
print((SecretStr('password'), SecretStr('')))
|
|
1842
|
+
#> (SecretStr('**********'), SecretStr(''))
|
|
1843
|
+
```
|
|
1844
|
+
|
|
1845
|
+
As seen above, by default, [`SecretStr`][pydantic.types.SecretStr] (and [`SecretBytes`][pydantic.types.SecretBytes])
|
|
1846
|
+
will be serialized as `**********` when serializing to json.
|
|
1847
|
+
|
|
1848
|
+
You can use a [field serializer](../concepts/serialization.md#field-serializers) to dump the
|
|
1849
|
+
secret as plain-text when serializing to json.
|
|
1850
|
+
|
|
1851
|
+
```python
|
|
1852
|
+
from pydantic import BaseModel, SecretBytes, SecretStr, field_serializer
|
|
1853
|
+
|
|
1854
|
+
class Model(BaseModel):
|
|
1855
|
+
password: SecretStr
|
|
1856
|
+
password_bytes: SecretBytes
|
|
1857
|
+
|
|
1858
|
+
@field_serializer('password', 'password_bytes', when_used='json')
|
|
1859
|
+
def dump_secret(self, v):
|
|
1860
|
+
return v.get_secret_value()
|
|
1861
|
+
|
|
1862
|
+
model = Model(password='IAmSensitive', password_bytes=b'IAmSensitiveBytes')
|
|
1863
|
+
print(model)
|
|
1864
|
+
#> password=SecretStr('**********') password_bytes=SecretBytes(b'**********')
|
|
1865
|
+
print(model.password)
|
|
1866
|
+
#> **********
|
|
1867
|
+
print(model.model_dump())
|
|
1868
|
+
'''
|
|
1869
|
+
{
|
|
1870
|
+
'password': SecretStr('**********'),
|
|
1871
|
+
'password_bytes': SecretBytes(b'**********'),
|
|
1872
|
+
}
|
|
1873
|
+
'''
|
|
1874
|
+
print(model.model_dump_json())
|
|
1875
|
+
#> {"password":"IAmSensitive","password_bytes":"IAmSensitiveBytes"}
|
|
1876
|
+
```
|
|
1877
|
+
"""
|
|
1878
|
+
|
|
1879
|
+
_inner_schema: ClassVar[CoreSchema] = core_schema.str_schema()
|
|
1880
|
+
_error_kind: ClassVar[str] = 'string_type'
|
|
1881
|
+
|
|
1882
|
+
def __len__(self) -> int:
|
|
1883
|
+
return len(self._secret_value)
|
|
1884
|
+
|
|
1885
|
+
def __hash__(self) -> int:
|
|
1886
|
+
return hash(self.get_secret_value())
|
|
1887
|
+
|
|
1888
|
+
def __eq__(self, other: Any) -> bool:
|
|
1889
|
+
if not isinstance(other, self.__class__):
|
|
1890
|
+
return False
|
|
1891
|
+
|
|
1892
|
+
# `secrets.compare_digest()` only supports ASCII strings, so encode to bytes first:
|
|
1893
|
+
return secrets.compare_digest(
|
|
1894
|
+
self.get_secret_value().encode('utf-8', errors='surrogatepass'),
|
|
1895
|
+
other.get_secret_value().encode('utf-8', errors='surrogatepass'),
|
|
1896
|
+
)
|
|
1897
|
+
|
|
1898
|
+
def _display(self) -> str:
|
|
1899
|
+
return _secret_display(self._secret_value)
|
|
1900
|
+
|
|
1901
|
+
|
|
1902
|
+
class SecretBytes(_SecretField[bytes]):
|
|
1903
|
+
"""A bytes used for storing sensitive information that you do not want to be visible in logging or tracebacks.
|
|
1904
|
+
|
|
1905
|
+
When the secret value is nonempty, it is displayed as `b'**********'` instead of the underlying value in
|
|
1906
|
+
calls to [`repr()`][repr] and [`str()`][str]. If the value _is_ empty, it is displayed as `b''`.
|
|
1907
|
+
|
|
1908
|
+
Two `SecretBytes` types compare equal if the secret values are equal. Constant-time comparison is achieved
|
|
1909
|
+
(using [`secrets.compare_digest()`][secrets.compare_digest]).
|
|
1910
|
+
|
|
1911
|
+
```python
|
|
1912
|
+
from pydantic import BaseModel, SecretBytes
|
|
1913
|
+
|
|
1914
|
+
class User(BaseModel):
|
|
1915
|
+
username: str
|
|
1916
|
+
password: SecretBytes
|
|
1917
|
+
|
|
1918
|
+
user = User(username='scolvin', password=b'password1')
|
|
1919
|
+
#> username='scolvin' password=SecretBytes(b'**********')
|
|
1920
|
+
print(user.password.get_secret_value())
|
|
1921
|
+
#> b'password1'
|
|
1922
|
+
print((SecretBytes(b'password'), SecretBytes(b'')))
|
|
1923
|
+
#> (SecretBytes(b'**********'), SecretBytes(b''))
|
|
1924
|
+
```
|
|
1925
|
+
"""
|
|
1926
|
+
|
|
1927
|
+
_inner_schema: ClassVar[CoreSchema] = core_schema.bytes_schema()
|
|
1928
|
+
_error_kind: ClassVar[str] = 'bytes_type'
|
|
1929
|
+
|
|
1930
|
+
def __len__(self) -> int:
|
|
1931
|
+
return len(self._secret_value)
|
|
1932
|
+
|
|
1933
|
+
def __hash__(self) -> int:
|
|
1934
|
+
return hash(self.get_secret_value())
|
|
1935
|
+
|
|
1936
|
+
def __eq__(self, other: Any) -> bool:
|
|
1937
|
+
if not isinstance(other, self.__class__):
|
|
1938
|
+
return False
|
|
1939
|
+
|
|
1940
|
+
return secrets.compare_digest(self.get_secret_value(), other.get_secret_value())
|
|
1941
|
+
|
|
1942
|
+
def _display(self) -> bytes:
|
|
1943
|
+
return _secret_display(self._secret_value).encode()
|
|
1944
|
+
|
|
1945
|
+
|
|
1946
|
+
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PAYMENT CARD TYPES ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
1947
|
+
|
|
1948
|
+
|
|
1949
|
+
class PaymentCardBrand(str, Enum):
|
|
1950
|
+
amex = 'American Express'
|
|
1951
|
+
mastercard = 'Mastercard'
|
|
1952
|
+
visa = 'Visa'
|
|
1953
|
+
other = 'other'
|
|
1954
|
+
|
|
1955
|
+
def __str__(self) -> str:
|
|
1956
|
+
return self.value
|
|
1957
|
+
|
|
1958
|
+
|
|
1959
|
+
@deprecated(
|
|
1960
|
+
'The `PaymentCardNumber` class is deprecated, use `pydantic_extra_types` instead. '
|
|
1961
|
+
'See https://pydantic.dev/docs/validation/latest/api/pydantic-extra-types/pydantic_extra_types_payment/#pydantic_extra_types.payment.PaymentCardNumber.',
|
|
1962
|
+
category=PydanticDeprecatedSince20,
|
|
1963
|
+
)
|
|
1964
|
+
class PaymentCardNumber(str):
|
|
1965
|
+
"""Based on: https://en.wikipedia.org/wiki/Payment_card_number."""
|
|
1966
|
+
|
|
1967
|
+
strip_whitespace: ClassVar[bool] = True
|
|
1968
|
+
min_length: ClassVar[int] = 12
|
|
1969
|
+
max_length: ClassVar[int] = 19
|
|
1970
|
+
bin: str
|
|
1971
|
+
last4: str
|
|
1972
|
+
brand: PaymentCardBrand
|
|
1973
|
+
|
|
1974
|
+
def __init__(self, card_number: str):
|
|
1975
|
+
self.validate_digits(card_number)
|
|
1976
|
+
|
|
1977
|
+
card_number = self.validate_luhn_check_digit(card_number)
|
|
1978
|
+
|
|
1979
|
+
self.bin = card_number[:6]
|
|
1980
|
+
self.last4 = card_number[-4:]
|
|
1981
|
+
self.brand = self.validate_brand(card_number)
|
|
1982
|
+
|
|
1983
|
+
@classmethod
|
|
1984
|
+
def __get_pydantic_core_schema__(cls, source: type[Any], handler: GetCoreSchemaHandler) -> core_schema.CoreSchema:
|
|
1985
|
+
return core_schema.with_info_after_validator_function(
|
|
1986
|
+
cls.validate,
|
|
1987
|
+
core_schema.str_schema(
|
|
1988
|
+
min_length=cls.min_length, max_length=cls.max_length, strip_whitespace=cls.strip_whitespace
|
|
1989
|
+
),
|
|
1990
|
+
)
|
|
1991
|
+
|
|
1992
|
+
@classmethod
|
|
1993
|
+
def validate(cls, input_value: str, /, _: core_schema.ValidationInfo) -> PaymentCardNumber:
|
|
1994
|
+
"""Validate the card number and return a `PaymentCardNumber` instance."""
|
|
1995
|
+
return cls(input_value)
|
|
1996
|
+
|
|
1997
|
+
@property
|
|
1998
|
+
def masked(self) -> str:
|
|
1999
|
+
"""Mask all but the last 4 digits of the card number.
|
|
2000
|
+
|
|
2001
|
+
Returns:
|
|
2002
|
+
A masked card number string.
|
|
2003
|
+
"""
|
|
2004
|
+
num_masked = len(self) - 10 # len(bin) + len(last4) == 10
|
|
2005
|
+
return f'{self.bin}{"*" * num_masked}{self.last4}'
|
|
2006
|
+
|
|
2007
|
+
@classmethod
|
|
2008
|
+
def validate_digits(cls, card_number: str) -> None:
|
|
2009
|
+
"""Validate that the card number is all digits."""
|
|
2010
|
+
if not card_number.isdigit():
|
|
2011
|
+
raise PydanticCustomError('payment_card_number_digits', 'Card number is not all digits')
|
|
2012
|
+
|
|
2013
|
+
@classmethod
|
|
2014
|
+
def validate_luhn_check_digit(cls, card_number: str) -> str:
|
|
2015
|
+
"""Based on: https://en.wikipedia.org/wiki/Luhn_algorithm."""
|
|
2016
|
+
sum_ = int(card_number[-1])
|
|
2017
|
+
length = len(card_number)
|
|
2018
|
+
parity = length % 2
|
|
2019
|
+
for i in range(length - 1):
|
|
2020
|
+
digit = int(card_number[i])
|
|
2021
|
+
if i % 2 == parity:
|
|
2022
|
+
digit *= 2
|
|
2023
|
+
if digit > 9:
|
|
2024
|
+
digit -= 9
|
|
2025
|
+
sum_ += digit
|
|
2026
|
+
valid = sum_ % 10 == 0
|
|
2027
|
+
if not valid:
|
|
2028
|
+
raise PydanticCustomError('payment_card_number_luhn', 'Card number is not luhn valid')
|
|
2029
|
+
return card_number
|
|
2030
|
+
|
|
2031
|
+
@staticmethod
|
|
2032
|
+
def validate_brand(card_number: str) -> PaymentCardBrand:
|
|
2033
|
+
"""Validate length based on BIN for major brands:
|
|
2034
|
+
https://en.wikipedia.org/wiki/Payment_card_number#Issuer_identification_number_(IIN).
|
|
2035
|
+
"""
|
|
2036
|
+
if card_number[0] == '4':
|
|
2037
|
+
brand = PaymentCardBrand.visa
|
|
2038
|
+
elif 51 <= int(card_number[:2]) <= 55:
|
|
2039
|
+
brand = PaymentCardBrand.mastercard
|
|
2040
|
+
elif card_number[:2] in {'34', '37'}:
|
|
2041
|
+
brand = PaymentCardBrand.amex
|
|
2042
|
+
else:
|
|
2043
|
+
brand = PaymentCardBrand.other
|
|
2044
|
+
|
|
2045
|
+
required_length: None | int | str = None
|
|
2046
|
+
if brand in PaymentCardBrand.mastercard:
|
|
2047
|
+
required_length = 16
|
|
2048
|
+
valid = len(card_number) == required_length
|
|
2049
|
+
elif brand == PaymentCardBrand.visa:
|
|
2050
|
+
required_length = '13, 16 or 19'
|
|
2051
|
+
valid = len(card_number) in {13, 16, 19}
|
|
2052
|
+
elif brand == PaymentCardBrand.amex:
|
|
2053
|
+
required_length = 15
|
|
2054
|
+
valid = len(card_number) == required_length
|
|
2055
|
+
else:
|
|
2056
|
+
valid = True
|
|
2057
|
+
|
|
2058
|
+
if not valid:
|
|
2059
|
+
raise PydanticCustomError(
|
|
2060
|
+
'payment_card_number_brand',
|
|
2061
|
+
'Length for a {brand} card must be {required_length}',
|
|
2062
|
+
{'brand': brand, 'required_length': required_length},
|
|
2063
|
+
)
|
|
2064
|
+
return brand
|
|
2065
|
+
|
|
2066
|
+
|
|
2067
|
+
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BYTE SIZE TYPE ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
2068
|
+
|
|
2069
|
+
|
|
2070
|
+
class ByteSize(int):
|
|
2071
|
+
"""Converts a string representing a number of bytes with units (such as `'1KB'` or `'11.5MiB'`) into an integer.
|
|
2072
|
+
|
|
2073
|
+
You can use the `ByteSize` data type to (case-insensitively) convert a string representation of a number of bytes into
|
|
2074
|
+
an integer, and also to print out human-readable strings representing a number of bytes.
|
|
2075
|
+
|
|
2076
|
+
In conformance with [IEC 80000-13 Standard](https://en.wikipedia.org/wiki/ISO/IEC_80000) we interpret `'1KB'` to mean 1000 bytes,
|
|
2077
|
+
and `'1KiB'` to mean 1024 bytes. In general, including a middle `'i'` will cause the unit to be interpreted as a power of 2,
|
|
2078
|
+
rather than a power of 10 (so, for example, `'1 MB'` is treated as `1_000_000` bytes, whereas `'1 MiB'` is treated as `1_048_576` bytes).
|
|
2079
|
+
|
|
2080
|
+
!!! info
|
|
2081
|
+
Note that `1b` will be parsed as "1 byte" and not "1 bit".
|
|
2082
|
+
|
|
2083
|
+
```python
|
|
2084
|
+
from pydantic import BaseModel, ByteSize
|
|
2085
|
+
|
|
2086
|
+
class MyModel(BaseModel):
|
|
2087
|
+
size: ByteSize
|
|
2088
|
+
|
|
2089
|
+
print(MyModel(size=52000).size)
|
|
2090
|
+
#> 52000
|
|
2091
|
+
print(MyModel(size='3000 KiB').size)
|
|
2092
|
+
#> 3072000
|
|
2093
|
+
|
|
2094
|
+
m = MyModel(size='50 PB')
|
|
2095
|
+
print(m.size.human_readable())
|
|
2096
|
+
#> 44.4PiB
|
|
2097
|
+
print(m.size.human_readable(decimal=True))
|
|
2098
|
+
#> 50.0PB
|
|
2099
|
+
print(m.size.human_readable(separator=' '))
|
|
2100
|
+
#> 44.4 PiB
|
|
2101
|
+
|
|
2102
|
+
print(m.size.to('TiB'))
|
|
2103
|
+
#> 45474.73508864641
|
|
2104
|
+
```
|
|
2105
|
+
"""
|
|
2106
|
+
|
|
2107
|
+
byte_sizes: dict[str, float] = {
|
|
2108
|
+
'b': 1,
|
|
2109
|
+
'kb': 10**3,
|
|
2110
|
+
'mb': 10**6,
|
|
2111
|
+
'gb': 10**9,
|
|
2112
|
+
'tb': 10**12,
|
|
2113
|
+
'pb': 10**15,
|
|
2114
|
+
'eb': 10**18,
|
|
2115
|
+
'kib': 2**10,
|
|
2116
|
+
'mib': 2**20,
|
|
2117
|
+
'gib': 2**30,
|
|
2118
|
+
'tib': 2**40,
|
|
2119
|
+
'pib': 2**50,
|
|
2120
|
+
'eib': 2**60,
|
|
2121
|
+
'bit': 1 / 8,
|
|
2122
|
+
'kbit': 10**3 / 8,
|
|
2123
|
+
'mbit': 10**6 / 8,
|
|
2124
|
+
'gbit': 10**9 / 8,
|
|
2125
|
+
'tbit': 10**12 / 8,
|
|
2126
|
+
'pbit': 10**15 / 8,
|
|
2127
|
+
'ebit': 10**18 / 8,
|
|
2128
|
+
'kibit': 2**10 / 8,
|
|
2129
|
+
'mibit': 2**20 / 8,
|
|
2130
|
+
'gibit': 2**30 / 8,
|
|
2131
|
+
'tibit': 2**40 / 8,
|
|
2132
|
+
'pibit': 2**50 / 8,
|
|
2133
|
+
'eibit': 2**60 / 8,
|
|
2134
|
+
}
|
|
2135
|
+
byte_sizes.update({k.lower()[0]: v for k, v in byte_sizes.items() if 'i' not in k})
|
|
2136
|
+
|
|
2137
|
+
byte_string_pattern = r'^\s*(\d*\.?\d+)\s*(\w+)?'
|
|
2138
|
+
byte_string_re = re.compile(byte_string_pattern, re.IGNORECASE)
|
|
2139
|
+
|
|
2140
|
+
@classmethod
|
|
2141
|
+
def __get_pydantic_core_schema__(cls, source: type[Any], handler: GetCoreSchemaHandler) -> core_schema.CoreSchema:
|
|
2142
|
+
return core_schema.with_info_after_validator_function(
|
|
2143
|
+
function=cls._validate,
|
|
2144
|
+
schema=core_schema.union_schema(
|
|
2145
|
+
[
|
|
2146
|
+
core_schema.str_schema(pattern=cls.byte_string_pattern),
|
|
2147
|
+
core_schema.int_schema(ge=0),
|
|
2148
|
+
],
|
|
2149
|
+
custom_error_type='byte_size',
|
|
2150
|
+
custom_error_message='could not parse value and unit from byte string',
|
|
2151
|
+
),
|
|
2152
|
+
serialization=core_schema.plain_serializer_function_ser_schema(
|
|
2153
|
+
int, return_schema=core_schema.int_schema(ge=0)
|
|
2154
|
+
),
|
|
2155
|
+
)
|
|
2156
|
+
|
|
2157
|
+
@classmethod
|
|
2158
|
+
def _validate(cls, input_value: Any, /, _: core_schema.ValidationInfo) -> ByteSize:
|
|
2159
|
+
try:
|
|
2160
|
+
return cls(int(input_value))
|
|
2161
|
+
except ValueError:
|
|
2162
|
+
pass
|
|
2163
|
+
|
|
2164
|
+
str_match = cls.byte_string_re.match(str(input_value))
|
|
2165
|
+
if str_match is None:
|
|
2166
|
+
raise PydanticCustomError('byte_size', 'could not parse value and unit from byte string')
|
|
2167
|
+
|
|
2168
|
+
scalar, unit = str_match.groups()
|
|
2169
|
+
if unit is None:
|
|
2170
|
+
unit = 'b'
|
|
2171
|
+
|
|
2172
|
+
try:
|
|
2173
|
+
unit_mult = cls.byte_sizes[unit.lower()]
|
|
2174
|
+
except KeyError:
|
|
2175
|
+
raise PydanticCustomError('byte_size_unit', 'could not interpret byte unit: {unit}', {'unit': unit})
|
|
2176
|
+
|
|
2177
|
+
try:
|
|
2178
|
+
return cls(int(float(scalar) * unit_mult))
|
|
2179
|
+
except OverflowError:
|
|
2180
|
+
raise PydanticCustomError('byte_size', 'could not parse value and unit from byte string')
|
|
2181
|
+
|
|
2182
|
+
def human_readable(self, decimal: bool = False, separator: str = '') -> str:
|
|
2183
|
+
"""Converts a byte size to a human readable string.
|
|
2184
|
+
|
|
2185
|
+
Args:
|
|
2186
|
+
decimal: If True, use decimal units (e.g. 1000 bytes per KB). If False, use binary units
|
|
2187
|
+
(e.g. 1024 bytes per KiB).
|
|
2188
|
+
separator: A string used to split the value and unit. Defaults to an empty string ('').
|
|
2189
|
+
|
|
2190
|
+
Returns:
|
|
2191
|
+
A human readable string representation of the byte size.
|
|
2192
|
+
"""
|
|
2193
|
+
if decimal:
|
|
2194
|
+
divisor = 1000
|
|
2195
|
+
units = 'B', 'KB', 'MB', 'GB', 'TB', 'PB'
|
|
2196
|
+
final_unit = 'EB'
|
|
2197
|
+
else:
|
|
2198
|
+
divisor = 1024
|
|
2199
|
+
units = 'B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB'
|
|
2200
|
+
final_unit = 'EiB'
|
|
2201
|
+
|
|
2202
|
+
num = float(self)
|
|
2203
|
+
for unit in units:
|
|
2204
|
+
if abs(num) < divisor:
|
|
2205
|
+
if unit == 'B':
|
|
2206
|
+
return f'{num:0.0f}{separator}{unit}'
|
|
2207
|
+
else:
|
|
2208
|
+
return f'{num:0.1f}{separator}{unit}'
|
|
2209
|
+
num /= divisor
|
|
2210
|
+
|
|
2211
|
+
return f'{num:0.1f}{separator}{final_unit}'
|
|
2212
|
+
|
|
2213
|
+
def to(self, unit: str) -> float:
|
|
2214
|
+
"""Converts a byte size to another unit, including both byte and bit units.
|
|
2215
|
+
|
|
2216
|
+
Args:
|
|
2217
|
+
unit: The unit to convert to. Must be one of the following: B, KB, MB, GB, TB, PB, EB,
|
|
2218
|
+
KiB, MiB, GiB, TiB, PiB, EiB (byte units) and
|
|
2219
|
+
bit, kbit, mbit, gbit, tbit, pbit, ebit,
|
|
2220
|
+
kibit, mibit, gibit, tibit, pibit, eibit (bit units).
|
|
2221
|
+
|
|
2222
|
+
Returns:
|
|
2223
|
+
The byte size in the new unit.
|
|
2224
|
+
"""
|
|
2225
|
+
try:
|
|
2226
|
+
unit_div = self.byte_sizes[unit.lower()]
|
|
2227
|
+
except KeyError:
|
|
2228
|
+
raise PydanticCustomError('byte_size_unit', 'Could not interpret byte unit: {unit}', {'unit': unit})
|
|
2229
|
+
|
|
2230
|
+
return self / unit_div
|
|
2231
|
+
|
|
2232
|
+
|
|
2233
|
+
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DATE TYPES ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
2234
|
+
|
|
2235
|
+
|
|
2236
|
+
def _check_annotated_type(annotated_type: str, expected_type: str, annotation: str) -> None:
|
|
2237
|
+
if annotated_type != expected_type:
|
|
2238
|
+
raise PydanticUserError(f"'{annotation}' cannot annotate '{annotated_type}'.", code='invalid-annotated-type')
|
|
2239
|
+
|
|
2240
|
+
|
|
2241
|
+
if TYPE_CHECKING:
|
|
2242
|
+
PastDate = Annotated[date, ...]
|
|
2243
|
+
FutureDate = Annotated[date, ...]
|
|
2244
|
+
else:
|
|
2245
|
+
|
|
2246
|
+
class PastDate:
|
|
2247
|
+
"""A date in the past."""
|
|
2248
|
+
|
|
2249
|
+
@classmethod
|
|
2250
|
+
def __get_pydantic_core_schema__(
|
|
2251
|
+
cls, source: type[Any], handler: GetCoreSchemaHandler
|
|
2252
|
+
) -> core_schema.CoreSchema:
|
|
2253
|
+
if cls is source:
|
|
2254
|
+
# used directly as a type
|
|
2255
|
+
return core_schema.date_schema(now_op='past')
|
|
2256
|
+
else:
|
|
2257
|
+
schema = handler(source)
|
|
2258
|
+
_check_annotated_type(schema['type'], 'date', cls.__name__)
|
|
2259
|
+
schema['now_op'] = 'past'
|
|
2260
|
+
return schema
|
|
2261
|
+
|
|
2262
|
+
def __repr__(self) -> str:
|
|
2263
|
+
return 'PastDate'
|
|
2264
|
+
|
|
2265
|
+
class FutureDate:
|
|
2266
|
+
"""A date in the future."""
|
|
2267
|
+
|
|
2268
|
+
@classmethod
|
|
2269
|
+
def __get_pydantic_core_schema__(
|
|
2270
|
+
cls, source: type[Any], handler: GetCoreSchemaHandler
|
|
2271
|
+
) -> core_schema.CoreSchema:
|
|
2272
|
+
if cls is source:
|
|
2273
|
+
# used directly as a type
|
|
2274
|
+
return core_schema.date_schema(now_op='future')
|
|
2275
|
+
else:
|
|
2276
|
+
schema = handler(source)
|
|
2277
|
+
_check_annotated_type(schema['type'], 'date', cls.__name__)
|
|
2278
|
+
schema['now_op'] = 'future'
|
|
2279
|
+
return schema
|
|
2280
|
+
|
|
2281
|
+
def __repr__(self) -> str:
|
|
2282
|
+
return 'FutureDate'
|
|
2283
|
+
|
|
2284
|
+
|
|
2285
|
+
def condate(
|
|
2286
|
+
*,
|
|
2287
|
+
strict: bool | None = None,
|
|
2288
|
+
gt: date | None = None,
|
|
2289
|
+
ge: date | None = None,
|
|
2290
|
+
lt: date | None = None,
|
|
2291
|
+
le: date | None = None,
|
|
2292
|
+
) -> type[date]:
|
|
2293
|
+
"""A wrapper for date that adds constraints.
|
|
2294
|
+
|
|
2295
|
+
Args:
|
|
2296
|
+
strict: Whether to validate the date value in strict mode. Defaults to `None`.
|
|
2297
|
+
gt: The value must be greater than this. Defaults to `None`.
|
|
2298
|
+
ge: The value must be greater than or equal to this. Defaults to `None`.
|
|
2299
|
+
lt: The value must be less than this. Defaults to `None`.
|
|
2300
|
+
le: The value must be less than or equal to this. Defaults to `None`.
|
|
2301
|
+
|
|
2302
|
+
Returns:
|
|
2303
|
+
A date type with the specified constraints.
|
|
2304
|
+
"""
|
|
2305
|
+
return Annotated[ # pyright: ignore[reportReturnType]
|
|
2306
|
+
date,
|
|
2307
|
+
Strict(strict) if strict is not None else None,
|
|
2308
|
+
annotated_types.Interval(gt=gt, ge=ge, lt=lt, le=le),
|
|
2309
|
+
]
|
|
2310
|
+
|
|
2311
|
+
|
|
2312
|
+
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DATETIME TYPES ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
2313
|
+
|
|
2314
|
+
if TYPE_CHECKING:
|
|
2315
|
+
AwareDatetime = Annotated[datetime, ...]
|
|
2316
|
+
NaiveDatetime = Annotated[datetime, ...]
|
|
2317
|
+
PastDatetime = Annotated[datetime, ...]
|
|
2318
|
+
FutureDatetime = Annotated[datetime, ...]
|
|
2319
|
+
|
|
2320
|
+
else:
|
|
2321
|
+
|
|
2322
|
+
class AwareDatetime:
|
|
2323
|
+
"""A datetime that requires timezone info."""
|
|
2324
|
+
|
|
2325
|
+
@classmethod
|
|
2326
|
+
def __get_pydantic_core_schema__(
|
|
2327
|
+
cls, source: type[Any], handler: GetCoreSchemaHandler
|
|
2328
|
+
) -> core_schema.CoreSchema:
|
|
2329
|
+
if cls is source:
|
|
2330
|
+
# used directly as a type
|
|
2331
|
+
return core_schema.datetime_schema(tz_constraint='aware')
|
|
2332
|
+
else:
|
|
2333
|
+
schema = handler(source)
|
|
2334
|
+
_check_annotated_type(schema['type'], 'datetime', cls.__name__)
|
|
2335
|
+
schema['tz_constraint'] = 'aware'
|
|
2336
|
+
return schema
|
|
2337
|
+
|
|
2338
|
+
def __repr__(self) -> str:
|
|
2339
|
+
return 'AwareDatetime'
|
|
2340
|
+
|
|
2341
|
+
class NaiveDatetime:
|
|
2342
|
+
"""A datetime that doesn't require timezone info."""
|
|
2343
|
+
|
|
2344
|
+
@classmethod
|
|
2345
|
+
def __get_pydantic_core_schema__(
|
|
2346
|
+
cls, source: type[Any], handler: GetCoreSchemaHandler
|
|
2347
|
+
) -> core_schema.CoreSchema:
|
|
2348
|
+
if cls is source:
|
|
2349
|
+
# used directly as a type
|
|
2350
|
+
return core_schema.datetime_schema(tz_constraint='naive')
|
|
2351
|
+
else:
|
|
2352
|
+
schema = handler(source)
|
|
2353
|
+
_check_annotated_type(schema['type'], 'datetime', cls.__name__)
|
|
2354
|
+
schema['tz_constraint'] = 'naive'
|
|
2355
|
+
return schema
|
|
2356
|
+
|
|
2357
|
+
def __repr__(self) -> str:
|
|
2358
|
+
return 'NaiveDatetime'
|
|
2359
|
+
|
|
2360
|
+
class PastDatetime:
|
|
2361
|
+
"""A datetime that must be in the past."""
|
|
2362
|
+
|
|
2363
|
+
@classmethod
|
|
2364
|
+
def __get_pydantic_core_schema__(
|
|
2365
|
+
cls, source: type[Any], handler: GetCoreSchemaHandler
|
|
2366
|
+
) -> core_schema.CoreSchema:
|
|
2367
|
+
if cls is source:
|
|
2368
|
+
# used directly as a type
|
|
2369
|
+
return core_schema.datetime_schema(now_op='past')
|
|
2370
|
+
else:
|
|
2371
|
+
schema = handler(source)
|
|
2372
|
+
_check_annotated_type(schema['type'], 'datetime', cls.__name__)
|
|
2373
|
+
schema['now_op'] = 'past'
|
|
2374
|
+
return schema
|
|
2375
|
+
|
|
2376
|
+
def __repr__(self) -> str:
|
|
2377
|
+
return 'PastDatetime'
|
|
2378
|
+
|
|
2379
|
+
class FutureDatetime:
|
|
2380
|
+
"""A datetime that must be in the future."""
|
|
2381
|
+
|
|
2382
|
+
@classmethod
|
|
2383
|
+
def __get_pydantic_core_schema__(
|
|
2384
|
+
cls, source: type[Any], handler: GetCoreSchemaHandler
|
|
2385
|
+
) -> core_schema.CoreSchema:
|
|
2386
|
+
if cls is source:
|
|
2387
|
+
# used directly as a type
|
|
2388
|
+
return core_schema.datetime_schema(now_op='future')
|
|
2389
|
+
else:
|
|
2390
|
+
schema = handler(source)
|
|
2391
|
+
_check_annotated_type(schema['type'], 'datetime', cls.__name__)
|
|
2392
|
+
schema['now_op'] = 'future'
|
|
2393
|
+
return schema
|
|
2394
|
+
|
|
2395
|
+
def __repr__(self) -> str:
|
|
2396
|
+
return 'FutureDatetime'
|
|
2397
|
+
|
|
2398
|
+
|
|
2399
|
+
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Encoded TYPES ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
2400
|
+
|
|
2401
|
+
|
|
2402
|
+
class EncoderProtocol(Protocol):
|
|
2403
|
+
"""Protocol for encoding and decoding data to and from bytes."""
|
|
2404
|
+
|
|
2405
|
+
@classmethod
|
|
2406
|
+
def decode(cls, data: bytes) -> bytes:
|
|
2407
|
+
"""Decode the data using the encoder.
|
|
2408
|
+
|
|
2409
|
+
Args:
|
|
2410
|
+
data: The data to decode.
|
|
2411
|
+
|
|
2412
|
+
Returns:
|
|
2413
|
+
The decoded data.
|
|
2414
|
+
"""
|
|
2415
|
+
...
|
|
2416
|
+
|
|
2417
|
+
@classmethod
|
|
2418
|
+
def encode(cls, value: bytes) -> bytes:
|
|
2419
|
+
"""Encode the data using the encoder.
|
|
2420
|
+
|
|
2421
|
+
Args:
|
|
2422
|
+
value: The data to encode.
|
|
2423
|
+
|
|
2424
|
+
Returns:
|
|
2425
|
+
The encoded data.
|
|
2426
|
+
"""
|
|
2427
|
+
...
|
|
2428
|
+
|
|
2429
|
+
@classmethod
|
|
2430
|
+
def get_json_format(cls) -> str:
|
|
2431
|
+
"""Get the JSON format for the encoded data.
|
|
2432
|
+
|
|
2433
|
+
Returns:
|
|
2434
|
+
The JSON format for the encoded data.
|
|
2435
|
+
"""
|
|
2436
|
+
...
|
|
2437
|
+
|
|
2438
|
+
|
|
2439
|
+
class Base64Encoder(EncoderProtocol):
|
|
2440
|
+
"""Standard (non-URL-safe) Base64 encoder."""
|
|
2441
|
+
|
|
2442
|
+
@classmethod
|
|
2443
|
+
def decode(cls, data: bytes) -> bytes:
|
|
2444
|
+
"""Decode the data from base64 encoded bytes to original bytes data.
|
|
2445
|
+
|
|
2446
|
+
Args:
|
|
2447
|
+
data: The data to decode.
|
|
2448
|
+
|
|
2449
|
+
Returns:
|
|
2450
|
+
The decoded data.
|
|
2451
|
+
"""
|
|
2452
|
+
try:
|
|
2453
|
+
return base64.b64decode(data)
|
|
2454
|
+
except ValueError as e:
|
|
2455
|
+
raise PydanticCustomError('base64_decode', "Base64 decoding error: '{error}'", {'error': str(e)})
|
|
2456
|
+
|
|
2457
|
+
@classmethod
|
|
2458
|
+
def encode(cls, value: bytes) -> bytes:
|
|
2459
|
+
"""Encode the data from bytes to a base64 encoded bytes.
|
|
2460
|
+
|
|
2461
|
+
Args:
|
|
2462
|
+
value: The data to encode.
|
|
2463
|
+
|
|
2464
|
+
Returns:
|
|
2465
|
+
The encoded data.
|
|
2466
|
+
"""
|
|
2467
|
+
return base64.b64encode(value)
|
|
2468
|
+
|
|
2469
|
+
@classmethod
|
|
2470
|
+
def get_json_format(cls) -> Literal['base64']:
|
|
2471
|
+
"""Get the JSON format for the encoded data.
|
|
2472
|
+
|
|
2473
|
+
Returns:
|
|
2474
|
+
The JSON format for the encoded data.
|
|
2475
|
+
"""
|
|
2476
|
+
return 'base64'
|
|
2477
|
+
|
|
2478
|
+
|
|
2479
|
+
_urlsafe_translation = bytes.maketrans(b'+/', b'-_')
|
|
2480
|
+
|
|
2481
|
+
|
|
2482
|
+
class Base64UrlEncoder(EncoderProtocol):
|
|
2483
|
+
"""URL-safe Base64 encoder."""
|
|
2484
|
+
|
|
2485
|
+
@classmethod
|
|
2486
|
+
def decode(cls, data: bytes) -> bytes:
|
|
2487
|
+
"""Decode the data from base64 encoded bytes to original bytes data.
|
|
2488
|
+
|
|
2489
|
+
Args:
|
|
2490
|
+
data: The data to decode.
|
|
2491
|
+
|
|
2492
|
+
Returns:
|
|
2493
|
+
The decoded data.
|
|
2494
|
+
"""
|
|
2495
|
+
try:
|
|
2496
|
+
if sys.version_info >= (3, 15):
|
|
2497
|
+
# In Python >= 3.15, `urlsafe_b64decode()` doesn't require padded input anymore.
|
|
2498
|
+
# It also raises a `FutureWarning` if '+' or '/' is found in input (and translates it
|
|
2499
|
+
# to '-' and '_'). We can't have this warning raised while validating, so we do the translation
|
|
2500
|
+
# ourselves.
|
|
2501
|
+
data = data.translate(_urlsafe_translation)
|
|
2502
|
+
return base64.urlsafe_b64decode(data, padded=True)
|
|
2503
|
+
else:
|
|
2504
|
+
return base64.urlsafe_b64decode(data)
|
|
2505
|
+
except ValueError as e:
|
|
2506
|
+
raise PydanticCustomError('base64_decode', "Base64 decoding error: '{error}'", {'error': str(e)})
|
|
2507
|
+
|
|
2508
|
+
@classmethod
|
|
2509
|
+
def encode(cls, value: bytes) -> bytes:
|
|
2510
|
+
"""Encode the data from bytes to a base64 encoded bytes.
|
|
2511
|
+
|
|
2512
|
+
Args:
|
|
2513
|
+
value: The data to encode.
|
|
2514
|
+
|
|
2515
|
+
Returns:
|
|
2516
|
+
The encoded data.
|
|
2517
|
+
"""
|
|
2518
|
+
return base64.urlsafe_b64encode(value)
|
|
2519
|
+
|
|
2520
|
+
@classmethod
|
|
2521
|
+
def get_json_format(cls) -> Literal['base64url']:
|
|
2522
|
+
"""Get the JSON format for the encoded data.
|
|
2523
|
+
|
|
2524
|
+
Returns:
|
|
2525
|
+
The JSON format for the encoded data.
|
|
2526
|
+
"""
|
|
2527
|
+
return 'base64url'
|
|
2528
|
+
|
|
2529
|
+
|
|
2530
|
+
@_dataclasses.dataclass(slots=True)
|
|
2531
|
+
class EncodedBytes:
|
|
2532
|
+
"""A bytes type that is encoded and decoded using the specified encoder.
|
|
2533
|
+
|
|
2534
|
+
`EncodedBytes` needs an encoder that implements `EncoderProtocol` to operate.
|
|
2535
|
+
|
|
2536
|
+
```python
|
|
2537
|
+
from typing import Annotated
|
|
2538
|
+
|
|
2539
|
+
from pydantic import BaseModel, EncodedBytes, EncoderProtocol, ValidationError
|
|
2540
|
+
|
|
2541
|
+
class MyEncoder(EncoderProtocol):
|
|
2542
|
+
@classmethod
|
|
2543
|
+
def decode(cls, data: bytes) -> bytes:
|
|
2544
|
+
if data == b'**undecodable**':
|
|
2545
|
+
raise ValueError('Cannot decode data')
|
|
2546
|
+
return data[13:]
|
|
2547
|
+
|
|
2548
|
+
@classmethod
|
|
2549
|
+
def encode(cls, value: bytes) -> bytes:
|
|
2550
|
+
return b'**encoded**: ' + value
|
|
2551
|
+
|
|
2552
|
+
@classmethod
|
|
2553
|
+
def get_json_format(cls) -> str:
|
|
2554
|
+
return 'my-encoder'
|
|
2555
|
+
|
|
2556
|
+
MyEncodedBytes = Annotated[bytes, EncodedBytes(encoder=MyEncoder)]
|
|
2557
|
+
|
|
2558
|
+
class Model(BaseModel):
|
|
2559
|
+
my_encoded_bytes: MyEncodedBytes
|
|
2560
|
+
|
|
2561
|
+
# Initialize the model with encoded data
|
|
2562
|
+
m = Model(my_encoded_bytes=b'**encoded**: some bytes')
|
|
2563
|
+
|
|
2564
|
+
# Access decoded value
|
|
2565
|
+
print(m.my_encoded_bytes)
|
|
2566
|
+
#> b'some bytes'
|
|
2567
|
+
|
|
2568
|
+
# Serialize into the encoded form
|
|
2569
|
+
print(m.model_dump())
|
|
2570
|
+
#> {'my_encoded_bytes': b'**encoded**: some bytes'}
|
|
2571
|
+
|
|
2572
|
+
# Validate encoded data
|
|
2573
|
+
try:
|
|
2574
|
+
Model(my_encoded_bytes=b'**undecodable**')
|
|
2575
|
+
except ValidationError as e:
|
|
2576
|
+
print(e)
|
|
2577
|
+
'''
|
|
2578
|
+
1 validation error for Model
|
|
2579
|
+
my_encoded_bytes
|
|
2580
|
+
Value error, Cannot decode data [type=value_error, input_value=b'**undecodable**', input_type=bytes]
|
|
2581
|
+
'''
|
|
2582
|
+
```
|
|
2583
|
+
"""
|
|
2584
|
+
|
|
2585
|
+
encoder: type[EncoderProtocol]
|
|
2586
|
+
|
|
2587
|
+
def __get_pydantic_json_schema__(
|
|
2588
|
+
self, core_schema: core_schema.CoreSchema, handler: GetJsonSchemaHandler
|
|
2589
|
+
) -> JsonSchemaValue:
|
|
2590
|
+
field_schema = handler(core_schema)
|
|
2591
|
+
field_schema.update(type='string', format=self.encoder.get_json_format())
|
|
2592
|
+
return field_schema
|
|
2593
|
+
|
|
2594
|
+
def __get_pydantic_core_schema__(self, source: type[Any], handler: GetCoreSchemaHandler) -> core_schema.CoreSchema:
|
|
2595
|
+
schema = handler(source)
|
|
2596
|
+
_check_annotated_type(schema['type'], 'bytes', self.__class__.__name__)
|
|
2597
|
+
return core_schema.with_info_after_validator_function(
|
|
2598
|
+
function=self.decode,
|
|
2599
|
+
schema=schema,
|
|
2600
|
+
serialization=core_schema.plain_serializer_function_ser_schema(function=self.encode),
|
|
2601
|
+
)
|
|
2602
|
+
|
|
2603
|
+
def decode(self, data: bytes, _: core_schema.ValidationInfo) -> bytes:
|
|
2604
|
+
"""Decode the data using the specified encoder.
|
|
2605
|
+
|
|
2606
|
+
Args:
|
|
2607
|
+
data: The data to decode.
|
|
2608
|
+
|
|
2609
|
+
Returns:
|
|
2610
|
+
The decoded data.
|
|
2611
|
+
"""
|
|
2612
|
+
return self.encoder.decode(data)
|
|
2613
|
+
|
|
2614
|
+
def encode(self, value: bytes) -> bytes:
|
|
2615
|
+
"""Encode the data using the specified encoder.
|
|
2616
|
+
|
|
2617
|
+
Args:
|
|
2618
|
+
value: The data to encode.
|
|
2619
|
+
|
|
2620
|
+
Returns:
|
|
2621
|
+
The encoded data.
|
|
2622
|
+
"""
|
|
2623
|
+
return self.encoder.encode(value)
|
|
2624
|
+
|
|
2625
|
+
def __hash__(self) -> int:
|
|
2626
|
+
return hash(self.encoder)
|
|
2627
|
+
|
|
2628
|
+
|
|
2629
|
+
@_dataclasses.dataclass(slots=True)
|
|
2630
|
+
class EncodedStr:
|
|
2631
|
+
"""A str type that is encoded and decoded using the specified encoder.
|
|
2632
|
+
|
|
2633
|
+
`EncodedStr` needs an encoder that implements `EncoderProtocol` to operate.
|
|
2634
|
+
|
|
2635
|
+
```python
|
|
2636
|
+
from typing import Annotated
|
|
2637
|
+
|
|
2638
|
+
from pydantic import BaseModel, EncodedStr, EncoderProtocol, ValidationError
|
|
2639
|
+
|
|
2640
|
+
class MyEncoder(EncoderProtocol):
|
|
2641
|
+
@classmethod
|
|
2642
|
+
def decode(cls, data: bytes) -> bytes:
|
|
2643
|
+
if data == b'**undecodable**':
|
|
2644
|
+
raise ValueError('Cannot decode data')
|
|
2645
|
+
return data[13:]
|
|
2646
|
+
|
|
2647
|
+
@classmethod
|
|
2648
|
+
def encode(cls, value: bytes) -> bytes:
|
|
2649
|
+
return b'**encoded**: ' + value
|
|
2650
|
+
|
|
2651
|
+
@classmethod
|
|
2652
|
+
def get_json_format(cls) -> str:
|
|
2653
|
+
return 'my-encoder'
|
|
2654
|
+
|
|
2655
|
+
MyEncodedStr = Annotated[str, EncodedStr(encoder=MyEncoder)]
|
|
2656
|
+
|
|
2657
|
+
class Model(BaseModel):
|
|
2658
|
+
my_encoded_str: MyEncodedStr
|
|
2659
|
+
|
|
2660
|
+
# Initialize the model with encoded data
|
|
2661
|
+
m = Model(my_encoded_str='**encoded**: some str')
|
|
2662
|
+
|
|
2663
|
+
# Access decoded value
|
|
2664
|
+
print(m.my_encoded_str)
|
|
2665
|
+
#> some str
|
|
2666
|
+
|
|
2667
|
+
# Serialize into the encoded form
|
|
2668
|
+
print(m.model_dump())
|
|
2669
|
+
#> {'my_encoded_str': '**encoded**: some str'}
|
|
2670
|
+
|
|
2671
|
+
# Validate encoded data
|
|
2672
|
+
try:
|
|
2673
|
+
Model(my_encoded_str='**undecodable**')
|
|
2674
|
+
except ValidationError as e:
|
|
2675
|
+
print(e)
|
|
2676
|
+
'''
|
|
2677
|
+
1 validation error for Model
|
|
2678
|
+
my_encoded_str
|
|
2679
|
+
Value error, Cannot decode data [type=value_error, input_value='**undecodable**', input_type=str]
|
|
2680
|
+
'''
|
|
2681
|
+
```
|
|
2682
|
+
"""
|
|
2683
|
+
|
|
2684
|
+
encoder: type[EncoderProtocol]
|
|
2685
|
+
|
|
2686
|
+
def __get_pydantic_json_schema__(
|
|
2687
|
+
self, core_schema: core_schema.CoreSchema, handler: GetJsonSchemaHandler
|
|
2688
|
+
) -> JsonSchemaValue:
|
|
2689
|
+
field_schema = handler(core_schema)
|
|
2690
|
+
field_schema.update(type='string', format=self.encoder.get_json_format())
|
|
2691
|
+
return field_schema
|
|
2692
|
+
|
|
2693
|
+
def __get_pydantic_core_schema__(self, source: type[Any], handler: GetCoreSchemaHandler) -> core_schema.CoreSchema:
|
|
2694
|
+
schema = handler(source)
|
|
2695
|
+
_check_annotated_type(schema['type'], 'str', self.__class__.__name__)
|
|
2696
|
+
return core_schema.with_info_after_validator_function(
|
|
2697
|
+
function=self.decode_str,
|
|
2698
|
+
schema=schema,
|
|
2699
|
+
serialization=core_schema.plain_serializer_function_ser_schema(function=self.encode_str),
|
|
2700
|
+
)
|
|
2701
|
+
|
|
2702
|
+
def decode_str(self, data: str, _: core_schema.ValidationInfo) -> str:
|
|
2703
|
+
"""Decode the data using the specified encoder.
|
|
2704
|
+
|
|
2705
|
+
Args:
|
|
2706
|
+
data: The data to decode.
|
|
2707
|
+
|
|
2708
|
+
Returns:
|
|
2709
|
+
The decoded data.
|
|
2710
|
+
"""
|
|
2711
|
+
return self.encoder.decode(data.encode()).decode()
|
|
2712
|
+
|
|
2713
|
+
def encode_str(self, value: str) -> str:
|
|
2714
|
+
"""Encode the data using the specified encoder.
|
|
2715
|
+
|
|
2716
|
+
Args:
|
|
2717
|
+
value: The data to encode.
|
|
2718
|
+
|
|
2719
|
+
Returns:
|
|
2720
|
+
The encoded data.
|
|
2721
|
+
"""
|
|
2722
|
+
return self.encoder.encode(value.encode()).decode() # noqa: UP008
|
|
2723
|
+
|
|
2724
|
+
def __hash__(self) -> int:
|
|
2725
|
+
return hash(self.encoder)
|
|
2726
|
+
|
|
2727
|
+
|
|
2728
|
+
Base64Bytes = Annotated[bytes, EncodedBytes(encoder=Base64Encoder)]
|
|
2729
|
+
"""A bytes type that is encoded and decoded using the standard (non-URL-safe) base64 encoder.
|
|
2730
|
+
|
|
2731
|
+
Note:
|
|
2732
|
+
Under the hood, `Base64Bytes` uses the standard library [`base64.b64encode()`][base64.b64encode] and [`base64.b64decode()`][base64.b64decode] functions.
|
|
2733
|
+
|
|
2734
|
+
As a result, attempting to decode url-safe base64 data using the `Base64Bytes` type may fail or produce an incorrect
|
|
2735
|
+
decoding.
|
|
2736
|
+
|
|
2737
|
+
/// version-changed | v2.10
|
|
2738
|
+
`Base64Bytes` now uses [`base64.b64encode()`][base64.b64encode] and [`base64.b64decode()`][base64.b64decode]
|
|
2739
|
+
instead of [`base64.encodebytes()`][base64.encodebytes] and [`base64.decodebytes()`][base64.decodebytes].
|
|
2740
|
+
|
|
2741
|
+
These methods are considered legacy implementation. If you'd still like to use these legacy encoders/decoders,
|
|
2742
|
+
you can achieve this by creating a custom annotated type, like follows:
|
|
2743
|
+
```python
|
|
2744
|
+
import base64
|
|
2745
|
+
from typing import Annotated, Literal
|
|
2746
|
+
|
|
2747
|
+
from pydantic_core import PydanticCustomError
|
|
2748
|
+
|
|
2749
|
+
from pydantic import EncodedBytes, EncoderProtocol
|
|
2750
|
+
|
|
2751
|
+
class LegacyBase64Encoder(EncoderProtocol):
|
|
2752
|
+
@classmethod
|
|
2753
|
+
def decode(cls, data: bytes) -> bytes:
|
|
2754
|
+
try:
|
|
2755
|
+
return base64.decodebytes(data)
|
|
2756
|
+
except ValueError as e:
|
|
2757
|
+
raise PydanticCustomError(
|
|
2758
|
+
'base64_decode',
|
|
2759
|
+
"Base64 decoding error: '{error}'",
|
|
2760
|
+
{'error': str(e)},
|
|
2761
|
+
)
|
|
2762
|
+
|
|
2763
|
+
@classmethod
|
|
2764
|
+
def encode(cls, value: bytes) -> bytes:
|
|
2765
|
+
return base64.encodebytes(value)
|
|
2766
|
+
|
|
2767
|
+
@classmethod
|
|
2768
|
+
def get_json_format(cls) -> Literal['base64']:
|
|
2769
|
+
return 'base64'
|
|
2770
|
+
|
|
2771
|
+
LegacyBase64Bytes = Annotated[bytes, EncodedBytes(encoder=LegacyBase64Encoder)]
|
|
2772
|
+
```
|
|
2773
|
+
///
|
|
2774
|
+
|
|
2775
|
+
```python
|
|
2776
|
+
from pydantic import Base64Bytes, BaseModel, ValidationError
|
|
2777
|
+
|
|
2778
|
+
class Model(BaseModel):
|
|
2779
|
+
base64_bytes: Base64Bytes
|
|
2780
|
+
|
|
2781
|
+
# Initialize the model with base64 data
|
|
2782
|
+
m = Model(base64_bytes=b'VGhpcyBpcyB0aGUgd2F5')
|
|
2783
|
+
|
|
2784
|
+
# Access decoded value
|
|
2785
|
+
print(m.base64_bytes)
|
|
2786
|
+
#> b'This is the way'
|
|
2787
|
+
|
|
2788
|
+
# Serialize into the base64 form
|
|
2789
|
+
print(m.model_dump())
|
|
2790
|
+
#> {'base64_bytes': b'VGhpcyBpcyB0aGUgd2F5'}
|
|
2791
|
+
|
|
2792
|
+
# Validate base64 data
|
|
2793
|
+
try:
|
|
2794
|
+
print(Model(base64_bytes=b'undecodable').base64_bytes)
|
|
2795
|
+
except ValidationError as e:
|
|
2796
|
+
print(e)
|
|
2797
|
+
'''
|
|
2798
|
+
1 validation error for Model
|
|
2799
|
+
base64_bytes
|
|
2800
|
+
Base64 decoding error: 'Incorrect padding' [type=base64_decode, input_value=b'undecodable', input_type=bytes]
|
|
2801
|
+
'''
|
|
2802
|
+
```
|
|
2803
|
+
"""
|
|
2804
|
+
Base64Str = Annotated[str, EncodedStr(encoder=Base64Encoder)]
|
|
2805
|
+
"""A string type that is encoded and decoded using the standard (non-URL-safe) base64 encoder.
|
|
2806
|
+
|
|
2807
|
+
Note:
|
|
2808
|
+
Under the hood, `Base64Str` uses the standard library [`base64.b64encode()`][base64.b64encode] and [`base64.b64decode()`][base64.b64decode] functions.
|
|
2809
|
+
|
|
2810
|
+
As a result, attempting to decode url-safe base64 data using the `Base64Str` type may fail or produce an incorrect
|
|
2811
|
+
decoding.
|
|
2812
|
+
|
|
2813
|
+
/// version-changed | v2.10
|
|
2814
|
+
`Base64Str` now uses [`base64.b64encode()`][base64.b64encode] and [`base64.b64decode()`][base64.b64decode]
|
|
2815
|
+
instead of [`base64.encodebytes()`][base64.encodebytes] and [`base64.decodebytes()`][base64.decodebytes].
|
|
2816
|
+
|
|
2817
|
+
These methods are considered legacy implementation. See the documentation about the [`Base64Bytes`][pydantic.types.Base64Bytes] type
|
|
2818
|
+
for more information on how to replicate the old behavior with the legacy encoders/decoders.
|
|
2819
|
+
///
|
|
2820
|
+
|
|
2821
|
+
|
|
2822
|
+
```python
|
|
2823
|
+
from pydantic import Base64Str, BaseModel, ValidationError
|
|
2824
|
+
|
|
2825
|
+
class Model(BaseModel):
|
|
2826
|
+
base64_str: Base64Str
|
|
2827
|
+
|
|
2828
|
+
# Initialize the model with base64 data
|
|
2829
|
+
m = Model(base64_str='VGhlc2UgYXJlbid0IHRoZSBkcm9pZHMgeW91J3JlIGxvb2tpbmcgZm9y')
|
|
2830
|
+
|
|
2831
|
+
# Access decoded value
|
|
2832
|
+
print(m.base64_str)
|
|
2833
|
+
#> These aren't the droids you're looking for
|
|
2834
|
+
|
|
2835
|
+
# Serialize into the base64 form
|
|
2836
|
+
print(m.model_dump())
|
|
2837
|
+
#> {'base64_str': 'VGhlc2UgYXJlbid0IHRoZSBkcm9pZHMgeW91J3JlIGxvb2tpbmcgZm9y'}
|
|
2838
|
+
|
|
2839
|
+
# Validate base64 data
|
|
2840
|
+
try:
|
|
2841
|
+
print(Model(base64_str='undecodable').base64_str)
|
|
2842
|
+
except ValidationError as e:
|
|
2843
|
+
print(e)
|
|
2844
|
+
'''
|
|
2845
|
+
1 validation error for Model
|
|
2846
|
+
base64_str
|
|
2847
|
+
Base64 decoding error: 'Incorrect padding' [type=base64_decode, input_value='undecodable', input_type=str]
|
|
2848
|
+
'''
|
|
2849
|
+
```
|
|
2850
|
+
"""
|
|
2851
|
+
Base64UrlBytes = Annotated[bytes, EncodedBytes(encoder=Base64UrlEncoder)]
|
|
2852
|
+
"""A bytes type that is encoded and decoded using the URL-safe base64 encoder.
|
|
2853
|
+
|
|
2854
|
+
Note:
|
|
2855
|
+
Under the hood, `Base64UrlBytes` uses the standard library [`base64.urlsafe_b64encode()`][base64.urlsafe_b64encode]
|
|
2856
|
+
and [`base64.urlsafe_b64decode()`][base64.urlsafe_b64decode] functions.
|
|
2857
|
+
|
|
2858
|
+
```python
|
|
2859
|
+
from pydantic import Base64UrlBytes, BaseModel
|
|
2860
|
+
|
|
2861
|
+
class Model(BaseModel):
|
|
2862
|
+
base64url_bytes: Base64UrlBytes
|
|
2863
|
+
|
|
2864
|
+
# Initialize the model with base64 data
|
|
2865
|
+
m = Model(base64url_bytes=b'SHc_dHc-TXc==')
|
|
2866
|
+
print(m)
|
|
2867
|
+
#> base64url_bytes=b'Hw?tw>Mw'
|
|
2868
|
+
```
|
|
2869
|
+
"""
|
|
2870
|
+
Base64UrlStr = Annotated[str, EncodedStr(encoder=Base64UrlEncoder)]
|
|
2871
|
+
"""A str type that is encoded and decoded using the URL-safe base64 encoder.
|
|
2872
|
+
|
|
2873
|
+
Note:
|
|
2874
|
+
Under the hood, `Base64UrlStr` uses the standard library [`base64.urlsafe_b64encode()`][base64.urlsafe_b64encode]
|
|
2875
|
+
and [`base64.urlsafe_b64decode()`][base64.urlsafe_b64decode] functions.
|
|
2876
|
+
|
|
2877
|
+
```python
|
|
2878
|
+
from pydantic import Base64UrlStr, BaseModel
|
|
2879
|
+
|
|
2880
|
+
class Model(BaseModel):
|
|
2881
|
+
base64url_str: Base64UrlStr
|
|
2882
|
+
|
|
2883
|
+
# Initialize the model with base64 data
|
|
2884
|
+
m = Model(base64url_str='SHc_dHc-TXc==')
|
|
2885
|
+
print(m)
|
|
2886
|
+
#> base64url_str='Hw?tw>Mw'
|
|
2887
|
+
```
|
|
2888
|
+
"""
|
|
2889
|
+
|
|
2890
|
+
|
|
2891
|
+
__getattr__ = getattr_migration(__name__)
|
|
2892
|
+
|
|
2893
|
+
|
|
2894
|
+
@_dataclasses.dataclass(slots=True)
|
|
2895
|
+
class GetPydanticSchema:
|
|
2896
|
+
"""!!! abstract "Usage Documentation"
|
|
2897
|
+
[Using `GetPydanticSchema` to Reduce Boilerplate](../concepts/types.md#using-getpydanticschema-to-reduce-boilerplate)
|
|
2898
|
+
|
|
2899
|
+
A convenience class for creating an annotation that provides pydantic custom type hooks.
|
|
2900
|
+
|
|
2901
|
+
This class is intended to eliminate the need to create a custom "marker" which defines the
|
|
2902
|
+
`__get_pydantic_core_schema__` and `__get_pydantic_json_schema__` custom hook methods.
|
|
2903
|
+
|
|
2904
|
+
For example, to have a field treated by type checkers as `int`, but by pydantic as `Any`, you can do:
|
|
2905
|
+
```python
|
|
2906
|
+
from typing import Annotated, Any
|
|
2907
|
+
|
|
2908
|
+
from pydantic import BaseModel, GetPydanticSchema
|
|
2909
|
+
|
|
2910
|
+
HandleAsAny = GetPydanticSchema(lambda _s, h: h(Any))
|
|
2911
|
+
|
|
2912
|
+
class Model(BaseModel):
|
|
2913
|
+
x: Annotated[int, HandleAsAny] # pydantic sees `x: Any`
|
|
2914
|
+
|
|
2915
|
+
print(repr(Model(x='abc').x))
|
|
2916
|
+
#> 'abc'
|
|
2917
|
+
```
|
|
2918
|
+
"""
|
|
2919
|
+
|
|
2920
|
+
get_pydantic_core_schema: Callable[[Any, GetCoreSchemaHandler], CoreSchema] | None = None
|
|
2921
|
+
get_pydantic_json_schema: Callable[[Any, GetJsonSchemaHandler], JsonSchemaValue] | None = None
|
|
2922
|
+
|
|
2923
|
+
# Note: we may want to consider adding a convenience staticmethod `def for_type(type_: Any) -> GetPydanticSchema:`
|
|
2924
|
+
# which returns `GetPydanticSchema(lambda _s, h: h(type_))`
|
|
2925
|
+
|
|
2926
|
+
if not TYPE_CHECKING:
|
|
2927
|
+
# We put `__getattr__` in a non-TYPE_CHECKING block because otherwise, mypy allows arbitrary attribute access
|
|
2928
|
+
|
|
2929
|
+
def __getattr__(self, item: str) -> Any:
|
|
2930
|
+
"""Use this rather than defining `__get_pydantic_core_schema__` etc. to reduce the number of nested calls."""
|
|
2931
|
+
if item == '__get_pydantic_core_schema__' and self.get_pydantic_core_schema:
|
|
2932
|
+
return self.get_pydantic_core_schema
|
|
2933
|
+
elif item == '__get_pydantic_json_schema__' and self.get_pydantic_json_schema:
|
|
2934
|
+
return self.get_pydantic_json_schema
|
|
2935
|
+
else:
|
|
2936
|
+
return object.__getattribute__(self, item)
|
|
2937
|
+
|
|
2938
|
+
__hash__ = object.__hash__
|
|
2939
|
+
|
|
2940
|
+
|
|
2941
|
+
@_dataclasses.dataclass(slots=True, frozen=True)
|
|
2942
|
+
class Tag:
|
|
2943
|
+
"""Provides a way to specify the expected tag to use for a case of a (callable) discriminated union.
|
|
2944
|
+
|
|
2945
|
+
Also provides a way to label a union case in error messages.
|
|
2946
|
+
|
|
2947
|
+
When using a callable `Discriminator`, attach a `Tag` to each case in the union to specify the tag that
|
|
2948
|
+
should be used to identify that case. For example, in the below example, the `Tag` is used to specify that
|
|
2949
|
+
if `get_discriminator_value` returns `'apple'`, the input should be validated as an `ApplePie`, and if it
|
|
2950
|
+
returns `'pumpkin'`, the input should be validated as a `PumpkinPie`.
|
|
2951
|
+
|
|
2952
|
+
The primary role of the `Tag` here is to map the return value from the callable `Discriminator` function to
|
|
2953
|
+
the appropriate member of the union in question.
|
|
2954
|
+
|
|
2955
|
+
```python {lint="skip"}
|
|
2956
|
+
from typing import Annotated, Any, Literal
|
|
2957
|
+
|
|
2958
|
+
from pydantic import BaseModel, Discriminator, Tag
|
|
2959
|
+
|
|
2960
|
+
class Pie(BaseModel):
|
|
2961
|
+
time_to_cook: int
|
|
2962
|
+
num_ingredients: int
|
|
2963
|
+
|
|
2964
|
+
class ApplePie(Pie):
|
|
2965
|
+
fruit: Literal['apple'] = 'apple'
|
|
2966
|
+
|
|
2967
|
+
class PumpkinPie(Pie):
|
|
2968
|
+
filling: Literal['pumpkin'] = 'pumpkin'
|
|
2969
|
+
|
|
2970
|
+
def get_discriminator_value(v: Any) -> str:
|
|
2971
|
+
if isinstance(v, dict):
|
|
2972
|
+
return v.get('fruit', v.get('filling'))
|
|
2973
|
+
return getattr(v, 'fruit', getattr(v, 'filling', None))
|
|
2974
|
+
|
|
2975
|
+
class ThanksgivingDinner(BaseModel):
|
|
2976
|
+
dessert: Annotated[
|
|
2977
|
+
Annotated[ApplePie, Tag('apple')] | Annotated[PumpkinPie, Tag('pumpkin')],
|
|
2978
|
+
Discriminator(get_discriminator_value),
|
|
2979
|
+
]
|
|
2980
|
+
|
|
2981
|
+
apple_variation = ThanksgivingDinner.model_validate(
|
|
2982
|
+
{'dessert': {'fruit': 'apple', 'time_to_cook': 60, 'num_ingredients': 8}}
|
|
2983
|
+
)
|
|
2984
|
+
print(repr(apple_variation))
|
|
2985
|
+
'''
|
|
2986
|
+
ThanksgivingDinner(dessert=ApplePie(time_to_cook=60, num_ingredients=8, fruit='apple'))
|
|
2987
|
+
'''
|
|
2988
|
+
|
|
2989
|
+
pumpkin_variation = ThanksgivingDinner.model_validate(
|
|
2990
|
+
{
|
|
2991
|
+
'dessert': {
|
|
2992
|
+
'filling': 'pumpkin',
|
|
2993
|
+
'time_to_cook': 40,
|
|
2994
|
+
'num_ingredients': 6,
|
|
2995
|
+
}
|
|
2996
|
+
}
|
|
2997
|
+
)
|
|
2998
|
+
print(repr(pumpkin_variation))
|
|
2999
|
+
'''
|
|
3000
|
+
ThanksgivingDinner(dessert=PumpkinPie(time_to_cook=40, num_ingredients=6, filling='pumpkin'))
|
|
3001
|
+
'''
|
|
3002
|
+
```
|
|
3003
|
+
|
|
3004
|
+
!!! note
|
|
3005
|
+
You must specify a `Tag` for every case in a `Tag` that is associated with a
|
|
3006
|
+
callable `Discriminator`. Failing to do so will result in a `PydanticUserError` with code
|
|
3007
|
+
[`callable-discriminator-no-tag`](../errors/usage_errors.md#callable-discriminator-no-tag).
|
|
3008
|
+
|
|
3009
|
+
See the [Discriminated Unions] concepts docs for more details on how to use `Tag`s.
|
|
3010
|
+
|
|
3011
|
+
[Discriminated Unions]: ../concepts/unions.md#discriminated-unions
|
|
3012
|
+
"""
|
|
3013
|
+
|
|
3014
|
+
tag: str
|
|
3015
|
+
|
|
3016
|
+
def __get_pydantic_core_schema__(self, source_type: Any, handler: GetCoreSchemaHandler) -> CoreSchema:
|
|
3017
|
+
schema = handler(source_type)
|
|
3018
|
+
metadata = cast('CoreMetadata', schema.setdefault('metadata', {}))
|
|
3019
|
+
metadata['pydantic_internal_union_tag_key'] = self.tag
|
|
3020
|
+
return schema
|
|
3021
|
+
|
|
3022
|
+
|
|
3023
|
+
@_dataclasses.dataclass(slots=True, frozen=True)
|
|
3024
|
+
class Discriminator:
|
|
3025
|
+
"""!!! abstract "Usage Documentation"
|
|
3026
|
+
[Discriminated Unions with `Callable` `Discriminator`](../concepts/unions.md#discriminated-unions-with-callable-discriminator)
|
|
3027
|
+
|
|
3028
|
+
Provides a way to use a custom callable as the way to extract the value of a union discriminator.
|
|
3029
|
+
|
|
3030
|
+
This allows you to get validation behavior like you'd get from `Field(discriminator=<field_name>)`,
|
|
3031
|
+
but without needing to have a single shared field across all the union choices. This also makes it
|
|
3032
|
+
possible to handle unions of models and primitive types with discriminated-union-style validation errors.
|
|
3033
|
+
Finally, this allows you to use a custom callable as the way to identify which member of a union a value
|
|
3034
|
+
belongs to, while still seeing all the performance benefits of a discriminated union.
|
|
3035
|
+
|
|
3036
|
+
Consider this example, which is much more performant with the use of `Discriminator` and thus a `TaggedUnion`
|
|
3037
|
+
than it would be as a normal union.
|
|
3038
|
+
|
|
3039
|
+
```python {lint="skip"}
|
|
3040
|
+
from typing import Annotated, Any, Literal
|
|
3041
|
+
|
|
3042
|
+
from pydantic import BaseModel, Discriminator, Tag
|
|
3043
|
+
|
|
3044
|
+
class Pie(BaseModel):
|
|
3045
|
+
time_to_cook: int
|
|
3046
|
+
num_ingredients: int
|
|
3047
|
+
|
|
3048
|
+
class ApplePie(Pie):
|
|
3049
|
+
fruit: Literal['apple'] = 'apple'
|
|
3050
|
+
|
|
3051
|
+
class PumpkinPie(Pie):
|
|
3052
|
+
filling: Literal['pumpkin'] = 'pumpkin'
|
|
3053
|
+
|
|
3054
|
+
def get_discriminator_value(v: Any) -> str:
|
|
3055
|
+
if isinstance(v, dict):
|
|
3056
|
+
return v.get('fruit', v.get('filling'))
|
|
3057
|
+
return getattr(v, 'fruit', getattr(v, 'filling', None))
|
|
3058
|
+
|
|
3059
|
+
class ThanksgivingDinner(BaseModel):
|
|
3060
|
+
dessert: Annotated[
|
|
3061
|
+
Annotated[ApplePie, Tag('apple')] | Annotated[PumpkinPie, Tag('pumpkin')],
|
|
3062
|
+
Discriminator(get_discriminator_value),
|
|
3063
|
+
]
|
|
3064
|
+
|
|
3065
|
+
apple_variation = ThanksgivingDinner.model_validate(
|
|
3066
|
+
{'dessert': {'fruit': 'apple', 'time_to_cook': 60, 'num_ingredients': 8}}
|
|
3067
|
+
)
|
|
3068
|
+
print(repr(apple_variation))
|
|
3069
|
+
'''
|
|
3070
|
+
ThanksgivingDinner(dessert=ApplePie(time_to_cook=60, num_ingredients=8, fruit='apple'))
|
|
3071
|
+
'''
|
|
3072
|
+
|
|
3073
|
+
pumpkin_variation = ThanksgivingDinner.model_validate(
|
|
3074
|
+
{
|
|
3075
|
+
'dessert': {
|
|
3076
|
+
'filling': 'pumpkin',
|
|
3077
|
+
'time_to_cook': 40,
|
|
3078
|
+
'num_ingredients': 6,
|
|
3079
|
+
}
|
|
3080
|
+
}
|
|
3081
|
+
)
|
|
3082
|
+
print(repr(pumpkin_variation))
|
|
3083
|
+
'''
|
|
3084
|
+
ThanksgivingDinner(dessert=PumpkinPie(time_to_cook=40, num_ingredients=6, filling='pumpkin'))
|
|
3085
|
+
'''
|
|
3086
|
+
```
|
|
3087
|
+
|
|
3088
|
+
See the [Discriminated Unions] concepts docs for more details on how to use `Discriminator`s.
|
|
3089
|
+
|
|
3090
|
+
[Discriminated Unions]: ../concepts/unions.md#discriminated-unions
|
|
3091
|
+
"""
|
|
3092
|
+
|
|
3093
|
+
discriminator: str | Callable[[Any], Hashable]
|
|
3094
|
+
"""The callable or field name for discriminating the type in a tagged union.
|
|
3095
|
+
|
|
3096
|
+
A `Callable` discriminator must extract the value of the discriminator from the input.
|
|
3097
|
+
A `str` discriminator must be the name of a field to discriminate against.
|
|
3098
|
+
"""
|
|
3099
|
+
custom_error_type: str | None = None
|
|
3100
|
+
"""Type to use in [custom errors](../errors/errors.md) replacing the standard discriminated union
|
|
3101
|
+
validation errors.
|
|
3102
|
+
"""
|
|
3103
|
+
custom_error_message: str | None = None
|
|
3104
|
+
"""Message to use in custom errors."""
|
|
3105
|
+
custom_error_context: dict[str, int | str | float] | None = None
|
|
3106
|
+
"""Context to use in custom errors."""
|
|
3107
|
+
|
|
3108
|
+
def __get_pydantic_core_schema__(self, source_type: Any, handler: GetCoreSchemaHandler) -> CoreSchema:
|
|
3109
|
+
if isinstance(self.discriminator, str):
|
|
3110
|
+
from pydantic import Field
|
|
3111
|
+
|
|
3112
|
+
return handler(Annotated[source_type, Field(discriminator=self.discriminator)])
|
|
3113
|
+
else:
|
|
3114
|
+
original_schema = handler(source_type)
|
|
3115
|
+
return self._convert_schema(original_schema, handler)
|
|
3116
|
+
|
|
3117
|
+
def _convert_schema(
|
|
3118
|
+
self,
|
|
3119
|
+
original_schema: core_schema.CoreSchema,
|
|
3120
|
+
handler: GetCoreSchemaHandler | None = None,
|
|
3121
|
+
definitions: dict[str, core_schema.CoreSchema] | None = None,
|
|
3122
|
+
) -> core_schema.TaggedUnionSchema:
|
|
3123
|
+
def _resolve_ref(schema: core_schema.CoreSchema) -> core_schema.CoreSchema | None:
|
|
3124
|
+
# `handler` is set when this method is called while generating the schema for the field
|
|
3125
|
+
# (e.g. via `Annotated[<type>, Discriminator(...)]`). `definitions` is set instead when
|
|
3126
|
+
# this method is called from `apply_discriminator()` (deferred/callable discriminators).
|
|
3127
|
+
if handler is not None:
|
|
3128
|
+
try:
|
|
3129
|
+
return handler.resolve_ref_schema(schema)
|
|
3130
|
+
except LookupError: # pragma: no cover
|
|
3131
|
+
return None
|
|
3132
|
+
elif definitions is not None:
|
|
3133
|
+
schema_ref = cast(core_schema.DefinitionReferenceSchema, schema)['schema_ref']
|
|
3134
|
+
return definitions.get(schema_ref)
|
|
3135
|
+
return None
|
|
3136
|
+
|
|
3137
|
+
if original_schema['type'] == 'definition-ref':
|
|
3138
|
+
# Same logic as `_ApplyInferredDiscriminator._apply_to_root()`
|
|
3139
|
+
def_schema = _resolve_ref(original_schema)
|
|
3140
|
+
if def_schema is None:
|
|
3141
|
+
from pydantic._internal._discriminated_union import MissingDefinitionForUnionRef
|
|
3142
|
+
|
|
3143
|
+
raise MissingDefinitionForUnionRef(original_schema['schema_ref'])
|
|
3144
|
+
|
|
3145
|
+
# If using a referenceable union as discriminated (e.g. `type Pet = Cat | Dog; field: Pet = Field(discriminator=...)`):
|
|
3146
|
+
if def_schema['type'] == 'union':
|
|
3147
|
+
original_schema = def_schema.copy()
|
|
3148
|
+
original_schema.pop('ref')
|
|
3149
|
+
|
|
3150
|
+
if original_schema['type'] != 'union':
|
|
3151
|
+
# This likely indicates that the schema was a single-item union that was simplified.
|
|
3152
|
+
# In this case, we do the same thing we do in
|
|
3153
|
+
# `pydantic._internal._discriminated_union._ApplyInferredDiscriminator._apply_to_root`, namely,
|
|
3154
|
+
# package the generated schema back into a single-item union.
|
|
3155
|
+
original_schema = core_schema.union_schema([original_schema])
|
|
3156
|
+
|
|
3157
|
+
tagged_union_choices = {}
|
|
3158
|
+
for choice in original_schema['choices']:
|
|
3159
|
+
tag = None
|
|
3160
|
+
if isinstance(choice, tuple):
|
|
3161
|
+
choice, tag = choice
|
|
3162
|
+
metadata = cast('CoreMetadata | None', choice.get('metadata'))
|
|
3163
|
+
if metadata is not None:
|
|
3164
|
+
tag = metadata.get('pydantic_internal_union_tag_key') or tag
|
|
3165
|
+
if tag is None:
|
|
3166
|
+
if choice['type'] == 'definition-ref':
|
|
3167
|
+
# If choice was built from a PEP 695 type alias, try to resolve the def:
|
|
3168
|
+
resolved_choice = _resolve_ref(choice)
|
|
3169
|
+
if resolved_choice is not None:
|
|
3170
|
+
choice = resolved_choice
|
|
3171
|
+
metadata = cast('CoreMetadata | None', choice.get('metadata'))
|
|
3172
|
+
if metadata is not None:
|
|
3173
|
+
tag = metadata.get('pydantic_internal_union_tag_key')
|
|
3174
|
+
|
|
3175
|
+
if tag is None:
|
|
3176
|
+
raise PydanticUserError(
|
|
3177
|
+
f'`Tag` not provided for choice {choice} used with `Discriminator`',
|
|
3178
|
+
code='callable-discriminator-no-tag',
|
|
3179
|
+
)
|
|
3180
|
+
tagged_union_choices[tag] = choice
|
|
3181
|
+
|
|
3182
|
+
# Have to do these verbose checks to ensure falsy values ('' and {}) don't get ignored
|
|
3183
|
+
custom_error_type = self.custom_error_type
|
|
3184
|
+
if custom_error_type is None:
|
|
3185
|
+
custom_error_type = original_schema.get('custom_error_type')
|
|
3186
|
+
|
|
3187
|
+
custom_error_message = self.custom_error_message
|
|
3188
|
+
if custom_error_message is None:
|
|
3189
|
+
custom_error_message = original_schema.get('custom_error_message')
|
|
3190
|
+
|
|
3191
|
+
custom_error_context = self.custom_error_context
|
|
3192
|
+
if custom_error_context is None:
|
|
3193
|
+
custom_error_context = original_schema.get('custom_error_context')
|
|
3194
|
+
|
|
3195
|
+
custom_error_type = original_schema.get('custom_error_type') if custom_error_type is None else custom_error_type
|
|
3196
|
+
return core_schema.tagged_union_schema(
|
|
3197
|
+
tagged_union_choices,
|
|
3198
|
+
self.discriminator,
|
|
3199
|
+
custom_error_type=custom_error_type,
|
|
3200
|
+
custom_error_message=custom_error_message,
|
|
3201
|
+
custom_error_context=custom_error_context,
|
|
3202
|
+
strict=original_schema.get('strict'),
|
|
3203
|
+
ref=original_schema.get('ref'),
|
|
3204
|
+
metadata=original_schema.get('metadata'),
|
|
3205
|
+
serialization=original_schema.get('serialization'),
|
|
3206
|
+
)
|
|
3207
|
+
|
|
3208
|
+
|
|
3209
|
+
_JSON_TYPES = {int, float, str, bool, list, dict, type(None)}
|
|
3210
|
+
|
|
3211
|
+
|
|
3212
|
+
def _get_type_name(x: Any) -> str:
|
|
3213
|
+
type_ = type(x)
|
|
3214
|
+
if type_ in _JSON_TYPES:
|
|
3215
|
+
return type_.__name__
|
|
3216
|
+
|
|
3217
|
+
# Handle proper subclasses; note we don't need to handle None or bool here
|
|
3218
|
+
if isinstance(x, int):
|
|
3219
|
+
return 'int'
|
|
3220
|
+
if isinstance(x, float):
|
|
3221
|
+
return 'float'
|
|
3222
|
+
if isinstance(x, str):
|
|
3223
|
+
return 'str'
|
|
3224
|
+
if isinstance(x, list):
|
|
3225
|
+
return 'list'
|
|
3226
|
+
if isinstance(x, dict):
|
|
3227
|
+
return 'dict'
|
|
3228
|
+
|
|
3229
|
+
# Fail by returning the type's actual name
|
|
3230
|
+
return getattr(type_, '__name__', '<no type name>')
|
|
3231
|
+
|
|
3232
|
+
|
|
3233
|
+
class _AllowAnyJson:
|
|
3234
|
+
@classmethod
|
|
3235
|
+
def __get_pydantic_core_schema__(cls, source_type: Any, handler: GetCoreSchemaHandler) -> CoreSchema:
|
|
3236
|
+
python_schema = handler(source_type)
|
|
3237
|
+
return core_schema.json_or_python_schema(json_schema=core_schema.any_schema(), python_schema=python_schema)
|
|
3238
|
+
|
|
3239
|
+
|
|
3240
|
+
if TYPE_CHECKING:
|
|
3241
|
+
# This seems to only be necessary for mypy
|
|
3242
|
+
JsonValue: TypeAlias = 'list[JsonValue] | dict[str, JsonValue] | str | bool | int | float | None'
|
|
3243
|
+
"""A `JsonValue` is used to represent a value that can be serialized to JSON.
|
|
3244
|
+
|
|
3245
|
+
It may be one of:
|
|
3246
|
+
|
|
3247
|
+
* `list['JsonValue']`
|
|
3248
|
+
* `dict[str, 'JsonValue']`
|
|
3249
|
+
* `str`
|
|
3250
|
+
* `bool`
|
|
3251
|
+
* `int`
|
|
3252
|
+
* `float`
|
|
3253
|
+
* `None`
|
|
3254
|
+
|
|
3255
|
+
The following example demonstrates how to use `JsonValue` to validate JSON data,
|
|
3256
|
+
and what kind of errors to expect when input data is not json serializable.
|
|
3257
|
+
|
|
3258
|
+
```python
|
|
3259
|
+
import json
|
|
3260
|
+
|
|
3261
|
+
from pydantic import BaseModel, JsonValue, ValidationError
|
|
3262
|
+
|
|
3263
|
+
class Model(BaseModel):
|
|
3264
|
+
j: JsonValue
|
|
3265
|
+
|
|
3266
|
+
valid_json_data = {'j': {'a': {'b': {'c': 1, 'd': [2, None]}}}}
|
|
3267
|
+
invalid_json_data = {'j': {'a': {'b': ...}}}
|
|
3268
|
+
|
|
3269
|
+
print(repr(Model.model_validate(valid_json_data)))
|
|
3270
|
+
#> Model(j={'a': {'b': {'c': 1, 'd': [2, None]}}})
|
|
3271
|
+
print(repr(Model.model_validate_json(json.dumps(valid_json_data))))
|
|
3272
|
+
#> Model(j={'a': {'b': {'c': 1, 'd': [2, None]}}})
|
|
3273
|
+
|
|
3274
|
+
try:
|
|
3275
|
+
Model.model_validate(invalid_json_data)
|
|
3276
|
+
except ValidationError as e:
|
|
3277
|
+
print(e)
|
|
3278
|
+
'''
|
|
3279
|
+
1 validation error for Model
|
|
3280
|
+
j.dict.a.dict.b
|
|
3281
|
+
input was not a valid JSON value [type=invalid-json-value, input_value=Ellipsis, input_type=ellipsis]
|
|
3282
|
+
'''
|
|
3283
|
+
```
|
|
3284
|
+
"""
|
|
3285
|
+
|
|
3286
|
+
else:
|
|
3287
|
+
JsonValue = TypeAliasType(
|
|
3288
|
+
'JsonValue',
|
|
3289
|
+
Annotated[
|
|
3290
|
+
Annotated[list['JsonValue'], Tag('list')]
|
|
3291
|
+
| Annotated[dict[str, 'JsonValue'], Tag('dict')]
|
|
3292
|
+
| Annotated[str, Tag('str')]
|
|
3293
|
+
| Annotated[bool, Tag('bool')]
|
|
3294
|
+
| Annotated[int, Tag('int')]
|
|
3295
|
+
| Annotated[float, Tag('float')]
|
|
3296
|
+
| Annotated[None, Tag('NoneType')],
|
|
3297
|
+
Discriminator(
|
|
3298
|
+
_get_type_name,
|
|
3299
|
+
custom_error_type='invalid-json-value',
|
|
3300
|
+
custom_error_message='input was not a valid JSON value',
|
|
3301
|
+
),
|
|
3302
|
+
_AllowAnyJson,
|
|
3303
|
+
],
|
|
3304
|
+
)
|
|
3305
|
+
|
|
3306
|
+
|
|
3307
|
+
class _OnErrorOmit:
|
|
3308
|
+
@classmethod
|
|
3309
|
+
def __get_pydantic_core_schema__(cls, source_type: Any, handler: GetCoreSchemaHandler) -> CoreSchema:
|
|
3310
|
+
# there is no actual default value here but we use with_default_schema since it already has the on_error
|
|
3311
|
+
# behavior implemented and it would be no more efficient to implement it on every other validator
|
|
3312
|
+
# or as a standalone validator
|
|
3313
|
+
return core_schema.with_default_schema(schema=handler(source_type), on_error='omit')
|
|
3314
|
+
|
|
3315
|
+
|
|
3316
|
+
OnErrorOmit = Annotated[T, _OnErrorOmit]
|
|
3317
|
+
"""Discard the invalid items of a collection instead of failing validation.
|
|
3318
|
+
|
|
3319
|
+
/// version-added | v2.6
|
|
3320
|
+
///
|
|
3321
|
+
|
|
3322
|
+
By default, when an item of a collection (such as a list, a dictionary or a [`TypedDict`][typing.TypedDict])
|
|
3323
|
+
fails validation, a [`ValidationError`][pydantic_core.ValidationError] is raised and the whole collection is
|
|
3324
|
+
discarded. This annotation changes this behavior: any item failing validation is silently omitted from the
|
|
3325
|
+
result, and the valid ones are kept.
|
|
3326
|
+
|
|
3327
|
+
It can be applied to:
|
|
3328
|
+
|
|
3329
|
+
* the item type of an iterable (e.g. `list[OnErrorOmit[int]]`, `tuple[OnErrorOmit[int], ...]`).
|
|
3330
|
+
* the key and/or value types of a mapping (e.g. `dict[OnErrorOmit[int], str]`). If either the key or the value of
|
|
3331
|
+
an entry fails validation, the whole entry is omitted.
|
|
3332
|
+
* the value type of a [*not required*][typing.NotRequired] [`TypedDict`][typing.TypedDict] key.
|
|
3333
|
+
Using it on a required key is not allowed, as it would make the key effectively optional.
|
|
3334
|
+
|
|
3335
|
+
```python
|
|
3336
|
+
from typing_extensions import NotRequired, TypedDict
|
|
3337
|
+
|
|
3338
|
+
from pydantic import BaseModel, OnErrorOmit
|
|
3339
|
+
|
|
3340
|
+
OmittableInt = OnErrorOmit[int]
|
|
3341
|
+
|
|
3342
|
+
class Settings(TypedDict):
|
|
3343
|
+
timeout: NotRequired[OmittableInt]
|
|
3344
|
+
|
|
3345
|
+
class Model(BaseModel):
|
|
3346
|
+
ids: list[OmittableInt]
|
|
3347
|
+
scores: dict[str, OnErrorOmit[float]]
|
|
3348
|
+
settings: Settings
|
|
3349
|
+
|
|
3350
|
+
model = Model(
|
|
3351
|
+
ids=[1, 2, 'a', 3],
|
|
3352
|
+
scores={'a': 1.5, 'b': 'invalid'},
|
|
3353
|
+
settings={'timeout': 'invalid'},
|
|
3354
|
+
)
|
|
3355
|
+
print(model)
|
|
3356
|
+
#> ids=[1, 2, 3] scores={'a': 1.5} settings={}
|
|
3357
|
+
```
|
|
3358
|
+
|
|
3359
|
+
!!! note
|
|
3360
|
+
The omitted items are discarded silently: no error is reported and there is no way to know
|
|
3361
|
+
which items were invalid. If you need to keep track of them, use a
|
|
3362
|
+
[wrap validator](../concepts/validators.md#field-wrap-validator) instead.
|
|
3363
|
+
|
|
3364
|
+
!!! warning
|
|
3365
|
+
`OnErrorOmit` is only meaningful when the annotated type is part of a collection.
|
|
3366
|
+
Using it on a top-level type (e.g. `TypeAdapter(OnErrorOmit[int])`) or on a model field is not supported.
|
|
3367
|
+
"""
|
|
3368
|
+
|
|
3369
|
+
|
|
3370
|
+
@_dataclasses.dataclass
|
|
3371
|
+
class FailFast(_fields.PydanticMetadata, BaseMetadata):
|
|
3372
|
+
"""Stop validating a collection at the first invalid item, instead of collecting the errors of every item.
|
|
3373
|
+
|
|
3374
|
+
/// version-added | v2.8
|
|
3375
|
+
///
|
|
3376
|
+
|
|
3377
|
+
By default, when validating a collection, Pydantic validates every item and reports all the errors
|
|
3378
|
+
at once. This annotation can be applied to a collection type (such as a [`list`][], a [`tuple`][],
|
|
3379
|
+
a [`set`][] or a [`dict`][]) to stop as soon as an item fails validation.
|
|
3380
|
+
|
|
3381
|
+
This can be useful when you want to validate a large amount of data and you only need to know if it's valid or not:
|
|
3382
|
+
validation will be faster, with the caveat that you get less information about the errors.
|
|
3383
|
+
|
|
3384
|
+
```python
|
|
3385
|
+
from typing import Annotated
|
|
3386
|
+
|
|
3387
|
+
from pydantic import BaseModel, FailFast, ValidationError
|
|
3388
|
+
|
|
3389
|
+
class Model(BaseModel):
|
|
3390
|
+
x: Annotated[list[int], FailFast()]
|
|
3391
|
+
|
|
3392
|
+
# This will raise a single error for the first invalid value and stop validation
|
|
3393
|
+
try:
|
|
3394
|
+
obj = Model(x=[1, 2, 'a', 4, 5, 'b', 7, 8, 9, 'c'])
|
|
3395
|
+
except ValidationError as e:
|
|
3396
|
+
print(e)
|
|
3397
|
+
'''
|
|
3398
|
+
1 validation error for Model
|
|
3399
|
+
x.2
|
|
3400
|
+
Input should be a valid integer, unable to parse string as an integer [type=int_parsing, input_value='a', input_type=str]
|
|
3401
|
+
'''
|
|
3402
|
+
```
|
|
3403
|
+
"""
|
|
3404
|
+
|
|
3405
|
+
fail_fast: bool = True
|