Saravanan666/pypi-org huggingface dataset:
Package: configs-generator
Configuration Generation Tool===========================
Mandatory Required packagespandas, nettoolkitFor the documentation kindly refer tohttps://configs_generator.readthedocs.io======== OPTION 1 ===========import configs_generator as cgdb = "data.xlsx"
template = "template.txt"
output = "output.txt"cfg = cg.ConfGen(
template_file=template,
output_file=output,
db=db,# ~~~~~~~~~~~~ OPTIONAL ARGUMENTS ~~~~~~~~~~~~
confGen_minimal=True,   # default False

# ~~~~~~~~~~~~ ADVANCE OPTIONAL ARGUMENTS FOR CUSTOMIZATION ~~~~~~~~~~~~
find_column_name="FIND",     # default
replace_column_name="REPLACE",   # default
condition_starter="GOAHEAD FOR",    # default
condition_stopper="GOAHEAD END",    # default
repeat_starter="REPEAT EACH",       # default
repeat_stopper="REPEAT STOP",       # default
nested_section_var_identifier="PARENT",     # default)
cfg.generate()============ OPTION 2 ===========usage: configs_generator [-h] [-i] [-t TEMPLATE_FILE] [-d DB] [-o OUTPUT_FILE] [-m] [-f FIND_COLUMN_NAME]
[-r REPLACE_COLUMN_NAME] [-cs CONDITION_STARTER] [-ce CONDITION_STOPPER] [-rs REPEAT_STARTER]
[-re REPEAT_STOPPER] [-nv NESTED_SECTION_VAR_IDENTIFIER]Made for Networking Geeksoptional arguments:
-h, --help            show this help message and exit
-i, -interactive      run command interactive mode (default: False)
-t TEMPLATE_FILE, -template TEMPLATE_FILE
Template File (text file) (default: None)
-d DB, -database DB   Database File (Excel file) (default: None)
-o OUTPUT_FILE, -output OUTPUT_FILE
output File (text file) (default: None)
-m, -minimal          execution of var sheet replacement only.( default: False) (default: False)
-f FIND_COLUMN_NAME, -find FIND_COLUMN_NAME
FIND column headers from "var" tab: (default: FIND)
-r REPLACE_COLUMN_NAME, -replace REPLACE_COLUMN_NAME
REPLACe column headers from "var" tab: (default: REPLACE)
-cs CONDITION_STARTER, -condition_start CONDITION_STARTER
conditional block start identifier (default: GOAHEAD FOR)
-ce CONDITION_STOPPER, -condition_end CONDITION_STOPPER
conditional block end identifier (default: GOAHEAD END)
-rs REPEAT_STARTER, -repeat_start REPEAT_STARTER
repeat block start identifier (default: REPEAT EACH)
-re REPEAT_STOPPER, -repeat_end REPEAT_STOPPER
repeat block end identifier (default: REPEAT STOP)
-nv NESTED_SECTION_VAR_IDENTIFIER, -nested_var NESTED_SECTION_VAR_IDENTIFIER
nested section variable identifier string (default: PARENT)And that's how you'd use the tool
Package: configstacker
What is configstacker?Configstacker is a python library with the goal to simplify
configuration handling as much as possible. You can read configurations
from different sources (e.g. files, environment variables and others)
and load single or merge multiple sources at will. The resulting
configuration object can be used like a dictionary or with dot-notation.
If you need additional flexibility configstacker also allows you to
specify converters for values or merging strategies for keys that occur
multiple times throughout different sources. If this is still not
sufficient enough configstacker makes it very easy for you to add
additional source handlers.## Single Source Example#fromconfigstackerimportYAMLFileconfig=YAMLFile('/path/to/my/config.yml')# Dot-notation accessassertconfig.a_keyisTrue# Mixed dictionary and dot-notation accessassertconfig['subsection'].nested_key==100# Dictionary-like interfaceassertconfig.keys()==['a_key','subsection']# Dictionary dumping on any levelassertconfig.dump()=={'a_key':True,'subsection':{'nested_key':100}}assertconfig.subsection.dump()=={'nested_key':100}# New value assignmentconfig.new_value=10.0assertconfig.new_value==10.0## Multi Source Example#importconfigstackerascs# The resulting configuration object behaves# the same as a single source one.config=cs.StackedConfig(# The order of sources defines their search priority whereas the# last element has the highest one.cs.Environment(prefix='MYAPP'),cs.YAMLFile('/path/to/my/config.yml'))# Higher priority values shadow lower priority values.assertconfig.a_keyisFalse# Lower prioritized values which are not shadowed stay accessible.assertconfig['subsection'].nested_key==100# New values will be added to the source that has the highest# priority and is writable.config.other_new_value=Trueassertconfig.other_new_valueisTrue# In this case the new item was added to the last element in the# source list.assertconfig.source_list[-1].other_new_valueExamples for type conversion and merging strategies can be found in thedocumentation.Latest Version and HistoryConfigstacker adheres toSemantic Versioning.The current version is 0.2.0 which means configstacker is still in
a planning phase. As such it isnot meant for production use. That
said it is already very stable and should hit its first major version
soon.Changes can be found inCHANGELOG.InstallationConfigstacker can be installed with pip and only requiressixfor the minimal installation.pip install configstackerHowever, some of the source handlers require additional packages when in
use.YAMLFilerequirespyyamlYou can use the following syntax to install all optional dependencies.
Leave out those from the brackets you do not need.pip install configstacker[yaml]NoteNew source handlers with additional dependencies might be added over
time.DocumentationConfigstacker provides auser documentationonreadthedocs.org.LicensingPlease seeLICENSE.ContributionContributions are very welcome. The main development happens ongitlab. For reporting
issues you can also usegithub.
Package: configstore
configstore is a small pluggable library that lets you retrieve settings
or secrets from a variety of storage systems to configure your app.The main pain point this tries to solve is:Assume you have your config in environment variables but you want to store your secrets in something else.
How do you mix having a secret backend for your secrets but still keep everything else in environment variables?
With this module you can use both. Let’s say you useDATABASE_PASSWORDas your database password env variable.
This will first try to find this in your first backend (let’s say docker secrets) and if it fails will fall back on the env variable.Seeexample.pyfor some example code.Available backendsconfigstore.EnvVarBackend finds settings in environment variables.  This is the classic
12-factor approach, which main drawback is that it’s easy for outside tools or sub-processes
to inspect the environment and access sensitive data.  This backend is still useful for
settings that are not secrets.configstore.DotenvBackend lets you put settings in a key-value format file, using thedotenv module, which is useful for local development.
This backend requires an optional dependency, so use a requirement likeconfigstore[dotenv]to get everything installed.If you are using docker-compose,another dotenv moduleis already installed and
does not provide the same interface; use a requirement likeconfigstore[pydotenv]instead.  DotenvBackend is automatically compatible.configstore.DockerSecretBackend can readDocker secrets.
This is a secure storage with first-class support in the Docker runtime and related
tooling.configstore.AwsSsmBackend connects to the Parameter Store service that
is part ofAWS Systems Manager.  This backend requires optional
dependencies (boto3), so use a requirement likeconfigstore[awsssm]to get everything installed.Finally, configstore.DictBackend is useful to define a bunch of settings
for testing or for defaults.ContributorsOriginal author: Antoine Reversat @crevetorCurrent maintainer: Éric Araujo @merwokProject sponsored by Caravan Coop @caravancoop
Package: config-store
config-storeA python module for env variable and config file management.
Inspired from webpack configuration management, config-store support multi-stage configs merger.
For information security, separation of sensitive settings are also provided.InstallationpipinstallconfigstoreUsageimportconfigstoreconfigstore.connect($CONFIG_FOLDER)print(configstore.get("foo",default_value="not found QQ"))# >>> 'bar'Config SettingCONFIG_FOLDER
- secret
    - secret.default.json
    - secret.dev.json 
    - secret.pd.json
- config.default.json [requried]
- config.dev.json 
- config.pd.jsonConfig Read OrderENV variablestage configdefault configdefault value
Package: configstruct
ConfigStructSimplified configuration and settings management library.Free software: MIT licenseDocumentation:https://configstruct.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.3.0 (2016-12-30)Add common logging config support.0.2.0 (2016-12-27)Bit of a logical refactor to aid in understanding, builds passing, and some docs.0.1.0 (2016-10-10)First release on PyPI.
Package: configsuite
Config SuiteIntroductionConfig Suiteis the result of recognizing the complexity of software configuration, both from a user and developer perspective. And our main goal is to be transparent about this complexity. In particular we aim at providing the user with confirmation when a valid configuration is given, concrete assistance when the configuration is not valid and up-to-date documentation to assist in this work. For a developer we aim at providing a suite that will handle configuration validity with multiple sources of data in a seamless manner, completely remove the burden of special casing and validity checking and automatically generate documentation that is up to date. We also believe that dealing with the complexity of formally verifying a configuration early in development leads to a better design of your configuration.FeaturesValidate configurations.Provide an extensive list of errors when applicable.Output a single immutable configuration object where all values are provided.Support for multiple data sources, yielding the possibility of default values as well as user and workspace configurations on top of the current configuration.Generating documentation that adheres to the technical requirements.No exceptions are thrown based on user-input (this is currently not true for validatiors).Context based validators and transformations.DocumentationCheck out thedocumentation.FutureHave a look at the epics and issues in theGitHubrepository.InstallationThe simplest way to fetch the newest version ofConfig Suiteis viaPyPI.pip install configsuiteDeveloper guidelinesContributions toConfig Suiteis very much welcome! Bug reports, feature requests and improvements to the documentation or code alike. However, if you are planning a bigger chunk of work or to introduce a concept, initiating a discussion in an issue is encouraged.Running the testsThe tests can be executed withpython setup.py test. Note that the code formatting tests will only be executed with Python3.6or higher.Code formattingThe entire code base is formatted withblack.Pull request expectationsWe expect a well-written explanation for smaller PR's and a reference to an issue for larger contributions. In addition, we expect the tests to pass on all commits and the commit messages to be written in imperative style. For more on commit messages readthis.LicenseConfig Suiteis licensed under the MIT License. For more information we refer
the reader to theLICENSE file.
Package: configsuite-tui
Config Suite TUIIntroductionConfig Suite TUI is a text-based user interface extension forConfig Suite. It provides a simplified, visual way of creating and editing configuration files for a given schema.FeaturesSimplified editing of configuration filesImport and export YAML filesInstant validationPlugin system to provide schemas from other python modulesDocumentationCheck out the documentation onRead the Docs.InstallationInstallation of Config Suite TUI can easily be done using pip:$ pip install configsuite-tuiDeveloper guidelinesContributions toConfig Suiteis very much welcome! Bug reports, feature requests and improvements to the documentation or code alike. However, if you are planning a bigger chunk of work or to introduce a concept, initiating a discussion in an issue is encouraged.Running the testsThe tests can be executed withpython -m unittest.Code formattingThe entire code base is formatted withblack.Pull request expectationsWe expect a well-written explanation for smaller PR's and a reference to an issue for larger contributions. In addition, we expect the tests to pass on all commits and the commit messages to be written in imperative style. For more on commit messages readthis.LicenseConfig Suite TUIis licensed under the MIT License. For more information we refer
the reader to theLICENSE file.
Package: configsys
ConfigSysVery simple yet powerful configuration system for machine learning projects.  The whole thing is
around 170 lines of code, give it a look!Provides a simple way to use nested dataclasses to specify an arbitrary complex configuration.  Configs can be
easily serialized to and from yaml files and back to nested dataclasses.see configsys/example.pyFor a more complex example seethisrepo.Core BeliefsSpecifying configs in python iswaybetter than raw yaml text files.You get all the help of the IDE (e.g. autocomplete, type checking, refactoring, etc.)You can use python logic (for loops, string replacement, functions, itertools, etc.)
to decide your hyper-parameters and experiments.The CLI is a terrible way to specify hyper-parameters or complex configsCLI configuration is basically an attempt at taking a 1 line string and serializing it into a python nested datastructureIt is much easier to just create a python file which configures and runs (or launches) your jobs.InstallpipinstallconfigsysExample Usagefromdataclassesimportdataclassfromconfigsys.configimportConfigMixin# We recommend using kw_only=True to make sure Configs are specified explicitlyclassImageDataLoader:@dataclass(kw_only=True)classConfig(ConfigMixin):_target_="configsys.example.ImageDataLoader"batch_size:intshuffle:booldef__init__(self,config:Config):self.config=configdefget_data(self):returndict(x=[2,3],y=[4,5])classTextDataLoader:@dataclass(kw_only=True)classConfig(ConfigMixin):_target_="configsys.example.TextDataLoader"batch_size:intshuffle:booldef__init__(self,config:Config):self.config=configdefget_data(self,x):returndict(x=['hello','world'])classMLP:@dataclass(kw_only=True)classConfig(ConfigMixin):_target_="configsys.example.MLP"n_layers:intn_hidden:intdef__init__(self,config:Config):self.config=configdefforward(self,x):returnxclassTransformer:@dataclass(kw_only=True)classConfig(ConfigMixin):_target_="configsys.example.Transformer"n_heads:intdef__init__(self,config:Config):self.config=configdefforward(self,x):returnx# Configs do not necessarily have to be an attribute of their target class# This is usually the case when the target is class that you did not write@dataclass(kw_only=True)classTrainerConfig(ConfigMixin):_target_="configsys.example.Trainer"dataloader:ImageDataLoader.Config|TextDataLoader.Configmodel:MLP.Config|Transformer.Configlearning_rate:floatsteps:intclassTrainer:def__init__(self,config:TrainerConfig):self.config=configdeftrain(self):print("{self}training...")print(self.config.learning_rate)print(self.config.steps)defmain(outdir):formodel_configin[MLP.Config(n_layers=3,n_hidden=128),Transformer.Config(n_heads=6)]:config=TrainerConfig(dataloader=ImageDataLoader.Config(batch_size=32,shuffle=True),model=model_config,learning_rate=0.1,steps=100,)model=config.model.instantiate_target()dataloader=config.dataloader.instantiate_target()trainer=config.instantiate_target()# equivalent to trainer = Trainer(config=trainer_config)trainer.train()config.to_yaml_file(f"{outdir}/trainer_config.yaml")trainer_config2=TrainerConfig.from_yaml_file(f"{outdir}/trainer_config.yaml")assertconfig==trainer_config2Publishingpoetrybuild
poetrypublish
Package: configTemplate
configTemplateEasily define configuration file structures, and check if a given
configuration file matches the template.InstallationconfigTemplateis tested on CPython 3.6, 3.7, 3.8, and 3.9.
Simply install using pip:pipinstallconfigTemplateSupport for additional file formatsBy default,configTemplateonly supportsJSONconfiguration files, or
already loaded data (not directly from a configuration file). However, using
additional dependencies,configTemplatesupports the following file formats:JSONYAMLTOMLTo installconfigTemplatewith the additional required dependencies to support
your preferred file format, use:pip install configTemplate[yaml]# install dependencies for yaml filespip install configTemplate[toml]# toml filespip install configTemplate[json,toml]# json and toml filespip install configTemplate[all]# all available file formatsUsageTo create a template, you will need the basicTemplatemodule, and usually the
other three basic modulesTemplateList,TemplateDict, andOptional.fromconfigTemplateimportTemplate,TemplateList,TemplateDict,OptionalNow, let's create a basic template that represents a single user:TemplateUser=TemplateDict(# a dictionary with 2 required valuesusername=Template(str),# username must be a stringpasscode=Template(int,str),# can be a string or an integer.nickname=Optional(Template(str)),# optional - if provided, must be a string.)Check if data matches your template using thecheckmethod:errors=TemplateUser.check({'username':'RealA10N','passcode':12345})# the check method returns a `TemplateCheckErrorManager` instance# read full documentation for more information.iferrors:print(f'Found{errors.count}conflicts:')print(errors)# prints a detailed and colored error listelse:print('data follows the template!')Using configTemplate as a dependencyconfigTemplateis still under active development, and some core features
may change substantially in the near future.If you are planning to useconfigTemplateas a dependency for your project,
we highly recommend specifying the exact version of the module you are using
in therequirements.txtfile orsetup.pyscripts.For example, to pinpoint versionv0.3.2use the following line in yourrequirements.txtfile:configTemplate==0.3.2configTemplate[yaml]==0.3.2# If using extra file formats
Package: config-templater
Config TemplaterSimple python module to generate configurations from templates.This is useful if you want to use configuration files for local development but want to
use environment variables for deployment (i.e. in a container environment).Free software: MIT licenseUsageYou should run this script as a module. Executing in a directory will recursively parse the entire
directory for.conftplfiles and replace the jinja2 variables included with the corresponding
environment variables.ExampleGiven a configuration template filetest.yml.conftpllike this:---
access_token: "{{ API_ACCESS_TOKEN }}"
data_url: "{{ DATA_URL }}"You can do the following to generate a configuration file:# Set environment variables
$ export API_ACCESS_TOKEN="tdfkls0dkl1j313"
$ export DATA_URL="https://custome_domain.io/webhook"
$ python -m config_templaterThis will generate the following configuration intest.yml---
access_token: "tdfkls0dkl1j313"
data_url: "https://custome_domain.io/webhook"CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2019-12-10)First release on PyPI.
Package: config-to-object
Convert a .ini config file to a typed ObjectInstallationInstall via pippip install config-to-object.There are no dependencies.UsageCreate your.iniconfiguration file. For an example look atexample_config.ini. You can use any type of native python object such as tuples, lists, strings, floats, integers as parameter values (except dict). There type will be automatically recognized when loading the config file.Load your configuration file usingfrom config_to_object import load_configandconfig = load_config("path/to/your/config.ini")You can access the values from your.iniusing.syntax:words = config.Params.words.If you want yourconfigobject to be type hinted, so that your IDE can give you better code completions, runini_typefile path/to/your/config.ini config_types.py. Then, in your code addfrom config_types import Configand initialize your config withconfig:Config = load_config("path/to/your/config.ini")
Package: configtool
Use configtool from the shell to validate, pretty-print, get or set config values::With no arguments you will output the same config file, you can use this featureto validate the file.$ config.ini > python -m configtool[app]name = rocketdescription = A app to launch a Space Rocket[uwsgi]socket = /var/run/spacerocket.socket-get argument will print the value of the key on the section you want, you canalso do -section and -get will use that for section.$ cat config.ini | python -m configtool -get app.namerocket$ cat config.ini | python -m configtool -section app -get descriptionA app to launch a Space RocketSpecify just the section, and it will output the config syntax for just thatsection$ cat config.ini | python -m configtool -get app[app]name = rocketdescription = A app to launch a Space RocketEasily update values, just by using set$ python -m configtool -set app.name "spacerocket" > config.ini$ cat config.ini[app]name = spacerocketdescription = A app to launch a Space RocketYou can also convert syntax if you had json or yaml python modules available::$ cat config.ini | python -m configtool -o yamlapp:name: spacerocketdescription: A app to launch a Space Rocket$ config.ini > python -m configtool -o json{"app":{"name":"spacerocket","description":"A app to launch a Space Rocket"}}
Package: config_tool
config_tool (A simple configuration management tool for JSON files)===================================================================The MIT License (MIT)Copyright (c) 2016 Sam Caldwell.Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), todeal in the Software without restriction, including without limitation therights to use, copy, modify, merge, publish, distribute, sublicense, and/orsell copies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISINGFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGSIN THE SOFTWARE.Description:config-tool is a simple configuration management tool for JSON files.This tool allows the user to easily read, write and validate a JSONfile from command line as well as from a python script which importsthe Config class.============================USAGE (FROM THE COMMANDLINE)============================Given a configuration file (sample.json):-----------------------------------------{"foo":{"bar":1}}-----------------------------------------We can create a shell script (reader.sh) like this:---------------------------------------------------#!/bin/bashfoo_bar="$(config --read --key foo.bar --config ./sample.json)"echo "foo.bar:$foo_bar"---------------------------------------------------Executing this script will return this:---------------------------------------root# reader.shfoo.bar:1---------------------------------------