Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

localstack-obfuscator

Package Overview
Dependencies
Maintainers
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

localstack-obfuscator

Obfuscate proprietary LocalStack code bases

  • 0.3.0
  • PyPI
  • Socket score

Maintainers
5

Obfuscator

Utility to obfuscate Python code

Installation

pip install localstack-obfuscator

Usage

You need to have a config file in the project you want to obfuscate.

An example config file is given below:

custom_patches: false # if true, will use custom patches for dataclasses. Default is false.

# custom parameters for python_minifier
minify:
  remove_literal_statements: true

# list of files to exclude from obfuscation
exclude:
  - "constants.py"
  - "routes.py"

# list of files to remove from resulting build
remove:
  - ".venv"
  - "build"

target_dir: "outages" # relative to the build directory. The default is the same as current dir name
build_dir: "build" # relative to the current dir. The default is "build".

Note that the exclude and remove lists perform different functions:

  • The exclusion works on a per-file basis and is for files that should be kept in the package but not obfuscated.
  • The removal is for files and directories that should not be in the final build at all. This is, e.g., useful for the virtual environment directory or the build directory itself. It also improves the performance because the files are not even copied to the build directory in the first place.

To perform the obfuscation, run the obfuscator against the project directory.

localstack-obfuscator .

FAQs


Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc