
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
llmprint is a CLI tool that prints directory structures and file contents in a clean, LLM-friendly format. It's perfect for generating context when pasting into a chatbot or code assistant.
.gitignore
-style rulesgit clone https://github.com/rsh3khar/llmprint.git
cd llmprint
pip install .
pip install llmprint
# Print structure of current directory
llmprint -s
# Print structure of specific directories
llmprint -s -i src/ tests/
# Print contents of specific directories
llmprint -i src/ tests/
# Print all files in current directory
llmprint .
# Exclude directories while printing contents
llmprint -i . -e node_modules __pycache__
# Exclude files by pattern (use quotes to prevent shell expansion)
llmprint -i . -e "*.pyc" "*.log"
# Copy tree structure to clipboard
llmprint -s -c
# Copy file contents to clipboard
llmprint -i src/ -c
# Copy and also print to screen
llmprint -s -c -p
When prompting an LLM with questions like:
"Can you explain this repo to me?"
"What's the purpose of this function?"
"Can you refactor this?"
You often need to include file structure and contents. llmprint
formats this perfectly for large-context pasting — clean, readable, and structured.
Option | Description |
---|---|
-s / --structure | Print directory structure only |
-i / --include | Specify folders or files to include |
-e / --exclude | Specify folders or files to exclude (use quotes for patterns, e.g., "*.pyc") |
-c / --copy | Copy output to clipboard (suppresses stdout) |
-p / --print | Print to stdout when using --copy |
If no flag is provided, it defaults to printing the directory structure.
pyperclip
for clipboard operationsRaj Shekhar
GitHub: @rsh3khar
FAQs
CLI tool to print directory structure and file contents for LLM context generation
We found that llmprint 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
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.