
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Extension to setuptools to run your package through nuitka to produce compiled, faster, obfuscated binary modules.
Extension to setuptools to run your package through nuitka to produce compiled, faster, obfuscated binary modules.
Nuitka [http://nuitka.net/pages/overview.html] is a python compiler with full language support and CPython compatibility.
It's fully compatible with Python 2.6, 2.7, 3.2, 3.3, 3.4, 3.5, and 3.6.
You feed it your Python app, it does a lot of clever things, and spits out an executable or extension module.
This module provides some hooks to add to your python packages setup.py to automatically run some/all of your code
through nuitka when building a binary dist. This will typically be done with python setup.py bdist_wheel
to
create a wheel for distribution.
With nuitka-setuptools this wheel can be devoid of pure python and only contain compiled code which is not only faster (quote: Nuitka is more than 2 times faster than CPython) but has a relatively high level of code security.
Basic Usage: setup.py::
import sys
from setuptools import setup
# Get the long description from the README file
with open(path.join(path.dirname(__file__), 'README.rst'), 'r') as f:
long_description = f.read()
packages = ['mod', 'pkg']
if any('bdist' in arg for arg in sys.argv):
from nuitka_setuptools import Nuitka, Compile
build_settings = dict(
# Compile module
cmdclass={'build_ext': Nuitka},
ext_modules=Compile(packages),
)
else:
build_settings = {}
setup(
name='nuitka_setuptools',
py_modules=['nuitka_setuptools'],
description='Extension to setuptools to run your package through nuitka to '
'produce compiled, faster, obfuscated binary modules.',
long_description=long_description,
author='Andrew Leech',
author_email='andrew@alelec.net',
url='https://gitlab.com/alelec/nuitka-setuptools',
use_scm_version=True,
include_package_data=True,
install_requires=['setuptools_scm'],
setup_requires=['setuptools_scm'],
cmdclass={'build_ext': Nuitka},
ext_modules=Compile(['nuitka_setuptools']),
**build_settings
)
FAQs
Extension to setuptools to run your package through nuitka to produce compiled, faster, obfuscated binary modules.
We found that nuitka-setuptools 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.