Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Readme
Python HTML Generator for Recyclable Web Elements.
Tumulus is an alternative to Templating languages found in many templating engines such as Jinja2, Django, Mako, ... Such templating engines make it difficult to separate logical elements of the page, hence discouraging reusability.
The motivation behind Tumulus is to encourage developers to build reusable web components that can then be put together to build web pages or applications.
# Importing the basic brick of Tumulus, the tags creator:
from tumulus.tags import tags as t
# This module helps to add JS/CSS libraries in page head/footer:
import tumulus.lib as lib
def bootstrap_button(text):
'''Returns a Bootstrap formatted button, and adds the CSS of
Bootstrap to the dependencies of the page.'''
return t.div(
# Standard HTML button with 'text' inside:
t.button(text, class_='btn btn-info'),
# Injecting Bootstrap's CSS file in the HTML head.
# This can be done almost anywhere, as it will be included
# somewhere else, and there is de-duplication.
lib.css('bootstrap')
);
def page(title, text):
return t.html(
t.head(
t.title(title),
t.meta(charset='utf-8'),
),
t.body(
t.h1(title),
t.p(
text
),
bootstrap_button('Click Here'),
),
)
print(
page('Hello World', 'Hello from Tumulus').build()
)
Tumulus uses testing intensely, and tries to keep a coverage close from 100%. Testing
is done using pytest
and pytest-cov
.
Run all tests:
py.test tumulus
Generate a coverage report:
py.test --cov tumulus && coverage html
FAQs
Python HTML Generator for Recyclable Web Elements
We found that Tumulus 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
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.