Skip to main content

A curated database of insecure Python packages

Project description

safety

What is Safety DB?

Safety DB is a database of known security vulnerabilities in Python packages. The data is made available by pyup.io and synced with this repository once per month. Most of the entries are found by filtering CVEs and changelogs for certain keywords and then manually reviewing them.

Tools

  • Safety CI is a deep GitHub integration that's available on pyup.io. It checks your commits and Pull Requests.
  • Safety is a command line tool that checks virtualenvironments and requirement files either locally or on a CI server.
  • Safety Django is a package for Django that warns you in the admin area if your installed Django release is insecure.
  • Safety Bar (alpha) is a macOS menubar application.
  • A pre-commit hook by Lucas Cimon.
  • pipenv check relies on safety and Safety-DB to check for known vulnerabilities in locked components
  • your tool?

Installation

pip install safety-db

Usage

from safety_db import INSECURE, INSECURE_FULL

What is this not?

This is not a hall of shame, or a list of packages to avoid. The package maintainers show a great responsibility by documenting and fixing security issues in such a way that they can be listed here. That's extremely valuable when considering using a package in production.

Using this data

For humans:

For robots:

Check out the data directory:

  • insecure.json contains just the package name and all insecure releases as a plain list.
  • insecure_full.json additionally contains the CVE description and URLs, or the relevant part of the changelog.

The database is licensed under CC BY-NC-SA 4.0. This allows you to use the data in any non commercial project as long as you link back to this repo. If you need a license for a commercial project, please contact support@pyup.io.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

safety-db-2020.4.14.tar.gz (182.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

safety_db-2020.4.14-py2.py3-none-any.whl (134.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file safety-db-2020.4.14.tar.gz.

File metadata

  • Download URL: safety-db-2020.4.14.tar.gz
  • Upload date:
  • Size: 182.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.7

File hashes

Hashes for safety-db-2020.4.14.tar.gz
Algorithm Hash digest
SHA256 337a853c184e52f76d82c2822aa1cc1fd58b2e2dc906275c7caa50b528349170
MD5 1393a6b1c02e98592c32f483abe851ca
BLAKE2b-256 432ba16ab002a6fbea3513ca7a4a02d9fffb780f57ebe446b4f152e82d066ffb

See more details on using hashes here.

File details

Details for the file safety_db-2020.4.14-py2.py3-none-any.whl.

File metadata

  • Download URL: safety_db-2020.4.14-py2.py3-none-any.whl
  • Upload date:
  • Size: 134.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.7

File hashes

Hashes for safety_db-2020.4.14-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6c4a42c41f76d828658872c3e067c122d0e3df12c8932339fc3a217a3121a3bf
MD5 91c35c895e0662014d2d807bada5fcd9
BLAKE2b-256 fba40d82b51c49e386f1d22e4b4e980a636564dbef3cce6c82389ccfa24b305c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page