{"id":26708,"library":"aliyun-log-fastpb","title":"aliyun-log-fastpb","description":"Fast protobuf serialization for Aliyun Log Service using PyO3 and quick-protobuf. Version 0.3.0. Released occasionally.","status":"active","version":"0.3.0","language":"python","source_language":"en","source_url":"https://github.com/aliyun/aliyun-log-fastpb","tags":["aliyun","log-service","protobuf","serialization","pyo3"],"install":[{"cmd":"pip install aliyun-log-fastpb","lang":"bash","label":"Install aliyun-log-fastpb"}],"dependencies":[],"imports":[{"note":"common wrong import path due to package structure confusion","wrong":"from aliyun_log_fastpb.fastpb import FastProtobuf","symbol":"FastProtobuf","correct":"from aliyun_log_fastpb import FastProtobuf"}],"quickstart":{"code":"from aliyun_log_fastpb import FastProtobuf\npb = FastProtobuf()\ndata = pb.serialize({'key': 'value'})\nprint(data)","lang":"python","description":"Create a FastProtobuf instance and serialize a dict."},"warnings":[{"fix":"Change import to 'from aliyun_log_fastpb import FastProtobuf'","message":"The old import path 'aliyun_log_fastpb.fastpb' is deprecated. Use 'aliyun_log_fastpb' directly.","severity":"deprecated","affected_versions":"<=0.2.0"},{"fix":"Upgrade Python to 3.7 or later.","message":"Only supports Python 3.7+ due to PyO3 and binary wheels. On older Python versions, installation will fail.","severity":"gotcha","affected_versions":">=0.3.0"},{"fix":"Ensure all values in the dict are of the expected protobuf types (e.g., strings, ints, floats).","message":"The serialization expects a dict with specific field types. Passing incorrect types may cause runtime errors without clear messages.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use 'from aliyun_log_fastpb import FastProtobuf'","cause":"Old import path used after library refactoring.","error":"ModuleNotFoundError: No module named 'aliyun_log_fastpb.fastpb'"},{"fix":"Update library to >=0.3.0: pip install --upgrade aliyun-log-fastpb","cause":"Library version mismatch: FastProtobuf class may be named differently in very old versions.","error":"ImportError: cannot import name 'FastProtobuf' from 'aliyun_log_fastpb'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}