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.
A python client for Etsy's StatsD server and InfluxDB's Telegraf StatsD server.
Code: https://github.com/macobo/statshog
License: MIT; see LICENSE file
Issues: https://github.com/macobo/statshog/issues
Documentation: https://statshog.readthedocs.io/
The easiest way to install statsd is with pip!
You can install from PyPI:
pip install statshog
Or GitHub:
$ pip install -e git+https://github.com/macobo/statshog#egg=statshog
Or from source:
git clone https://github.com/macobo/statshog
cd pystatsd
python setup.py install
import statshog
statsd = statshog.StatsClient(host='localhost', port=8125)
statsd.incr('foo') # Increment the 'foo' counter.
statsd.timing('stats.timed', 320) # Record a 320ms 'stats.timed'
import statshog
statsd = statshog.StatsClient(telegraf=True)
statsd.timing('stats.timed', 320, tags={"mytag": 456})
Update your settings.py to have the following values if using non-defaults:
STATSD_HOST
(default: 'localhost'
)STATSD_PORT
(default: 8125
)STATSD_PREFIX
(default: None
)STATSD_MAXUDPSIZE
(default: 512
)STATSD_IPV6
(default: False
)STATSD_TELEGRAF
(default: False
)STATSD_SEPARATOR
(default: '.'
)Then, you can use statshog as following:
from statshog.defaults.django import statsd
statsd.timing('stats.timed', 320)
To use together with
django-statsd, also add
the following to your settings.py
:
STATSD_CLIENT = "statshog"
FAQs
A simple statsd client.
We found that statshog 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.