Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
.. _pycollect:
Utility library dealing with Python files.
Features
.. code-block:: bash
pip install pycollect
.. code-block:: python
collector = PythonFileCollector()
python_files = collector.collect()
When no explicit directory is given the parent folder of caller's file will be used.
It is possible to define custom exclusion patterns. See the docs for more <https://allrod5.github.io/pycollect/reference/pycollect.html#pycollect.PythonFileCollector>
__.
.. code-block:: python
module_name = find_module_name(filepath)
As there can be multiple valid module names for a given file, by default the outermost
module name is returned. The inverse behaviour can be enabled with the innermost
parameter. See the docs for more <https://allrod5.github.io/pycollect/reference/pycollect.html#pycollect.find_module_name>
__.
See the complete docs at allrod5.github.io/pycollect <https://allrod5.github.io/pycollect/>
__.
Integration tests <https://github.com/allrod5/pycollect/tree/master/tests/integration>
__
can be pretty helpful to understand pycollect usage more in-depth too.
CONTRIBUTING <https://allrod5.github.io/pycollect/contributing.html>
__: Bug reports, feature requests, documentation & pull requests.CHANGELOG <https://allrod5.github.io/pycollect/changelog.html>
__: See what's changed in each version.AUTHORS <https://allrod5.github.io/pycollect/authors.html>
__: Know who's behind the project.find_module_name
function__init__.py
requirement for considering a path as importableFAQs
Utility library to collect files recursively
We found that pycollect demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.