Skip to content

zstandard 0.25.0

Version history | Download JSON

  • PyPI https://pypi.org/project/zstandard/
    Repository https://github.com/indygreg/python-zstandard

  • py.typed

  • Coverage


    %%{init: {"pie": {"textPosition": 0.85}, "theme": "neutral", "themeVariables": {"pieStrokeWidth": "1px"}}}%%
    pie title
        "Typed" : 336
        "Any" : 0
        "Untyped" : 490
    • 40.7% coverage
    • 40.7% coverage (strict)
    • 826 typable
      • 336 typed
      • 490 untyped
      • 0 Any
  • Typables


    %%{init: {"pie": {"textPosition": 0.85}, "theme": "neutral", "themeVariables": {"pieStrokeWidth": "1px"}}}%%
    pie title
        "functions" : 57
        "classes" : 663
        "other" : 92
    • 13 functions (+0 overloads)
      • 44 parameters
    • 35 classes
      • 277 methods (+0 overloads)
        • 327 parameters
      • 59 properties
    • 2 modules
      • 92 attrs

Modules

Module Coverage Coverage (strict) Typables Ignores
zstandard 83.0% 83.0% 405 0
zstandard.backend_cffi 0.0% 0.0% 421 1

Incomplete Annotations

zstandard (69 missing, 0 any)

Symbol Typable Typed Any
meth BufferWithSegmentsCollection.init 2 0 0
meth ZstdCompressionWriter.exit 4 0 0
meth ZstdCompressionWriter.close 1 0 0
meth ZstdCompressionWriter.seek 3 2 0
meth ZstdCompressionWriter.truncate 2 1 0
meth ZstdCompressionWriter.writelines 2 1 0
meth ZstdCompressionWriter.readinto 2 0 0
meth ZstdCompressionChunker.compress 2 1 0
meth ZstdCompressionChunker.flush 1 0 0
meth ZstdCompressionChunker.finish 1 0 0
meth ZstdCompressionDict.init 5 4 0
meth ZstdCompressionDict.precompute_compress 3 2 0
func open 9 8 0
meth ZstdDecompressionReader.exit 4 0 0
meth ZstdDecompressionReader.readline 2 1 0
meth ZstdDecompressionReader.readlines 2 1 0
meth ZstdDecompressionReader.write 2 1 0
meth ZstdDecompressionReader.writelines 2 1 0
meth ZstdDecompressionReader.flush 1 0 0
meth ZstdDecompressionReader.close 1 0 0
meth ZstdDecompressionReader.iter 1 0 0
meth ZstdDecompressionReader.next 1 0 0
meth ZstdDecompressionReader.next 1 0 0
meth ZstdDecompressionReader.readinto 2 1 0
meth ZstdDecompressionReader.readinto1 2 1 0
meth ZstdCompressionReader.exit 4 0 0
meth ZstdCompressionReader.write 2 1 0
meth ZstdCompressionReader.writelines 2 1 0
meth ZstdCompressionReader.flush 1 0 0
meth ZstdCompressionReader.close 1 0 0
meth ZstdCompressionReader.iter 1 0 0
meth ZstdCompressionReader.next 1 0 0
meth ZstdCompressionReader.next 1 0 0
meth ZstdCompressionReader.readinto 2 1 0
meth ZstdCompressionReader.readinto1 2 1 0
meth BufferWithSegments.init 3 2 0
meth BufferWithSegments.segments 1 0 0
meth ZstdCompressor.init 8 7 0
meth ZstdCompressionParameters.from_level 5 4 0
meth ZstdCompressionParameters.init 22 21 0
meth ZstdDecompressor.init 4 3 0
meth ZstdDecompressor.stream_reader 5 4 0
meth ZstdDecompressionWriter.exit 4 0 0
meth ZstdDecompressionWriter.close 1 0 0
meth ZstdDecompressionWriter.flush 1 0 0
meth ZstdDecompressionWriter.readline 2 1 0
meth ZstdDecompressionWriter.readlines 2 1 0
meth ZstdDecompressionWriter.seek 3 2 0
meth ZstdDecompressionWriter.tell 1 0 0
meth ZstdDecompressionWriter.truncate 2 1 0
meth ZstdDecompressionWriter.writelines 2 1 0
meth ZstdDecompressionWriter.read 2 1 0
meth ZstdDecompressionWriter.readall 1 0 0
meth ZstdDecompressionWriter.readinto 2 0 0

zstandard.backend_cffi (421 missing, 0 any)

