Cappr

Latest version: v0.9.6

Safety actively analyzes 701595 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 7 of 7

0.2.1

Breaking changes

None

New features

None

Bug fixes

* Allow `prior` to be a numpy array

0.2.0

Breaking changes

None

New features

Adds `cappr.huggingface.classify_no_cache`, which appears to be faster for non-batch processing. This may be a bug tho lol. If it is and I fix it, I'm going to hide this module again, which will be a breaking change.

Here's its [documentation](https://cappr.readthedocs.io/en/latest/cappr.huggingface.classify_no_cache.html).

Bug fixes

None

0.1.0

See the [documentation](https://cappr.readthedocs.io/en/latest/index.html)

Installation

If you intend on using OpenAI models, [sign up for the OpenAI API here](https://platform.openai.com/signup), and then set the environment variable `OPENAI_API_KEY`. For zero-shot classification, OpenAI models are currently far ahead of others. But using them will cost ya 💰!

Install with `pip`:


python -m pip install cappr


<details>
<summary>(Optional) Install requirements for HuggingFace models</summary>


python -m pip install cappr[hf]

</details>

<details>
<summary>(Optional) Set up to run demos</summary>


python -m pip install cappr[demos]

</details>

Page 7 of 7

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.