PyDepGuard PyLock: A gatekeeper dependency validator for Python scripts
Project description
PyLock Dependency Manager
THIS README IS OLD AND WILL BE REPLACED
Introduction
Welcome to PyLock Dependency Manager, a personal project aimed at providing a simple and effective solution for managing Python dependencies. As the sole developer, progress might be slow but the goal is to create a tool that can accurately identify and track the dependencies of a Python script, and ensure that these dependencies are met before the script is executed.
Current Capabilities
Currently, PyLock can:
- Parse a Python script and identify its direct dependencies.
- Check if the dependencies are installed and if their installed versions match the versions specified in the lockfile.
- Generate a lockfile that lists the script's dependencies along with metadata such as the author, home page, and summary.
- Execute the script only if all the dependencies are met.
Goals
- Avoid dependency hell: By creating a lockfile that lists a script's dependencies along with their versions, PyLock ensures that you can always recreate the exact environment that the script needs to run.
- Improve security: By making sure that all dependencies are explicitly listed and their versions locked, PyLock helps avoid the risk of unintentionally installing malicious packages.
- Facilitate sharing and collaboration: The lockfile can be included when you share your script, allowing others to easily recreate your environment and run your script without any dependency issues.
Note: The current name of the project, "PyLock Dependency Manager", is a temporary placeholder and may be subject to change in the future.
Roadmap
The planned enhancements for PyLock include:
- Improved Package Scanning: PyLock will use static analysis to identify dependencies that are imported dynamically or conditionally.
- Dependency Graphs: PyLock will generate visualizations of your project's dependency graph, helping you understand the relationships between various packages.
- Integration with Pip: PyLock will integrate more closely with Pip, allowing it to automatically install any missing dependencies or update installed dependencies to the required versions.
- VSCode Extension: A VSCode extension for PyLock is planned to provide real-time feedback on dependencies while writing code.
- CI/CD Pipeline Integration: PyLock will provide functionality to be integrated into CI/CD pipelines for automatic dependency checking and resolution.
- Dependency Scanning via deps.dev: Future versions of PyLock will integrate with deps.dev and other similar services to provide more detailed information about each dependency, including its popularity, development activity, and known security vulnerabilities.
- Virtual Environment Support: PyLock plans to add functionality to spin up a virtual environment on the fly with the dependencies required in the version required for the script run.
Feedback and Feature Requests
I am always open to feedback and suggestions. If you have ideas for new features or improvements, feel free to share them. However, please note that the decision to implement any proposed changes will be made at my discretion.
Stay tuned for updates as PyLock continues to evolve and improve!
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydepguard-3.0.0.tar.gz.
File metadata
- Download URL: pydepguard-3.0.0.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e68724b8a0779b3bc88aa3b51686f9f4ae249c4cdb45be7744a7805c4bd9119
|
|
| MD5 |
16825b25a911a293986f3ac0281054b5
|
|
| BLAKE2b-256 |
2bc0c24af4b35f342a3094118704fe81bc362e794b0f9731fb4009d70fbcc933
|
Provenance
The following attestation bundles were made for pydepguard-3.0.0.tar.gz:
Publisher:
python-publish.yml on nuclear-treestump/pylock-dependency-lockfile
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pydepguard-3.0.0.tar.gz -
Subject digest:
7e68724b8a0779b3bc88aa3b51686f9f4ae249c4cdb45be7744a7805c4bd9119 - Sigstore transparency entry: 238847947
- Sigstore integration time:
-
Permalink:
nuclear-treestump/pylock-dependency-lockfile@12d250507c76da1e2d3d61c40601eeee37bb8469 -
Branch / Tag:
refs/tags/v3.0.0 - Owner: https://github.com/nuclear-treestump
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@12d250507c76da1e2d3d61c40601eeee37bb8469 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pydepguard-3.0.0-py3-none-any.whl.
File metadata
- Download URL: pydepguard-3.0.0-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c7ff1861a8a8083b0d9413b5e5892184a6c6e25eb939954c015d1984bff8d70
|
|
| MD5 |
e87f9fabd3ec3455bfe47eddb341ad94
|
|
| BLAKE2b-256 |
446f85cef96d1edcc3cd873edb41f81941e8cf3182cb773f15b6a2b34570c264
|
Provenance
The following attestation bundles were made for pydepguard-3.0.0-py3-none-any.whl:
Publisher:
python-publish.yml on nuclear-treestump/pylock-dependency-lockfile
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pydepguard-3.0.0-py3-none-any.whl -
Subject digest:
7c7ff1861a8a8083b0d9413b5e5892184a6c6e25eb939954c015d1984bff8d70 - Sigstore transparency entry: 238847950
- Sigstore integration time:
-
Permalink:
nuclear-treestump/pylock-dependency-lockfile@12d250507c76da1e2d3d61c40601eeee37bb8469 -
Branch / Tag:
refs/tags/v3.0.0 - Owner: https://github.com/nuclear-treestump
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@12d250507c76da1e2d3d61c40601eeee37bb8469 -
Trigger Event:
release
-
Statement type: