
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
A module for retrieving program settings from various sources in a consistant method.
.. image:: https://github.com/jayclassless/setoptconf/workflows/Test/badge.svg :target: https://github.com/jayclassless/setoptconf/actions
setoptconf
is a Python library that can be used to retrieve program settings
from a variety of common sources:
The goal of this project is to define your desired settings in a simple and consistent way, and then point setoptconf at as many of the sources as you'd like to use, and let it comb them all, looking for your settings.
This README is admittedly very light on details. Full documentation will come in time. For now, here's an example of its use:
Import the library::
import setoptconf as soc
Instantiate the manager::
manager = soc.ConfigurationManager('myprogram')
Define the settings we'd like to collect::
manager.add(soc.StringSetting('foo'))
manager.add(soc.IntegerSetting('bar', required=True))
manager.add(soc.BooleanSetting('baz', default=True))
Retreive the settings from our desired sources, combining the settings and overriding with the priority implied by the order of the sources we pass::
config = manager.retrieve(
# This source pulls from the command line using argparse.
soc.CommandLineSource,
# This source pulls from environment variables that are prefixed
# with MYPROGRAM_*
soc.EnvironmentVariableSource,
# This source pulls from the named INI files. It stops at the first
# file it finds.
soc.ConfigFileSource(('.myprogramrc', '/etc/myprogram.conf')),
)
We now have a Configuration object named config
that has three attributes;
foo
, bar
, and baz
.
FAQs
A module for retrieving program settings from various sources in a consistant method.
We found that setoptconf 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
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.