
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
dotini
Advanced tools
This package is a simple layer on top of the built-in configparser module. The advantage of dotini is the option of using dot notation to access settings in a configuration file, provided the settings and section names are valid variable names. This is aesthetically pleasing.
With the dotini module imported, use the read() function to parse a config- uration file. This is done using configparser, for more details regarding file format and rules, see the official documentation for configparser.
Once the configuration file has been read, it’s settings can be accessed with dot notation for settings with valid variable names. Settings without valid variable names can still be accessed with square brackets.
import dotini
settings = dotini.read(‘settings.ini’)
_login(user=settings.user.name,
pass=settings.user[‘pass’])
As mentioned previously, to be able to use the dot notation access, settings should be made with variable safe names.
Setting values are read in as strings, and there is no automatic type conversion when they are stored or accessed. Type conversion is up to you!
Example Configuration File —------------------------- [user] name = ‘thomas’ pass = ‘samoht’
[performance] speed = 10 cores = 4
FAQs
Dot notation for configuration files.
We found that dotini 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
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.