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.
Python packages - the simple way.
Had to code Python so ended up abstracting out these Python package related utilities to be able to deal with Python packages which is in a sad state in comparison to most other language environments.
Easy package (system) load paths - because package imports and load paths in Python makes adults cry.
Easy package tag/release - because package tag/release management should not be done by hand, fallback on conventions.
Install using pip:
pip install easypackage
How to to make use of easypackage
in various ways:
Create a package.json
in package root folder (e.g. mypackage
) - see Node.js specification, in lack of such for Python.
In any package source file:
# e.g. `~/dev/projects/mypackage/foo/foo.py`
def hello:
print('hello!')
In any other package source file:
# e.g. `~/dev/projects/mypackage/bar/bar.py`
from easypackage import syspath as easysyspath
# add `~/dev/projects/mypackage` to Python system path unless already added
easysyspath.syspath()
from mypackage.utils.foo import foo
foo.hello()
And so on.
In file release.py
in package project root:
from easypackage import release as easyrelease
easyrelease.release()
To tag/release a new version to Git, simply add/update a valid semver version tag in package.json
- according to Node.js specification - and then run python release.py
.
Currently not submitted to any Python package register, but will probably be added soon.
Released under the MIT license.
FAQs
Python packages - the simple way.
We found that easypackage 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.