{"id":24217,"library":"pcodec","title":"pcodec","description":"Good compression for numerical sequences. Current version 1.0.1, released periodically.","status":"active","version":"1.0.1","language":"python","source_language":"en","source_url":"https://github.com/pcodec/pcodec","tags":["compression","numpy","numerical-sequences"],"install":[{"cmd":"pip install pcodec","lang":"bash","label":"Install pcodec"}],"dependencies":[],"imports":[{"wrong":"from pcodec import compress","symbol":"pcodec","correct":"import pcodec"},{"symbol":"ChunkConfig","correct":"from pcodec import ChunkConfig"},{"symbol":"DeltaSpec","correct":"from pcodec import DeltaSpec"}],"quickstart":{"code":"from pcodec import compress, decompress\nimport numpy as np\n\ndata = np.array([1.0, 2.5, 3.2, 4.8, 5.1], dtype=np.float64)\ncompressed = compress(data)\ndecompressed = decompress(compressed, dtype=np.float64)\nprint(decompressed)","lang":"python","description":"Compress and decompress a numpy array of float64."},"warnings":[{"fix":"Update calls: compress(src=...) and use delta_encoding='no_op' instead of 'none'.","message":"In v1.0.0, function arguments were renamed: 'nums' became 'src', and 'none' delta encoding became 'no_op'.","severity":"breaking","affected_versions":">=1.0.0,<1.0.0"},{"fix":"Check pcodec documentation for current function signatures.","message":"In v1.0.0, simple_compress_into now accepts any Write impl (Rust change); Python API may have changed signature.","severity":"breaking","affected_versions":"<1.0.0"},{"fix":"Convert your data to a numpy array with the correct dtype before calling compress.","message":"Compression and decompression require numpy arrays; other iterables may not work.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'1.0.1':9 'compress':3,12 'current':7 'good':2 'numer':5,15 'numerical-sequ':14 'numpi':13 'pcodec':1 'period':11 'releas':10 'sequenc':6,16 'version':8","created_at":"2026-05-01T08:11:54.442551+00:00","updated_at":"2026-05-01T08:11:54.442551+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.0.2","cli_name":"pcodec","cli_version":"sh: 1: pcodec: not found","type":"library","homepage":"https://pcodec.github.io/pcodec/","github":"https://github.com/pcodec/pcodec","docs":null,"changelog":null,"pypi":"https://pypi.org/project/pcodec/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["data","serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}