Symbol Typable Typed Any
meth BufferWithSegmentsCollection.len 1 0 0
meth BufferWithSegmentsCollection.getitem 2 0 0
func estimate_decompression_context_size 1 0 0
attr backend_features 1 0 0
func frame_content_size 2 0 0
attr CONTENTSIZE_ERROR 1 0 0
attr HASHLOG_MIN 1 0 0
attr DICT_TYPE_AUTO 1 0 0
attr FORMAT_ZSTD1_MAGICLESS 1 0 0
attr FORMAT_ZSTD1 1 0 0
meth FrameParameters.init 2 0 0
attr FrameParameters.content_size 1 0 0
attr FrameParameters.window_size 1 0 0
attr FrameParameters.dict_id 1 0 0
attr FrameParameters.has_checksum 1 0 0
attr STRATEGY_BTULTRA 1 0 0
attr WINDOWLOG_MAX 1 0 0
attr DECOMPRESSION_RECOMMENDED_INPUT_SIZE 1 0 0
attr COMPRESSION_RECOMMENDED_INPUT_SIZE 1 0 0
meth ZstdDecompressionObj.init 4 0 0
meth ZstdDecompressionObj.decompress 2 0 0
meth ZstdDecompressionObj.flush 2 0 0
prop ZstdDecompressionObj.unused_data 1 0 0
prop ZstdDecompressionObj.unconsumed_tail 1 0 0
prop ZstdDecompressionObj.eof 1 0 0
attr LDM_BUCKETSIZELOG_MAX 1 0 0
func get_frame_parameters 3 0 0
attr DICT_TYPE_FULLDICT 1 0 0
attr LDM_MINMATCH_MAX 1 0 0
meth BufferWithSegments.len 1 0 0
meth BufferWithSegments.getitem 2 0 0
meth BufferWithSegments.segments 1 0 0
meth BufferWithSegments.tobytes 1 0 0
prop BufferWithSegments.size 1 0 0
attr TARGETLENGTH_MIN 1 0 0
func frame_header_size 2 0 0
func train_dictionary 13 0 0
meth ZstdCompressionParameters.from_level 5 0 0
meth ZstdCompressionParameters.init 22 0 0
meth ZstdCompressionParameters.estimated_compression_context_size 1 0 0
prop ZstdCompressionParameters.format 1 0 0
prop ZstdCompressionParameters.compression_level 1 0 0
prop ZstdCompressionParameters.window_log 1 0 0
prop ZstdCompressionParameters.hash_log 1 0 0
prop ZstdCompressionParameters.chain_log 1 0 0
prop ZstdCompressionParameters.search_log 1 0 0
prop ZstdCompressionParameters.min_match 1 0 0
prop ZstdCompressionParameters.target_length 1 0 0
prop ZstdCompressionParameters.strategy 1 0 0
prop ZstdCompressionParameters.write_content_size 1 0 0
prop ZstdCompressionParameters.write_checksum 1 0 0
prop ZstdCompressionParameters.write_dict_id 1 0 0
prop ZstdCompressionParameters.job_size 1 0 0
prop ZstdCompressionParameters.overlap_log 1 0 0
prop ZstdCompressionParameters.force_max_window 1 0 0
prop ZstdCompressionParameters.enable_ldm 1 0 0
prop ZstdCompressionParameters.ldm_hash_log 1 0 0
prop ZstdCompressionParameters.ldm_min_match 1 0 0
prop ZstdCompressionParameters.ldm_bucket_size_log 1 0 0
prop ZstdCompressionParameters.ldm_hash_rate_log 1 0 0
prop ZstdCompressionParameters.threads 1 0 0
attr STRATEGY_LAZY2 1 0 0
meth ZstdDecompressor.init 4 0 0
meth ZstdDecompressor.memory_size 1 0 0
meth ZstdDecompressor.decompress 5 0 0
meth ZstdDecompressor.stream_reader 5 0 0
meth ZstdDecompressor.decompressobj 3 0 0
meth ZstdDecompressor.read_to_iter 5 0 0
meth ZstdDecompressor.stream_writer 5 0 0
meth ZstdDecompressor.copy_stream 5 0 0
meth ZstdDecompressor.decompress_content_dict_chain 2 0 0
meth ZstdDecompressor.multi_decompress_to_buffer 4 0 0
meth ZstdDecompressor._ensure_dctx 2 0 0
attr HASHLOG_MAX 1 0 0
meth ZstdDecompressionWriter.init 6 0 0
meth ZstdDecompressionWriter.enter 1 0 0
meth ZstdDecompressionWriter.exit 4 0 0
meth ZstdDecompressionWriter.iter 1 0 0
meth ZstdDecompressionWriter.next 1 0 0
meth ZstdDecompressionWriter.memory_size 1 0 0
meth ZstdDecompressionWriter.close 1 0 0
meth ZstdDecompressionWriter.fileno 1 0 0
meth ZstdDecompressionWriter.flush 1 0 0
meth ZstdDecompressionWriter.isatty 1 0 0
meth ZstdDecompressionWriter.readable 1 0 0
meth ZstdDecompressionWriter.readline 2 0 0
meth ZstdDecompressionWriter.readlines 2 0 0
meth ZstdDecompressionWriter.seek 3 0 0
meth ZstdDecompressionWriter.seekable 1 0 0
meth ZstdDecompressionWriter.tell 1 0 0
meth ZstdDecompressionWriter.truncate 2 0 0
meth ZstdDecompressionWriter.writable 1 0 0
meth ZstdDecompressionWriter.writelines 2 0 0
meth ZstdDecompressionWriter.read 2 0 0
meth ZstdDecompressionWriter.readall 1 0 0
meth ZstdDecompressionWriter.readinto 2 0 0
meth ZstdDecompressionWriter.write 2 0 0
prop ZstdDecompressionWriter.closed 1 0 0
attr CHAINLOG_MIN 1 0 0
attr SEARCHLOG_MAX 1 0 0
attr DICT_TYPE_RAWCONTENT 1 0 0
attr STRATEGY_BTOPT 1 0 0
attr DECOMPRESSION_RECOMMENDED_OUTPUT_SIZE 1 0 0
attr SEARCHLENGTH_MAX 1 0 0
attr BLOCKSIZE_MAX 1 0 0
attr MINMATCH_MIN 1 0 0
meth ZstdCompressionWriter.init 7 0 0
meth ZstdCompressionWriter.enter 1 0 0
meth ZstdCompressionWriter.exit 4 0 0
meth ZstdCompressionWriter.iter 1 0 0
meth ZstdCompressionWriter.next 1 0 0
meth ZstdCompressionWriter.memory_size 1 0 0
meth ZstdCompressionWriter.fileno 1 0 0
meth ZstdCompressionWriter.close 1 0 0
meth ZstdCompressionWriter.isatty 1 0 0
meth ZstdCompressionWriter.readable 1 0 0
meth ZstdCompressionWriter.readline 2 0 0
meth ZstdCompressionWriter.readlines 2 0 0
meth ZstdCompressionWriter.seek 3 0 0
meth ZstdCompressionWriter.seekable 1 0 0
meth ZstdCompressionWriter.truncate 2 0 0
meth ZstdCompressionWriter.writable 1 0 0
meth ZstdCompressionWriter.writelines 2 0 0
meth ZstdCompressionWriter.read 2 0 0
meth ZstdCompressionWriter.readall 1 0 0
meth ZstdCompressionWriter.readinto 2 0 0
meth ZstdCompressionWriter.write 2 0 0
meth ZstdCompressionWriter.flush 2 0 0
meth ZstdCompressionWriter.tell 1 0 0
prop ZstdCompressionWriter.closed 1 0 0
attr WINDOWLOG_MIN 1 0 0
attr STRATEGY_LAZY 1 0 0
meth ZstdCompressionChunker.init 3 0 0
meth ZstdCompressionChunker.compress 2 0 0
meth ZstdCompressionChunker.flush 1 0 0
meth ZstdCompressionChunker.finish 1 0 0
attr MAGIC_NUMBER 1 0 0
attr SEARCHLENGTH_MIN 1 0 0
meth ZstdCompressionDict.init 5 0 0
meth ZstdCompressionDict.len 1 0 0
meth ZstdCompressionDict.dict_id 1 0 0
meth ZstdCompressionDict.as_bytes 1 0 0
meth ZstdCompressionDict.precompute_compress 3 0 0
prop ZstdCompressionDict._ddict 1 0 0
attr ZstdCompressionDict.k 1 0 0
attr ZstdCompressionDict.d 1 0 0
attr STRATEGY_GREEDY 1 0 0
attr CONTENTSIZE_UNKNOWN 1 0 0
attr MAX_COMPRESSION_LEVEL 1 0 0
meth BufferSegment.len 1 0 0
meth BufferSegment.tobytes 1 0 0
prop BufferSegment.offset 1 0 0
meth ZstdDecompressionReader.init 6 0 0
meth ZstdDecompressionReader.enter 1 0 0
meth ZstdDecompressionReader.exit 4 0 0
meth ZstdDecompressionReader.readable 1 0 0
meth ZstdDecompressionReader.writable 1 0 0
meth ZstdDecompressionReader.seekable 1 0 0
meth ZstdDecompressionReader.readline 2 0 0
meth ZstdDecompressionReader.readlines 2 0 0
meth ZstdDecompressionReader.write 2 0 0
meth ZstdDecompressionReader.writelines 2 0 0
meth ZstdDecompressionReader.isatty 1 0 0
meth ZstdDecompressionReader.flush 1 0 0
meth ZstdDecompressionReader.close 1 0 0
meth ZstdDecompressionReader.tell 1 0 0
meth ZstdDecompressionReader.readall 1 0 0
meth ZstdDecompressionReader.iter 1 0 0
meth ZstdDecompressionReader.next 1 0 0
meth ZstdDecompressionReader.next 1 0 0
meth ZstdDecompressionReader._read_input 1 0 0
meth ZstdDecompressionReader._decompress_into_buffer 2 0 0
meth ZstdDecompressionReader.read 2 0 0
meth ZstdDecompressionReader.readinto 2 0 0
meth ZstdDecompressionReader.read1 2 0 0
meth ZstdDecompressionReader.readinto1 2 0 0
meth ZstdDecompressionReader.seek 3 0 0
prop ZstdDecompressionReader.closed 1 0 0
attr LDM_MINMATCH_MIN 1 0 0
attr STRATEGY_BTLAZY2 1 0 0
meth ZstdCompressionReader.init 5 0 0
meth ZstdCompressionReader.enter 1 0 0
meth ZstdCompressionReader.exit 4 0 0
meth ZstdCompressionReader.readable 1 0 0
meth ZstdCompressionReader.writable 1 0 0
meth ZstdCompressionReader.seekable 1 0 0
meth ZstdCompressionReader.readline 1 0 0
meth ZstdCompressionReader.readlines 1 0 0
meth ZstdCompressionReader.write 2 0 0
meth ZstdCompressionReader.writelines 2 0 0
meth ZstdCompressionReader.isatty 1 0 0
meth ZstdCompressionReader.flush 1 0 0
meth ZstdCompressionReader.close 1 0 0
meth ZstdCompressionReader.tell 1 0 0
meth ZstdCompressionReader.readall 1 0 0
meth ZstdCompressionReader.iter 1 0 0
meth ZstdCompressionReader.next 1 0 0
meth ZstdCompressionReader.next 1 0 0
meth ZstdCompressionReader._read_input 1 0 0
meth ZstdCompressionReader._compress_into_buffer 2 0 0
meth ZstdCompressionReader.read 2 0 0
meth ZstdCompressionReader.read1 2 0 0
meth ZstdCompressionReader.readinto 2 0 0
meth ZstdCompressionReader.readinto1 2 0 0
prop ZstdCompressionReader.closed 1 0 0
attr BLOCKSIZELOG_MAX 1 0 0
attr STRATEGY_FAST 1 0 0
attr MINMATCH_MAX 1 0 0
meth ZstdCompressor.init 8 0 0
meth ZstdCompressor._setup_cctx 1 0 0
meth ZstdCompressor.memory_size 1 0 0
meth ZstdCompressor.compress 2 0 0
meth ZstdCompressor.compressobj 2 0 0
meth ZstdCompressor.chunker 3 0 0
meth ZstdCompressor.copy_stream 6 0 0
meth ZstdCompressor.stream_reader 5 0 0
meth ZstdCompressor.stream_writer 6 0 0
meth ZstdCompressor.read_to_iter 5 0 0
meth ZstdCompressor.multi_compress_to_buffer 3 0 0
meth ZstdCompressor.frame_progression 1 0 0
meth ZstdCompressionObj.init 3 0 0
meth ZstdCompressionObj.compress 2 0 0
meth ZstdCompressionObj.flush 2 0 0
attr SEARCHLOG_MIN 1 0 0
attr STRATEGY_BTULTRA2 1 0 0
attr CHAINLOG_MAX 1 0 0
attr STRATEGY_DFAST 1 0 0
attr TARGETLENGTH_MAX 1 0 0
attr COMPRESSION_RECOMMENDED_OUTPUT_SIZE 1 0 0

Type-Ignore Comments

Flavor Count
type: ignore 1