Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Bored of the normal json? Fed up with SQL? Then Friendlier Json will be exactly the right thing for you!
Little Example:
from friendlier_json import Reader
reader = Reader()
reader.file = 'path/to/your/json'
reader.select(limit=2)# Limits the number of results to 2 👍
–––
from friendlier_json import Reader, Object
reader = Reader()
reader.file = 'path/to/your/json'
person1 = Object(name='Maik', age=15)
#the reader can take both the class and a JSON object or a dict as argument. There are 2 methods
reader.insert(person1) # method 1
reader.insert(person1.to_json()) #method 2
Your .json will look like this:
{
"1": {
"name": "Maik",
"age": 15
}
}
from friendlier_json import Reader
reader = Reader()
reader.file = 'path/to/your/json'
result = reader.select(name='Maik', age=15)
print(result)
# this will return a list object
Quantity | Time required (s) |
---|---|
1 | 0.000429 |
10 | 0.004077 |
100 | 0.110214 |
1000 | 6.013882 |
Quantity | Time required (s) |
---|---|
1 | 0.002409 |
10 | 0.003234 |
100 | 0.00242 |
1000 | 0.003081 |
FAQs
A small package that turns a .json into a database !
We found that friendlier-json 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.