Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Python Moodle GIFT parser is a parser for GIFT files: https://docs.moodle.org/38/en/GIFT_format
The program consist in two parts: parser.py
with lex/yacc and gift.py
with classes where parser results will saved. The class Gift
will contain all questions and every Question
will have an answer (there are several types of answers - read the Moodle GIFT documentation).
There is an example.py
script python with an example. This script expect a file and parse it. After that it prints the object Gift
with all information catched by the parser.
You can install it like a package using pip
from pypi.org: pip install pygiftparserrgmf
.
After that, you can parse a file like this:
from pygiftparserrgmf import parser
with open('gift_file.txt', 'r') as myfile:
s = myfile.read()
gift_object = parser.parse(s)
From here you'll have Gift
object into gift_object
(see pygiftparser/gift.py
file).
Inside tests
folder there are several tests. You can run all of them executing the command python -m unittest discover -v -s tests/
.
FAQs
Moodle GIFT files parser
We found that pygiftparserrgmf 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 malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.