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.
Calendar-plus is a simple library for creating HTML Calendar that includes query objects.
This is an example of what the library allows you to do.
pip install calendar-plus
So you have a class for an event object that looks something like below. This example is based on Django framework.
class Event(models.Model):
name = models.CharField()
time = model.TimeField()
date = models.DateField()
The query is events = Event.objects.filter(date__year=year, date__month=month)
Using the library
from calendarplus import ModelCalendar
calendar = ModelCalendar(year=month, month=month).formatmonth(events)
context['calendar'] = calendar
return context
You can now use the context_object_name in your template. This library requires bootstrap framework to render beautifully. You can override the formatmonth to use your own css class.
FAQs
A calendar library for creating HTML calendars that contain query objects
We found that calendar-plus 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.