pypickle

pypickle is for saving and loading files in pickle format.

https://github.com/erdogant/pypickle

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

load pickle pypi python python3 save

Scientific Fields

Engineering Computer Science - 40% confidence
Last synced: 4 months ago · JSON representation ·

Repository

pypickle is for saving and loading files in pickle format.

Basic Info
Statistics
  • Stars: 4
  • Watchers: 1
  • Forks: 1
  • Open Issues: 0
  • Releases: 10
Topics
load pickle pypi python python3 save
Created over 5 years ago · Last pushed 5 months ago
Metadata Files
Readme Funding License Citation

README.md

pypickle

Python PyPI Version GitHub Repo stars License Downloads Downloads DOI Sphinx <!---Coffee--> <!---BuyMeCoffee-->

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


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

  • Erdogan Taskesen, github: erdogant
  • Contributions are welcome.
  • Yes! This library is entirely free but it runs on coffee! :) Feel free to support with a Coffee.

Buy me a coffee

Owner

  • Name: Erdogan
  • Login: erdogant
  • Kind: user
  • Location: Den Haag

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

All Time
  • Total Commits: 34
  • Total Committers: 2
  • Avg Commits per committer: 17.0
  • Development Distribution Score (DDS): 0.324
Past Year
  • Commits: 9
  • Committers: 1
  • Avg Commits per committer: 9.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email 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
  • Versions: 10
  • Dependent Packages: 8
  • Dependent Repositories: 17
  • Downloads: 27,325 Last month
  • Docker Downloads: 23
Rankings
Dependent packages count: 1.1%
Downloads: 1.4%
Docker downloads count: 3.3%
Dependent repos count: 3.5%
Average: 11.2%
Stargazers count: 27.8%
Forks count: 29.8%
Maintainers (1)
Last synced: 4 months ago
conda-forge.org: pypickle
  • Versions: 4
  • Dependent Packages: 1
  • Dependent Repositories: 0
Rankings
Dependent packages count: 28.8%
Dependent repos count: 34.0%
Average: 46.0%
Stargazers count: 60.1%
Forks count: 61.1%
Last synced: 4 months ago

Dependencies

docs/source/requirements.txt pypi
  • pipinstallsphinx_rtd_theme *
requirements-dev.txt pypi
  • pipinstallspyder-kernels * development
  • rst2pdf * development
  • sphinx_rtd_theme * development
requirements.txt pypi
  • matplotlib *
  • numpy *
  • pandas *
  • tqdm *
  • wget *
pyproject.toml pypi