{"id":31299364,"url":"https://github.com/roboflow/fickle","last_synced_at":"2026-01-20T17:34:52.414Z","repository":{"id":312334844,"uuid":"1047187727","full_name":"roboflow/fickle","owner":"roboflow","description":"Roboflow fork of fickle - load pickled data as safely as possible","archived":false,"fork":false,"pushed_at":"2025-08-29T22:44:39.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-16T04:44:31.363Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roboflow.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-29T22:22:14.000Z","updated_at":"2025-08-29T22:44:42.000Z","dependencies_parsed_at":"2025-08-29T23:24:02.686Z","dependency_job_id":"439284e2-d9c6-46e0-b6e8-0d9542844f0a","html_url":"https://github.com/roboflow/fickle","commit_stats":null,"previous_names":["roboflow/fickle"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/roboflow/fickle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roboflow%2Ffickle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roboflow%2Ffickle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roboflow%2Ffickle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roboflow%2Ffickle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roboflow","download_url":"https://codeload.github.com/roboflow/fickle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roboflow%2Ffickle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276842183,"owners_count":25714202,"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","status":"online","status_checked_at":"2025-09-24T02:00:09.776Z","response_time":97,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-09-25T00:57:23.136Z","updated_at":"2025-09-25T00:57:25.761Z","avatar_url":"https://github.com/roboflow.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RFFickle: Roboflow Fork of Fickle\n\nThis is a fork of the [Fickle](https://pypi.org/project/fickle/) package by Eduard Christian Dumitrescu, with additional functionality added by Roboflow.\n\n## Fork Information\n\n- **Original Package**: [fickle](https://pypi.org/project/fickle/) v0.2.2\n- **Original Author**: Eduard Christian Dumitrescu\n- **Fork Maintainer**: Roboflow, Inc.\n- **PyPI Package**: `rffickle`\n\nThis fork was created from the PyPI source distribution as the original source code was not available on GitHub.\n\n---\n\n# Original README: Fickle - Firewalled Pickle\n\nPeople abuse pickle. Especially researchers. Pickle is [not secure](https://docs.python.org/3/library/pickle.html). Published datasets and ML training weights are often distributed as pickle files (or formats which use pickle files, such as [PyTorch checkpoint.ckpt files](https://pytorch.org/tutorials/beginner/saving_loading_models.html)). Sometimes it is the only format that they are available in.\n\n## Examples\n\nLoading basic types is easy:\n\n```python\n\u003e\u003e\u003e from fickle import DefaultFirewall\n\u003e\u003e\u003e import pickle\n\u003e\u003e\u003e\n\u003e\u003e\u003e my_picked_data = pickle.dumps({\"list\": [1, 2, \"three\", b\"four\"]})\n\u003e\u003e\u003e\n\u003e\u003e\u003e firewall = DefaultFirewall()\n\u003e\u003e\u003e firewall.loads(my_picked_data)\n{'list': [1, 2, 'three', b'four']}\n```\n\nSafely loading PyTorch checkpoint files into numpy arrays is just as easy:\n\n```python\n\u003e\u003e\u003e from fickle.ext.pytorch import fake_torch_load_zipped\n\u003e\u003e\u003e from zipfile import ZipFile\n\u003e\u003e\u003e\n\u003e\u003e\u003e zf = ZipFile(\"/path/to/sd-v1-4.ckpt\")\n\u003e\u003e\u003e ckpt = fake_torch_load_zipped(zf)\n\u003e\u003e\u003e tensor = ckpt[\"state_dict\"][\"model.diffusion_model.output_blocks.3.1.norm.weight\"]\n\u003e\u003e\u003e tensor.array\narray([0.39097363, 0.3898967 , 0.35191917, ..., 0.41924757, 0.4031702 ,\n       0.37156993], dtype=float32)\n```\n\nYou can, optionally, even use `marshmallow` for validation!\n\n## Alternatives\n\n- [picklemagic](https://github.com/CensoredUsername/picklemagic)\n- [pikara](https://pypi.org/project/pikara)\n\n|                                                | fickle | picklemagic | pikara |\n|------------------------------------------------|--------|-------------|--------|\n| Does not rely on `pickle._Unpickler`?          | ✅      | ❌           | ✅      |\n| Uses `pickletools.genops`                      | yes    | no          | yes    |\n| Can load without executing?                    | ✅      | ✅           | ?      |\n| Forbid importing arbitrary objects?            | ✅      | ✅           | ?      |\n| Forbid calling `list.append`/`set.add`/etc?    | ✅      | ❌           | ?      |\n| Forbid calling all methods by default?         | ✅      | ❌           | ?      |\n| Can create dangerous circular structures?      | ✅      | ✅           | ?      |\n| Safe against billion laughs DoS attack?        | ?      | ?           | ?      |\n| Full support for all pickle opcodes?           | ❌      | ✅           | ?      |\n| Has unit tests?                                | ✅      | ❌           | ✅      |\n| Stable API?                                    | ❌      | ✅           | ✅      |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froboflow%2Ffickle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froboflow%2Ffickle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froboflow%2Ffickle/lists"}