Skip to main content

🐍 Pyscan

CI Liscense PyPI GitHub issues Top Language

A dependency vulnerability scanner for your python projects, straight from the terminal.
  • 🚀 blazingly fast scanner that can be used within large projects quickly.
  • 🤖 automatically uses requirements.txt, pyproject.toml or, the source code.
  • 🧑‍💻 can be integrated into existing build processes.
  • 💽 In its alpha stage, some features may not work correctly. PRs and issue makers welcome.

🕊️ Install

> pip install pyscan-rs

look out for the "-rs" part or

> cargo install pyscan

check out the releases.

🐇 Usage

Go to your python source directory (or wherever you keep your requirements.txt/pyproject.toml) and run:

> pyscan

or

> pyscan -d path/to/src

Docker

[WARNING: docker subcommand currently does not work, if you are installing pyscan solely for that purpose. It will be fixed and released in the next version. Thanks for the patience, people with actual jobs (i dont know anyone else who actually uses docker)]

Pyscan can scan inside docker images given you provide the correct path inside. This is still in its early stage and may break easily.

> pyscan docker -n my-docker-image -p /path/inside/container/to/source

by "source" I mean requirements.txt, pyproject.toml or your python files. Note: Your docker engine/daemon should be running as pyscan utilizes the docker create command.


Here's the order of precedence for a "source" file:
  • requirements.txt
  • pyproject.toml
  • your python source code (.py) [highly discouraged]

Pyscan will find dependency versions from pip if not provided within the source file. Even though, Make sure you version-ize your requirements and use proper pep-508 syntax.

🦀 Note

pyscan uses OSV as its database for now. There are plans to add a few more.

pyscan doesn't make sure your code is safe from everything. Use all resources available to you like Dependabot, pip-audit or trivy.

🐰 Todo

As of June 27, 2023:

  • Gather time to work on it (incredible task as a high schooler)
  • Multi-threading
  • Better display, search, filter of vulns
  • Plethora of output options (stick to >> for now)

🐹 Sponsor

While not coding, I am a broke high school student with nothing else to do. I appreciate all the help I can get.

Metadata

Release files for pyscan-rs 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyscan-rs 0.1.4
File Size Uploaded
pyscan_rs-0.1.4.tar.gz 38.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyscan-rs 0.1.4
File Interpreter ABI Platform
pyscan_rs-0.1.4-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details

Total release size: 3.6 MB

Release files / pyscan_rs-0.1.4.tar.gz

Download URL pyscan_rs-0.1.4.tar.gz
Size 38.2 kB
Tags Source
SHA-256 checksum
How to use checksums
cbebb233ed0efe6420147ffb931c947f8ef58541974bea1d64a05b81dd48df00
BLAKE2b-256 checksum
How to use checksums
2bef4155c2a865ac2154c6e5de4949a603431ea64a6228de8f611744eb6e816a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.15.1

Release files / pyscan_rs-0.1.4-py3-none-win_amd64.whl

Download URL pyscan_rs-0.1.4-py3-none-win_amd64.whl
Size 3.6 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
999bcb384158932b6f76e4e7943484533cc61397e570439f8c8ce5ccfda1faa9
BLAKE2b-256 checksum
How to use checksums
5a18b0d8b0f2436fff7d79aa92034be119bb6da87649299a4b1a07472bdcca77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.15.1

Release history Release notifications | RSS feed

2.1.2

14 release files

2.1.1

14 release files

2.1.0

14 release files

2.0.0

14 release files

0.1.8

13 release files

0.1.7

6 release files

0.1.6

6 release files

0.1.5

5 release files

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page