{"id":17465017,"url":"https://github.com/erdogant/pypickle","last_synced_at":"2025-07-31T08:42:14.802Z","repository":{"id":59629772,"uuid":"278702058","full_name":"erdogant/pypickle","owner":"erdogant","description":"pypickle is for saving and loading files in pickle format.","archived":false,"fork":false,"pushed_at":"2025-04-08T13:49:46.000Z","size":3404,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T06:15:07.234Z","etag":null,"topics":["load","pickle","pypi","python","python3","save"],"latest_commit_sha":null,"homepage":"https://erdogant.github.io/pypickle/","language":"Python","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/erdogant.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["erdogant"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2020-07-10T18:07:52.000Z","updated_at":"2025-04-08T13:49:13.000Z","dependencies_parsed_at":"2025-04-12T06:15:15.977Z","dependency_job_id":"04d46d8b-7f1e-4048-8061-9ff37f34c6ec","html_url":"https://github.com/erdogant/pypickle","commit_stats":{"total_commits":34,"total_committers":2,"mean_commits":17.0,"dds":"0.32352941176470584","last_synced_commit":"7bd62c979b7027fdb3afab084e6f0efbd6eb284d"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdogant%2Fpypickle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdogant%2Fpypickle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdogant%2Fpypickle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdogant%2Fpypickle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erdogant","download_url":"https://codeload.github.com/erdogant/pypickle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249789477,"owners_count":21325823,"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":["load","pickle","pypi","python","python3","save"],"created_at":"2024-10-18T11:08:29.099Z","updated_at":"2025-07-31T08:42:14.782Z","avatar_url":"https://github.com/erdogant.png","language":"Python","funding_links":["https://github.com/sponsors/erdogant","https://www.buymeacoffee.com/erdogant)--","https://img.buymeacoffee.com/button-api/?text=Buy+me+a+coffee\u0026emoji=\u0026slug=erdogant\u0026button_colour=FFDD00\u0026font_colour=000000\u0026font_family=Cookie\u0026outline_colour=000000\u0026coffee_colour=ffffff","https://www.buymeacoffee.com/erdogant"],"categories":[],"sub_categories":[],"readme":"# pypickle\n\n[![Python](https://img.shields.io/pypi/pyversions/pypickle)](https://img.shields.io/pypi/pyversions/pypickle)\n[![PyPI Version](https://img.shields.io/pypi/v/pypickle)](https://pypi.org/project/pypickle/)\n![GitHub Repo stars](https://img.shields.io/github/stars/erdogant/pypickle)\n[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/erdogant/pypickle/blob/master/LICENSE)\n[![Downloads](https://pepy.tech/badge/pypickle)](https://pepy.tech/project/pypickle)\n[![Downloads](https://pepy.tech/badge/pypickle/month)](https://pepy.tech/project/pypickle/)\n[![DOI](https://zenodo.org/badge/278702058.svg)](https://zenodo.org/badge/latestdoi/278702058)\n[![Sphinx](https://img.shields.io/badge/Sphinx-Docs-Green)](https://erdogant.github.io/pypickle/)\n\u003c!---[![Coffee](https://img.shields.io/badge/coffee-black-grey.svg)](https://erdogant.github.io/donate/?currency=USD\u0026amount=5)--\u003e\n\u003c!---[![BuyMeCoffee](https://img.shields.io/badge/buymea-coffee-yellow.svg)](https://www.buymeacoffee.com/erdogant)--\u003e\n\n\n\n``pypickle`` is a user-friendly Python library for saving and loading data using the pickle format. Unlike the standard ``pickle`` module, ``pypickle`` puts safety first—offering built-in validation, extension checks, and protection against common exploits.\nWhether you're persisting models, storing session data, or sharing files, ``pypickle`` makes serialization easy *and* more secure.\nIdeal for developers who care about both convenience and peace of mind.\n⭐️ **Star it if you like it** ⭐️\n\n---\n\n### Key Features\n\n| Feature | Description |\n|--------|-------------|\n| [**Load**](https://erdogant.github.io/pypickle/pages/html/load.html) | Load your pickle files. |\n| [**Save**](https://erdogant.github.io/pypickle/pages/html/save.html) | Save your files into pickle format. |\n| [**is_critical_path**](https://erdogant.github.io/pypickle/pages/html/save.html#critical-system-paths) | Check whether filepath is critical. |\n| [**get_critical_paths**](https://erdogant.github.io/pypickle/pages/html/save.html#critical-system-paths) | Get critical paths. |\n| [**get_risk_modules**](https://erdogant.github.io/pypickle/pages/html/load.html#risk-modules) | Get risk modules. |\n| [**get_allowed_paths**](https://erdogant.github.io/pypickle/pages/html/load.html) | Get allowed paths. |\n\n---\n\nFor security reasons, pickle files are validated by checking the inner modules before loading. Twenty modules are classified as high-risk (see [here](https://erdogant.github.io/pypickle/pages/html/save.html#security-mechanisms-save)) and can not be loaded without validation.\n\n| Module Type           | Allowed? | How to Change Behavior                                                  |\n|-----------------------|----------|--------------------------------------------------------------------------|\n| Unknown               | ✅       | Allowed unless in high-risk list                                            |\n| Custom safe           | ✅       | If included in `validate` param                                         |\n| Risky (`os`, etc.)    | ❌       | Must be explicitly added via `validate=['nt']` or `validate=False`      |\n\n---\n\n### Resources and Links\n- **Documentation:** [Website](https://erdogant.github.io/pypickle)\n- **Bug Reports and Feature Requests:** [GitHub Issues](https://github.com/erdogant/pypickle/issues)\n\n---\n\n##### Install pypickle from PyPI\n```bash\npip install pypickle     # normal install\npip install -U pypickle  # update if needed\n```\n\n#### Import pypickle package\n```python\nimport pypickle\n```\n\n#\n\n#### [Example: Saving](https://erdogant.github.io/pypickle/pages/html/Save_and_Load.html#saving)\n\n```python\nimport pypickle\nfilepath = 'test.pkl'\n\n# Some data\ndata = [1,2,3,4,5]\n\n# Save\nstatus = pypickle.save(filepath, data)\n\n```\n\n#\n\n#### [Example: Loading](https://erdogant.github.io/pypickle/pages/html/Save_and_Load.html#loading)\n\n```python\n\n# Load file\ndata = pypickle.load(filepath)\n\n```\n\n---\n\n\n### Contributors\nSpecial thanks to the contributors!\n\n\u003cp align=\"left\"\u003e\n  \u003ca href=\"https://github.com/erdogant/pypickle/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=erdogant/pypickle\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n### Maintainer\n* Erdogan Taskesen, github: [erdogant](https://github.com/erdogant)\n* Contributions are welcome.\n* Yes! This library is entirely **free** but it runs on coffee! :) Feel free to support with a \u003ca href=\"https://erdogant.github.io/donate/?currency=USD\u0026amount=5\"\u003eCoffee\u003c/a\u003e.\n\n[![Buy me a coffee](https://img.buymeacoffee.com/button-api/?text=Buy+me+a+coffee\u0026emoji=\u0026slug=erdogant\u0026button_colour=FFDD00\u0026font_colour=000000\u0026font_family=Cookie\u0026outline_colour=000000\u0026coffee_colour=ffffff)](https://www.buymeacoffee.com/erdogant)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferdogant%2Fpypickle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferdogant%2Fpypickle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferdogant%2Fpypickle/lists"}