
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).
Enhanced terminal color and charting library providing extensive color combinations, charting utilities, and demos for Python applications.
pip install fstrent_charts
from fstrent_charts import (
# Utility functions
cs, cp,
# Basic colors
R, G, B, W # Red, Green, Blue, White
)
# Print colored text
cp("This is red text", R)
cp("This is green text", G)
cp("This is blue text", B)
# Create colored strings
colored_text = cs("Custom colored text", B)
print(colored_text)
The fstrent_charts
library provides utilities for creating and displaying charts in the terminal. Below are examples from the demo functions included in the library.
from fstrent_charts import CHRT
chrt = CHRT()
title = "Basic Chart Example"
chrt.chart_top(in_str=title)
chrt.chart_row(in_str="This is a row in the chart", align='left', font_color='white', bg_color='blue')
chrt.chart_bottom()
from fstrent_charts import CHRT
chrt = CHRT()
title1 = "Sell Market Collection"
subtitle1 = "adding markets with open positions (44) :"
markets1 = [
"POLS-USDC", "SUI-USDC", "POL-USDC", "FLOKI-USDC", "SHIB-USDC"
# ... more markets
]
chrt.chart_top(in_str=title1)
chrt.chart_title(in_str=subtitle1)
for market in markets1:
chrt.chart_row(in_str=market, align='left', font_color='white', bg_color='green')
chrt.chart_bottom()
from fstrent_charts import CHRT
chrt = CHRT()
title = "Last 25 Opened Positions - Live"
headers = "mkt | T | pos_id | strat | freq | age | open @ est | buy_val | buy_prc | curr_prc | high_prc | gain_pct % | gain_top % | drop_pct % | gain_loss | gain_loss_high"
rows = [
"MOBILE-USDC | | 32919 | drop | 1d | 0 | 12-01-2024 | 3.000000 | 0.00151779| 0.00151400| 0.00151400| -0.20 % | 0.00 % | -0.10 % | 0.00000000 | 0.02360239",
# ... more rows
]
chrt.chart_top(in_str=title)
chrt.chart_headers(in_str=headers)
for row in rows:
chrt.chart_row(in_str=row, align='left', font_color='white', bg_color='black')
chrt.chart_bottom()
git clone https://github.com/wrm3/fstrent_charts.git
cd fstrent_charts
pip install -e ".[dev]"
pytest
MIT License - see LICENSE file for details.
Warren R Martel III (wrmartel3@gmail.com)
Contributions are welcome! Please feel free to submit a Pull Request.
FAQs
Color Chart options for terminal output
We found that fstrent-charts 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.