Skip to main content

No project description provided

Project description

Customs Inspector

Customs Inspector is a Python tool that hooks into Poetry's package management system to allow for manual auditing of package changes during updates. When you run poetry update, Customs Inspector will open a browser with a GitHub diff like view, requesting you to confirm or reject the update before proceeding.

Note:

TESTED ONLY ON Poetry v1.4.x
This is a proof of concept. Poetry explicitly says to not use the plugin system to modify existing commands. If this is something that is considered valuable, I would love to discuss this with Poetry's authors to potentially integrate it.

Why?

Developers are lazy, we'd rather not audit source code...
Well, we cannot afford that anymore. I am also not interested in the snake oil automated analysis companies are selling (for now).

What if auditing was really easy to do so?
What if, we could harness the community's collective effort to find malicious packages?

Usage

See: how to install plugins
To update:

pip install customs-inspector
poetry update

Upcoming:

  • Increase speed
  • Add language server support to make auditing even easier
  • Add file filtering, to hide test folders, for example
  • Add rules for quick auditing, for example when new sensitive APIs are used (socket, os, sys)

Contributions

Feedback, contributions and suggestions welcome.

License

GPL-3.0

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

customs_inspector-0.1.0.tar.gz (3.4 MB view details)

Uploaded Source

Built Distribution

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

customs_inspector-0.1.0-py3-none-any.whl (3.4 MB view details)

Uploaded Python 3

File details

Details for the file customs_inspector-0.1.0.tar.gz.

File metadata

  • Download URL: customs_inspector-0.1.0.tar.gz
  • Upload date:
  • Size: 3.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.10.2 Linux/5.10.0-21-amd64

File hashes

Hashes for customs_inspector-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a44b33a24021700b2900d1e030743a70c5d12b4702b99116eb0e01e1563760b6
MD5 700b5f55b2747c5a5d01beb7b3ab61f9
BLAKE2b-256 f747db192b1217106e13e8a9388f2184aee840762b081094ffde313c80f7050a

See more details on using hashes here.

File details

Details for the file customs_inspector-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: customs_inspector-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.10.2 Linux/5.10.0-21-amd64

File hashes

Hashes for customs_inspector-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 054e2ddf0abd8fed75dca5dfb5a899cd2315c13904647a824f010842ab489431
MD5 48e07e68cfc059673d43512ef09f5f14
BLAKE2b-256 d104c37e70acb3e81a6b7e9f3e24c551005f395f67b3e64a7bbeff9d179ab552

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