Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
cedarscript-ast-parser
Advanced tools
A library for parsing and interpreting CEDARScript, a SQL-like language for code analysis and transformations
CEDARScript AST Parser
is a Python library for parsing and interpreting CEDARScript
, a SQL-like language designed for concise code analysis, manipulation, and refactoring tasks.
CEDARScript (Concise Examination, Development, And Refactoring Script) is a domain-specific language that aims to improve how AI coding assistants interact with codebases and communicate their code modification intentions. It provides a standardized way to express complex code modification and analysis operations, making it easier for AI-assisted development tools to understand and execute these tasks.
CEDARScript
Abstract Syntax Tree (AST
) that was generated by Tree-Sitter into a list of commandsXML
format for easier parsing and processing by LLM systemsYou can install CEDARScript Parser using pip:
pip install cedarscript-ast-parser
Here's a quick example of how to use CEDARScript Parser:
from cedarscript_ast_parser import CEDARScriptASTParser
parser = CEDARScriptASTParser()
code = """
CREATE FILE "example.py"
UPDATE FILE "example.py"
INSERT AT END OF FILE
CONTENT
print("Hello, World!")
END CONTENT
END UPDATE
"""
commands, errors = parser.parse_script(code)
if errors:
for error in errors:
print(f"Error: {error}")
else:
for command in commands:
print(f"Parsed command: {command}")
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.
FAQs
A library for parsing and interpreting CEDARScript, a SQL-like language for code analysis and transformations
We found that cedarscript-ast-parser 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.