NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI
PyPI, #1048 most downloaded on PyPI
A set of tools, related to machine learning in production.
Latest stable
0.16.0
Last release 1 months ago
24 Sep 2026
Release timing varies
gaps range from 2 weeks to 9 months
Nearly every release is documented
notes for 15 of 16 stable releases
1 version withdrawn
withdrawn after publishing
5 years old
18 releases · first in 2022
Drag across the ruler to compare, or tap a release to open it.
MNT strict typechekcing mode by @adrinjalali in https://github.com/skops-dev/skops/pull/541
Full Changelog: https://github.com/skops-dev/skops/compare/v0.15...v0.16.0
Fix loading of time-zone-aware datetime.datetime and datetime.time objects, and of zoneinfo.ZoneInfo and datetime.timezone instances. Their reduce output was not recognized as a constructor call, so they were saved without their state and could not be loaded even when trusted. ZoneInfo objects created with ZoneInfo.from_file are not backed by a key and now raise an error when saved instead of producing a file that cannot be loaded. #546 by Adrin Jalali .
Importing skops.io is faster: resolving the module of objects without module , such as scipy ufuncs, no longer raises and catches an exception for every loaded module that lacks the attribute. #543 by Adrin Jalali .
The trusted argument of skops.io.load() , skops.io.loads() , skops.io.visualize() and skops.card.Card now officially accepts types in addition to their fully qualified names, and skops.io.load() accepts a binary file object in addition to a path. #541 by Adrin Jalali .
Your coding agent can read these notes before it upgrades. Set up the MCP server →
MNT deprecation warning fixes for new deps by @adrinjalali in https://github.com/skops-dev/skops/pull/534
skops.io by @adrinjalali with @Copilot in https://github.com/skops-dev/skops/pull/528Full Changelog: https://github.com/skops-dev/skops/compare/v0.14...v0.15
The protocol number stored in a .skops file is now validated before any of its content is inspected: it must be an integer between 0 and the protocol of the installed skops version. Files saved with a newer protocol used to be silently loaded with the current loaders and now raise an error asking to update skops. The protocol selects which loaders audit and construct the file, so the developer notes in skops.io._protocol now also require that audit fixes to a loader are mirrored to all of its older versions. #537 by Adrin Jalali .
sklearn.tree._tree.Tree and sklearn.ensemble._hist_gradient_boosting.predictor.TreePredictor are no longer trusted by default: skops validates that a loaded object is of a trusted type, but not the contents of its raw state, and these types store unchecked node indices that scikit-learn can dereference out of bounds during .predict() , crashing the process. The raised UntrustedTypesFoundException now explains the risk for these types. #535 by Adrin Jalali .
Fix a security issue where loading a numpy.random.Generator would resolve and call a numpy.random attribute whose name was taken from the file, even though get_untrusted_types reported nothing untrusted for that file. The bit generator type is now surfaced to the audit, and only genuine bit generators are instantiated when loading. #536 by Adrin Jalali .
Fix a security issue where skops update ( skops.cli ) would load a file while blindly trusting every type declared in it, allowing a malicious .skops file to execute arbitrary code. skops update now refuses to load types that are not trusted by default; use the new --trusted option to explicitly allow types you have reviewed. #533 by Adrin Jalali .
Support persisting scipy sparse arrays (e.g. csr_array ) through the same efficient npz format used for sparse matrices, and handle the scipy.special ufunc wrappers introduced in scipy 2.0. This adds compatibility with scipy 2.0 and scikit-learn 1.9. #534 by Adrin Jalali .
Fix importing skops.io raising ModuleNotFoundError when an already imported package exposes lazily loaded attributes whose optional dependencies are missing, for example transformers without torchvision . Trusted type discovery now skips such attributes. #528 by Adrin Jalali .
- Trust internal scikit-learn types needed by GradientBoosting and HistGradientBoosting models, so they no longer surface as untrusted types. #513 by
Trust internal scikit-learn types needed by GradientBoosting and HistGradientBoosting models, so they no longer surface as untrusted types. #513 by cakedev0 and Adrin Jalali .
MNT post release changes by @adrinjalali in https://github.com/skops-dev/skops/pull/484
Full Changelog: https://github.com/skops-dev/skops/compare/v0.12.0...v0.13.0
Card now requires a new parameter, allow_pickle , to call get_model with models that are not .skops files. This change is to mitigate security risks associated with pickles. #485 by Io_no .
MNT remove deprecated hub_utils by @adrinjalali in https://github.com/skops-dev/skops/pull/462
Full Changelog: https://github.com/skops-dev/skops/compare/v0.11.0...v0.12.0
huggingface_hub dependency is now optional. #462 by Adrin Jalali .
Objects’ reduce is used when the output of it is of the form (type, (constructor_args,) where type is the same as the type(obj) . #467 by Adrin Jalali .
MethodNode and OperatorNode have a hardened audit now, removing certain security vulnerabilities. #482 by Adrin Jalali .
FIX incorrect path in generated model card by @tuscland in https://github.com/skops-dev/skops/pull/428
Full Changelog: https://github.com/skops-dev/skops/compare/v0.10...v0.11.0
Correctly restore default_factory when saving and loading a defaultdict . #433 by Adrin Jalali .
Support more loss functions implemented in Cython in scikit-learn. #453 by Adrin Jalali .
Fixes for scikit-learn=1.6 release. #447 by Tamara Atanasoska .
Bump pypa/gh-action-pypi-publish from 1.8.10 to 1.8.11 by @dependabot in https://github.com/skops-dev/skops/pull/402
main only by @adrinjalali in https://github.com/skops-dev/skops/pull/423trusted=True from skops.io.load(s) by @adrinjalali in https://github.com/skops-dev/skops/pull/422Full Changelog: https://github.com/skops-dev/skops/compare/v0.9.0...v0.10
Removes Pythn 3.8 support and adds Python 3.12 Support #418 by Thomas Lazarus .
Removes a shortcut to add sklearn-intelex as a not dependency. #420 by Thomas Lazarus .
trusted=True is now removed from skops.io.load and skops.io.loads . This is to further encourage users to inspect the input data before loading it. skops.io.get_untrusted_types() can be used to get the untrusted types present in the input. #422 by Adrin Jalali .
skops.io now supports numpy>=2 . #429 by Adrin Jalali .
MNT: updates to HF Hub, manage fairlearn deprecation by @BenjaminBossan in https://github.com/skops-dev/skops/pull/392
get_log_level when level = 3 by @EdAbati in https://github.com/skops-dev/skops/pull/346Full Changelog: https://github.com/skops-dev/skops/compare/v0.8.0...v0.9.0
Add support for quantile-forest estimators. #384 by Reid Johnson .
Fix an issue with visualizing Skops files for scikit-learn tree estimators. #386 by Reid Johnson .
skops.hub_utils.get_model_output and skops.hub_utils.push are deprecated and will be removed in version 0.10. #396 by Adrin Jalali .
ENH Set folded on model card add by @lazarust in https://github.com/skops-dev/skops/pull/361
Adds the abillity to set the Section.folded property when using Card.add() . #361 by Thomas Lazarus .
Add the CLI command to update Skops files to the latest Skops persistence format. ( cli._update.main() ). #333 by Edoardo Abati
Fix a bug that prevented persisting np.mean when using numpy>=1.25.0. #373 by Adrin Jalali .
Nothing published for this version
MNT start 0.7 development by @adrinjalali in https://github.com/skops-dev/skops/pull/339
ENH trusting np.ufuncs and np.dtypes by @omar-araboghli in https://github.com/skops-dev/skops/pull/336ENH Allow collapsing any section in card by @lazarust in https://github.com/skops-dev/skops/pull/341Add ability to copy plots on Card.save() so that they can be referenced in the model card. #330 by Thomas Lazarus .
compression and compresslevel from ZipFile are now exposed to the user via io.dumps() and io.dump() . #345 by Adrin Jalali .
Fix: skops.io.visualize() is now capable of showing bytes. #352 by Benjamin Bossan .
All public numpy ufuncs (Universal Functions) and dtypes are trusted by default by io.load() . #336 by Omar Arab Oghli .
Sections in skops.card.Card can now be folded once added to the card. #341 by Thomas Lazarus .
Model loading in skops.card.Card is now cached to avoid loading the model multiple times. #299 by Juan Camacho .
MNT bump version to 0.6.dev0 on main by @adrinjalali in https://github.com/skops-dev/skops/pull/280
MNT/MAINT upgrading isort to 5.12.0 by @omar-araboghli in https://github.com/skops-dev/skops/pull/294ENH trusting scipy.ufuncs by @omar-araboghli in https://github.com/skops-dev/skops/pull/295ENH add metric frame by @lazarust in https://github.com/skops-dev/skops/pull/298ENH Adds ability to create table of contents by @lazarust in https://github.com/skops-dev/skops/pull/305Full Changelog: https://github.com/skops-dev/skops/compare/v0.5.0...v0.6
Add tabular regression example. #254 by Thomas Lazarus .
All public scipy.special ufuncs (Universal Functions) are trusted by default by io.load() . #295 by Omar Arab Oghli .
Add a new function skops.card.Card.add_metric_frame() to help users add metrics to their model cards. #298 by Thomas Lazarus
Add Card.create_toc() to create a table of contents for the model card in markdown format. #305 by Thomas Lazarus .
Add example of using model card without the skops template. #291 by Benjamin Bossan .
Fix: skops persistence now also works with many functions from the operator module. #287 by Benjamin Bossan .
add_* methods on Card now have default section names (but None is no longer valid) and no longer add descriptions by default. #321 by Benjamin Bossan .
Add possibility to visualize a skops object and show untrusted types by using skops.io.visualize() . For colored output, install rich : pip install rich . #317 by Benjamin Bossan .
Fix issue with persisting numpy.random.Generator using the skops format (the object could be loaded correctly but security could not be checked). #331 by Benjamin Bossan .
MNT: Change placeholder character to control character by @E-Aho in https://github.com/skops-dev/skops/pull/258
Add CLI entrypoint support ( cli.entrypoint.main_cli() ) and a command line function to convert Pickle files to Skops files ( cli._convert.main() ). #249 by Erin Aho
Support more array-like data types for tabular data and list-like data types for text data. #179 by Francesco Cariaggi .
Add an option use_intelex to skops.hub_utils.init() which, when enabled, will result in the Hugging Face inference API running with Intel’s scikit-learn intelex library, which can accelerate inference times. #267 by Benjamin Bossan .
Model cards that have been written into a markdown file can now be parsed back into a skops.card.Card object and edited further by using the skops.card.parse_modelcard() function. #257 by Benjamin Bossan .
MNT updated pre-commit config to use github for flake8 by @merveenoyan in https://github.com/skops-dev/skops/pull/221
save_format to config.json and hub_utils.init() by @merveenoyan in https://github.com/skops-dev/skops/pull/242Full Changelog: https://github.com/skops-dev/skops/compare/v0.3.0...v0.4.0
io.dump() and io.load() now work with file like objects, which means you can use them with the with open(...) as f: dump(obj, f) pattern, like you’d do with pickle . #234 by Benjamin Bossan .
All scikit-learn estimators are trusted by default. #237 by Edoardo Abati .
Add model_format argument to skops.hub_utils.init() to be stored in config.json so that we know how to load a model from the repository. #242 by Merve Noyan .
Persistence now supports bytes and bytearrays, added tests to verify that LightGBM, XGBoost, and CatBoost work now. #244 by Benjamin Bossan .
card.Card now allows to add content to existing sections, using a / to separate the subsections. E.g. use card.add(**{"Existing section/New section": "content"}) to add “content” a new subsection called “New section” to an existing section called “Existing section”. #203 by Benjamin Bossan .
FIX ImportError for _DictWithDeprecationKeys by @BenjaminBossan in https://github.com/skops-dev/skops/pull/188
This release brings a new persistence model which doesn't use pickle. It should still be used with caution, but we're more than happy for users to test it and report issues back.
We also have numerous documentation, Hugging Face Hub integration, and model card tools improvements. The full list of changes follows.
Utility function to add arbitrary files to be uploaded to the hub by using hub_utils.add_files() . #123 by Benjamin Bossan .
Add private as an optional argument to skops.hub_utils.push() to optionally set the visibility status of a repo when pushing to the hub. #130 by Adrin Jalali .
First release of the skops secure persistence feature ( #128 ) by Adrin Jalali and Benjamin Bossan . Visit Secure persistence with skops for more information. This feature is not production ready yet but we’re happy to receive feedback from users.
Fix a bug that resulted in markdown tables being rendered incorrectly if entries contained line breaks. #156 by Benjamin Bossan .
Raise an error instead of warning the user if a given model file is empty. #214 by Adrin Jalali .
Use huggingface_hub v0.10.1 for model cards, drop modelcards dependency. #162 by Benjamin Bossan .
Add source links to API documentation. #172 by Ayyuce Demirbas .
Add support to load model if given Path/str to model argument in skops.card . #205 by Prajjwal Mishra .
Fix wrong link to logo in README.rst by @BenjaminBossan in https://github.com/skops-dev/skops/pull/95
Full Changelog: https://github.com/skops-dev/skops/commits/v0.2
Tables, e.g. cross-validation results, can now be added to model cards using the Card.add_table() method. #90 by Benjamin Bossan .
Add method Card.render() which returns the model card as a string. #94 by Benjamin Bossan .
Make skops.hub_utils.init() atomic. Now it doesn’t leave a trace on the filesystem if it fails for some reason. #60 by Adrin Jalali
When adding figures or tables, it’s now possible to set folded=True to render the content inside a details tag. #108 by Benjamin Bossan .
Add skops.hub_utils.get_model_output to get the model’s output using The Hugging Face Hub’s inference API, and return an array with the outputs. #105 by Adrin Jalali .
This is the first release ever, with skops.hub_utils and skops.card modules being the main implementations.
This is the first release ever, with skops.hub_utils and skops.card modules being the main implementations.
Refer to the documentation for release notes and more: https://skops.readthedocs.io/
Full Changelog: https://github.com/skops-dev/skops/commits/v1.0
This is the first release of the library. It include two main modules:
skops.hub_utils : tools to create a model repository to be stored on Hugging Face Hub , mainly through skops.hub_utils.init() and skops.hub_utils.push .
skops.card : tools to create a model card explaining what the model does and how it should be used. The model card can then be stored as the README.md file on the Hugging Face Hub, with pre-populated metadata to help Hub understand the model.
Adrin Jalali , Merve Noyan , Benjamin Bossan , Ayyuce Demirbas , Prajjwal Mishra , Francesco Cariaggi , Erin Aho , Thomas Lazarus
Nothing published for this version
One column per quarter.