pypickle
pypickle is for saving and loading files in pickle format.
Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
✓Academic publication links
Links to: zenodo.org -
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.4%) to scientific vocabulary
Keywords
Scientific Fields
Repository
pypickle is for saving and loading files in pickle format.
Basic Info
- Host: GitHub
- Owner: erdogant
- License: other
- Language: Python
- Default Branch: master
- Homepage: https://erdogant.github.io/pypickle/
- Size: 6.13 MB
Statistics
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
- Releases: 10
Topics
Metadata Files
README.md
pypickle
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.
Whether you're persisting models, storing session data, or sharing files, pypickle makes serialization easy and more secure.
Ideal for developers who care about both convenience and peace of mind.
⭐️ Star it if you like it ⭐️
Key Features
| Feature | Description | |--------|-------------| | Load | Load your pickle files. | | Save | Save your files into pickle format. | | iscriticalpath | Check whether filepath is critical. | | getcriticalpaths | Get critical paths. | | getriskmodules | Get risk modules. | | getallowedpaths | Get allowed paths. |
For security reasons, pickle files are validated by checking the inner modules before loading. Twenty modules are classified as high-risk (see here) and can not be loaded without validation.
| Module Type | Allowed? | How to Change Behavior |
|-----------------------|----------|--------------------------------------------------------------------------|
| Unknown | ✅ | Allowed unless in high-risk list |
| Custom safe | ✅ | If included in validate param |
| Risky (os, etc.) | ❌ | Must be explicitly added via validate=['nt'] or validate=False |
Resources and Links
- Documentation: Website
- Bug Reports and Feature Requests: GitHub Issues
Install pypickle from PyPI
bash
pip install pypickle # normal install
pip install -U pypickle # update if needed
Import pypickle package
python
import pypickle
Example: Saving
```python import pypickle filepath = 'test.pkl'
Some data
data = [1,2,3,4,5]
Save
status = pypickle.save(filepath, data)
```
Example: Loading
```python
Load file
data = pypickle.load(filepath)
```
Contributors
Special thanks to the contributors!
Maintainer
Owner
- Name: Erdogan
- Login: erdogant
- Kind: user
- Location: Den Haag
- Website: https://erdogant.github.io/
- Repositories: 51
- Profile: https://github.com/erdogant
Machine Learning | Statistics | Bayesian | D3js | Visualizations
Citation (CITATION.cff)
# YAML 1.2
---
authors:
-
family-names: Taskesen
given-names: Erdogan
orcid: "https://orcid.org/0000-0002-3430-9618"
cff-version: "1.1.0"
date-released: 2020-10-07
keywords:
- "pickle"
- "load"
- "save"
- "python"
license: "MIT"
message: "If you use this software, please cite it using these metadata."
repository-code: "https://erdogant.github.io/pypickle"
title: "pypickle is for saving and loading files in pickle format."
version: "0.1.1"
...
GitHub Events
Total
- Create event: 7
- Issues event: 2
- Release event: 5
- Watch event: 1
- Delete event: 1
- Issue comment event: 5
- Push event: 40
- Fork event: 1
Last Year
- Create event: 7
- Issues event: 2
- Release event: 5
- Watch event: 1
- Delete event: 1
- Issue comment event: 5
- Push event: 40
- Fork event: 1
Committers
Last synced: over 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| erdogant | e****t@g****m | 23 |
| Erdogan Taskesen | 3****t@u****m | 11 |
Issues and Pull Requests
Last synced: 5 months ago
All Time
- Total issues: 3
- Total pull requests: 0
- Average time to close issues: 18 days
- Average time to close pull requests: N/A
- Total issue authors: 3
- Total pull request authors: 0
- Average comments per issue: 3.67
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 2
- Pull requests: 0
- Average time to close issues: 26 days
- Average time to close pull requests: N/A
- Issue authors: 2
- Pull request authors: 0
- Average comments per issue: 3.5
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- cybersharmaji (1)
- jakirkham (1)
- rajpr1nc3 (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 2
-
Total downloads:
- pypi 27,325 last-month
- Total docker downloads: 23
-
Total dependent packages: 9
(may contain duplicates) -
Total dependent repositories: 17
(may contain duplicates) - Total versions: 14
- Total maintainers: 1
- Total advisories: 2
pypi.org: pypickle
pypickle is a Python library to save and load variables in pickle files.
- Homepage: https://erdogant.github.io/pypickle
- Documentation: https://pypickle.readthedocs.io/
- License: MIT License Copyright (c) 2020 Erdogan Taskesen pypickle - Python package Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
Latest release: 2.0.1
published 7 months ago
Rankings
Maintainers (1)
Advisories (2)
conda-forge.org: pypickle
- Homepage: https://github.com/erdogant/pypickle
- License: MIT
-
Latest release: 1.1.0
published almost 4 years ago
Rankings
Dependencies
- pipinstallsphinx_rtd_theme *
- pipinstallspyder-kernels * development
- rst2pdf * development
- sphinx_rtd_theme * development
- matplotlib *
- numpy *
- pandas *
- tqdm *
- wget *