
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
A collection of functions to generate various visual representations of text in SVG format
A Python package for generating various visual representations of text in SVG format.
Install Ghostscript (required for barcode generation):
sudo apt-get install ghostscript
brew install ghostscript
Install the package:
pip install -e .
Generates SVG visualizations of text using 10 distinct encoding methods:
encoderize --text "HELLO" --output-dir output
Options:
--text
, -t
: Text to visualize (required)--output-dir
, -o
: Output directory (default: 'output')--dark
: Generate dark mode versions (white on black)--light
: Generate light mode versions (black on white)If neither --dark
nor --light
is specified, both versions will be generated.
WIP
For input text like "HELLO"
, the output structure will be:
output/
āāā HELLO/
āāā light/
ā āāā binary_stripe_HELLO.svg
ā āāā morse_code_band_HELLO.svg
ā āāā circuit_trace_silhouette_HELLO.svg
ā āāā dot_grid_steganography_HELLO.svg
ā āāā semaphore_flags_HELLO.svg
ā āāā a1z26_stripe_HELLO.svg
ā āāā code128_barcode_HELLO.svg
ā āāā waveform_stripe_HELLO.svg
ā āāā chevron_stripe_HELLO.svg
ā āāā braille_stripe_HELLO.svg
āāā dark/
āāā binary_stripe_HELLO.svg
āāā morse_code_band_HELLO.svg
āāā ... (and so on for all 10 types)
Each visualization function in encoderize/visualizers.py
accepts optional parameters to customize the appearance (e.g., colors, sizes, spacing, dimensions).
See the function docstrings within encoderize/visualizers.py
for detailed parameter information.
Install development dependencies:
pip install -e ".[dev]"
Run tests:
pytest
Run linters (e.g., flake8, black):
# Example using flake8
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# Example using black
black . --check
svgwrite
treepoem
(and its dependency Ghostscript for barcode generation)This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please see the CONTRIBUTING.md file for details on how to report bugs, suggest features, and submit pull requests.
For questions or feedback, please contact Hayden MacDonald at haydenpmac@gmail.com.
Made with contrib.rocks.
FAQs
A collection of functions to generate various visual representations of text in SVG format
We found that encoderize 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
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.