{"id":20850412,"url":"https://github.com/noteed/python-pickle","last_synced_at":"2025-05-12T04:31:22.851Z","repository":{"id":6160104,"uuid":"7389682","full_name":"noteed/python-pickle","owner":"noteed","description":"Serialization/deserialization using Python Pickle format","archived":false,"fork":false,"pushed_at":"2024-02-10T06:11:22.000Z","size":48,"stargazers_count":15,"open_issues_count":1,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-28T14:19:03.858Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/noteed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-31T18:02:25.000Z","updated_at":"2024-05-18T20:08:20.000Z","dependencies_parsed_at":"2023-01-11T16:57:25.537Z","dependency_job_id":null,"html_url":"https://github.com/noteed/python-pickle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noteed%2Fpython-pickle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noteed%2Fpython-pickle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noteed%2Fpython-pickle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noteed%2Fpython-pickle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noteed","download_url":"https://codeload.github.com/noteed/python-pickle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225120017,"owners_count":17423818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T03:09:19.144Z","updated_at":"2024-11-18T03:09:19.609Z","avatar_url":"https://github.com/noteed.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# python-pickle\n\npython-pickle is a Haskell library to serialize and deserialize Python objects\nusing the Python Pickle format. It supports protocols 0-5 for\ndeserializing and uses protocol 2 for serialization.\n\nIt offers a `Value` data type to represent Python objects, and two functions,\n`pickle` and `unpickle`, to serialize and deserialize such values.\n\n# Implementation detail\n\nIn practice the Python Pickle format is a list of serialized opcodes. By\ndeserializing those opcodes then interpreting them, one can reconstruct the\noriginal object. Interpreting the opcodes is done using a simple stack-based\nPickle machine.\n\nIf you want to learn about the Pickle format, the standard Python `pickletools`\nlibrary source is a good place to start.\n\n# Install\n\nInstalling from Hackage with Cabal is straightforward:\n\n    \u003e cabal update ; cabal install python-pickle\n\nThe development version can be installed by cloning the Git repository and\nusing Cabal:\n\n    \u003e git clone git://github.com/noteed/python-pickle.git\n    \u003e cd python-pickle \u0026\u0026 cabal install\n\n# Command-line tool\n\nA `pickle` executable is provided. It can be used to inspect a pickle file\n(i.e. a file containing a pickled Python object).\n\n# Limitation\n\n- Not all opcodes are implemented.\n- Strings are not correctly escaped.\n- Can pickle (i.e. serialize) only with protocol 2.\n- Unpickling a protocol 0 string (which uses literal representation of e.g.\n  float values) is not accurate (possibly the Python implementation is not\n  accurate either).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoteed%2Fpython-pickle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoteed%2Fpython-pickle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoteed%2Fpython-pickle/lists"}