Saravanan666/pypi-org huggingface dataset:
Package: ideapy
============================IdeaPy (Idea for Python)============================IdeaPy is a simple WWW server built on top of CherryPy, with Python code execution feature.Features----------------------------------- ability to execute Python codejust like Apache2 + mod_php- all static files are streamedby default- you can add unlimitednumber of virtual hosts- one dependency: CherryPyExample: "Hello World" in a IdeaPy----------------------------------python3 -m ideapygo to http://localhost:8888/examples/default_page/or http://localhost:8888/ to view directory listingOwn usage----------------------------------import ideapyIdeaPy.setup_cherrypy()     #optionalidea = IdeaPy()idea.start()idea.block()Advanced usage----------------------------------import ideapyIdeaPy.setup_cherrypy()     #optionalidea = IdeaPy()#change CherryPy config, like sessions, etc.#now add some virtual hosts#to serve content on http://localhost:8080#with directory index disabledidea.add_virtual_host(document_root='/',listen_ips=['127.0.0.1'],listen_port=8080,opt_indexes=False)#to serve content on#http://localhost:8080, http://api.localhost:8080, http://api:8080#with directory index disabledidea.add_virtual_host(document_root='/',listen_ips=['127.0.0.1'],listen_port=8080,server_name='localhost',server_aliases=['api'],opt_indexes=False)#to serve /jinja2_app/ directory on#http://virtualbox:8443, http://jinja2_app:8443, http://jinja2_app.virtualbox:8443#https://virtualbox:8443, https://jinja2_app:8443, https://jinja2_app.virtualbox:8443#with SSL enabledidea.add_virtual_host(document_root='/jinja2_app/',listen_ips=['0.0.0.0'],listen_port=8443,server_name='virtualbox',server_aliases=['jinja2_app'],ssl_certificate = '/bundle.crt',ssl_private_key = '/private_key.key')idea.start()idea.block()Homepage----------------------------------https://github.com/skazanyNaGlany/ideapy
Package: idecomp
idecompOidecompé um pacote Python para manipulação dos arquivos
de entrada e saída do programaDECOMP. O DECOMP é desenvolvido peloCEPELe utilizado para os estudos de planejamento e operação do Sistema Interligado Nacional (SIN).O idecomp oferece:Meios para leitura dos arquivos de entrada e saída do DECOMPFacilidades para estudo e análise dos dados utilizando DataFrames do pandasDados estruturados em modelos com o uso do paradigma de orientação a objetos (OOP)InstalaçãoO idecomp é compatível com versões de Python >= 3.8.É possível instalar a versão distribuída oficialmente com pip:python -m pip install idecompÉ possível realizar a instalação da versão de desenvolvimento fazendo o uso do Git.pip install git+https://github.com/rjmalves/idecompDocumentaçãoGuias, tutoriais e as referências podem ser encontrados no site oficial do pacote:https://rjmalves.github.io/idecomp
Package: idefix-cli
idefix_cliidefix_cliis a command line utility belt forIdefix.It defines aidfxcommand familly. The builtin command set (idfx conf,idfx run,
...) can be extended to include arbitrary helper scripts.Installationidefix_cliis distributed via the Python Packaging Index (PyPI).It is recommended to install this tool in isolation withpipxas$pipxinstall"idefix_cli[isolated]"(adding[isolated]has the effect of pinning dependencies)Otherwise, the most portable way to install the latest stable version is$python-mpipinstall--useridefix_cliNote that mostidfxcommands explicitly require that the env variable$IDEFIX_DIRbe
set at runtime.Get helpGet a complete description of available commands with$idfx--helpLikewise, get help for each command therein as, for instance$idfxrun--helpFor more, readthe documentation !
Package: idem-aiohttp
aiohttp provider for IdemDEVELOPMENTClone theidem-aiohttprepository and install with pip.gitclonegit@gitlab.com:saltstack/idem/idem-aiohttp.gitpipinstall-eidem-aiohttpACCTAfter installation aiohttp Idem Provider execution and state modules will be accessible to the pophub.
In order to use them we need to set up our credentials.Create a new file calledcredentials.yamland populate it with profiles.
Thedefaultprofile will be used automatically byidemunless you specify one with–acct-profile=profile_nameon the cli.acct backendsprovide alternate methods for storing profiles.A profile needs to specify the authentication parameters for aiohttp.
Every one of the parameters is optional.
Here, all available options are shown with their defaults:credentials.yamlrequest.basic_auth:default:auth:# aiohttp.BasicAuth optionslogin:password:encoding:latin1connector:# aiohttp.connector.TCPConnector optionsverify_ssl:True,fingerprint:use_dns_cache:Truettl_dns_cache:10family:0ssl_context:ssl:local_addr:keepalive_timeout:force_close:Falselimit:100limit_per_host:0enable_cleanup_closed:Falseresolver:# aiodns.DNSResolver optionsnameservers:# pycares.Channel optionsflags:timeout:tries:ndots:tcp_port:udp_port:servers:domains:lookups:sock_state_cb:socket_send_buffer_size:socket_receive_buffer_size:rotate:local_ip:local_dev:resolvconf_path:session:# aiohttp.ClientSession optionscookies:headers:skip_auto_headers:version:http_versionconnector_owner:Trueraise_for_status:Falseconn_timeout:auto_decompress:Truetrust_env:Falserequote_redirect_url:Truetrace_configs:read_bufsize:65536cookie_jar:quote_cookie=Falseunsafe=TrueNow encrypt the credentials file and add the encryption key and encrypted file path to the ENVIRONMENT.Theacctcommand should be available as it is a requisite ofidemandidem_aiohttp.
Encrypt the the credential file.acctencryptcredentials.yamloutput:-A9ZkiCSOjWYG_lbGmmkVh4jKLFDyOFH4e4S1HNtNwI=Add these to your environment:exportACCT_KEY="-A9ZkiCSOjWYG_lbGmmkVh4jKLFDyOFH4e4S1HNtNwI="exportACCT_FILE=$PWD/credentials.yaml.fernetUSAGEIf no profile is specified, the profile called “default”, if one exists, will be used.
A profile can be specified from the command line when calling an exec module directly.idemexec--acct-profilemy-staging-envrequest.raw.gethttps://my-url.com
Package: idem-aix
Grains, execution modules, and state modules common to all aix systemsINSTALLATIONInstall with pip:pip install idem-aixDEVELOPMENT INSTALLATIONClone theidem-aixrepo and install with pip:git clone https://gitlab.com/saltstack/pop/idem-aix.git idem_aix
pip install -e idem_aixEXECUTIONAfter installation thegrainscommand should now be availableTESTINGinstallrequirements-test.txtwith pip and run pytest:pip install -r idem-aix/requirements-test.txt
pytest idem-aix/testsVERTICAL APP-MERGINGInstructions for extending idem-aix into an OS or os specific pop projectInstall pop:pip install --upgrade popCreate a new directory for the project:mkdir idem-{specific_aix_os}
cd idem-{specific_aix_os}Usepop-seedto generate the structure of a project that extendsgrainsandidem:pop-seed -t v idem-{specific_aix_os} -d grains exec states“-t v” specifies that this is a vertically app-merged project“-d grains exec states” says that we want to implement the dynamic names of “grains”, “exec”, and “states”Add “idem-aix” to the requirements.txt:echo "idem-aix @ git+https://gitlab.com/saltstack/pop/idem-aix.git" >> requirements.txtAnd that’s it!  Go to town making grains, execution modules, and state modules specific to your aix os.
Follow the conventions you see in idem-aix.For information about running idem states and execution modules check outhttps://idem.readthedocs.io
Package: idem-aws-auto
Idem-Aws-Autoaws_auto Cloud Provider for IdemDEVELOPMENTClone theidem-aws-autorepository and install with pip.gitclonegit@gitlab.com:my-user/idem-aws-auto.gitpipinstall-eidem-aws-autoACCTAfter installation aws_auto Idem Provider execution and state modules will be accessible to the pophub.
In order to use them we need to set up our credentials.Create a new file calledcredentials.yamland populate it with profiles.
Thedefaultprofile will be used automatically byidemunless you specify one with–acct-profile=profile_nameon the cli.acct backendsprovide alternate methods for storing profiles.The aws_auto provider uses the aws_auto acct plugin for authentication.
A profile needs to specify the authentication parameters for aws_auto.credentials.yamlaws_auto:default:username:my_userpassword:my_good_passwordendpoint_url:https://console.aws_auto.com/apiNow encrypt the credentials file and add the encryption key and encrypted file path to the ENVIRONMENT.Theacctcommand should be available as it is a requisite ofidemandidem_aws_auto.
Encrypt the the credential file.acctencryptcredentials.yamloutput:-A9ZkiCSOjWYG_lbGmmkVh4jKLFDyOFH4e4S1HNtNwI=Add these to your environment:exportACCT_KEY="-A9ZkiCSOjWYG_lbGmmkVh4jKLFDyOFH4e4S1HNtNwI="exportACCT_FILE=$PWD/credentials.yaml.fernetUSAGEA profile can be specified for use with a specific state.
If no profile is specified, the profile called “default”, if one exists, will be used:ensure_user_exists:aws_auto.user.present:-acct_profile:my-staging-env-name:a_user_name-kwarg1:val1It can also be specified from the command line when executing states.idemstate--acct-profilemy-staging-envmy_state.slsIt can also be specified from the command line when calling an exec module directly.idemexec--acct-profilemy-staging-envaws_auto.user.list
Package: idem-azurerm
Microsoft Azure Cloud Provider for IdemAzure is a cloud service offered by Microsoft that provides virtual machines, SQL services, media services, and more.
Azure Resource Manager is the next generation of the Azure portal and API. This provider is aPOPplugin and an extension ofIdem,
allowing Idem users to leverage Microsoft Azure Resource Manager functionality to enforce the state of cloud
infrastructure, applications, configurations, and more.INSTALLATIONThe azurerm idem provider can be installed via pip:pip install idem-azurermINSTALLATION FOR DEVELOPMENTClone theidem-azurermrepository.Install requirements with pip:pip install -r requirements.txtInstallidem-azurermin "editable" mode:pip install -e <path cloned repo>You are now fully set up to begin developing additional functionality for this provider.CREDENTIALSThis provider requires that a dictionary populated with valid Azure credentials be passed viaacct.The credentials can be stored in an arbitrarily named file, such asmyawesomecreds.yml#!yaml

azurerm:
  default:
    client_id: "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
    secret: "X2KRwdcdsQn9mwjdt0EbxsQR3w5TuBOR"
    subscription_id: "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
    tenant: "cccccccc-cccc-cccc-cccc-cccccccccccc"In order to prepare the credentials file for use, the acct command can be run to encrypt the file with the Fernet
algorithm.(env) $ acct myawesomecreds.yml
New encrypted file at: myawesomecreds.yml.fernet
The file was encrypted with this key:
71Gbz2oDSv40Er9YUFBJPzOjtCi6Z2-5niBHPekkvqs=Now we have an encrypted file containing the credentials and a symmetric key for decryption. Since you have encrypted
the file with the key, you can now remove the original plaintext file.(env) $ rm myawesomecreds.ymlAll we have to do now is to tell idem where to get the file and key for acct. This information can be passed to acct on
the command line as parameters, but we will set up environment variables for the purposes of this tutorial.(env) $ export ACCT_FILE="/path/to/myawesomecreds.yml.fernet"
(env) $ export ACCT_KEY="1Gbz2oDSv40Er9YUFBJPzOjtCi6Z2-5niBHPekkvqs="RESOURCE DEFINITIONAfter installation, the Azure Resource Manager Idem Provider execution and state modules will be accessible to the hub.The following example uses an azurerm state module to ensure the existence of a resource group.Let's call this file "mytest.sls"Resource group exists:
  azurerm.resource.group.present:
    - name: idem
    - location: eastus
    - tags:
        organization: EITR TechnologiesTESTING AND BUILDING RESOURCESBefore you build the resources defined in the ".sls" file you may want to test what will happen when the state file is
run. To do this, run idem with the--testoption.(env) $ idem state mytest.sls --testOnce you determine that your state file with perform the intended operations, then you can build the defined resources
by running idem like so:(env) $ idem state mytest.sls
Package: idem-bsd
Grains, execution modules, and state modules common to all bsd systemsINSTALLATIONInstall with pip:pip install idem-bsdDEVELOPMENT INSTALLATIONClone theidem-bsdrepo and install with pip:git clone https://gitlab.com/saltstack/pop/idem-bsd.git idem_bsd
pip install -e idem_bsdEXECUTIONAfter installation thegrainscommand should now be availableTESTINGinstallrequirements-test.txtwith pip and run pytest:pip install -r idem-bsd/requirements-test.txt
pytest idem-bsd/testsVERTICAL APP-MERGINGInstructions for extending idem-bsd into an OS specific pop projectInstall pop:pip install --upgrade popCreate a new directory for the project:mkdir idem-{specific_bsd_os}
cd idem-{specific_bsd_os}Usepop-seedto generate the structure of a project that extendsgrainsandidem:pop-seed -t v idem-{specific_bsd_os} -d grains exec states“-t v” specifies that this is a vertically app-merged project“-d grains exec states” says that we want to implement the dynamic names of “grains”, “exec”, and “states”Add “idem-bsd” to the requirements.txt:echo "idem-bsd @ git+https://gitlab.com/saltstack/pop/idem-bsd.git" >> requirements.txtAnd that’s it!  Go to town making grains, execution modules, and state modules specific to your bsd os.
Follow the conventions you see in idem-bsd.For information about running idem states and execution modules check outhttps://idem.readthedocs.io
Package: idem-cloud
Contracts, Configuration, and Bootstrapping methods common to all idem cloud implementationsUSAGE and INSTALLATIONA guide to getting started!BinaryWe’ve provided a new means of using idem-cloud. Now a portable binary can be downloaded and it
will contains a pre-compiled version of idem and all it’s necessary sub-components.Once downloaded from here [link HERE], idem-cloud can be ran as an executable from the CLI as such:./idem-cloud--helpWhat makes this approach so fantastic is no system changes need to be made in order to run idem-cloud.
This allows you as a user to download an executable and immediately start managing your cloud infrastructure.Traditional InstallIf you would prefer a more traditional experience on your system, please follow these steps below to install:
This can be installed via pip:pip install idem-cloudDEVELOPMENTClone theidem-cloudrepository and install with pip.gitclonegit@gitlab.com:saltstack/pop/idem-cloud.gitpipinstall-eidem_cloudTESTINGInstalldocker-composeand enable the docker serviceInstall the testing requirements:pip install -r requirements-test.txtRun the tests:pytest testsSet UPAfter installation the Idem Bootstrap execution and state modules will be accessible to the pophub.EXECUTION MODULESOnce everything has been set up properly, execution modules can be called directly byidem.
Execution modules can be accessed by reference relative to their location in theexecdirectory inidem-cloud/cloudFor example,idem-cloud/cloud/exec/bootstrap/salt.pycontains a function calledcreate()This function can be accessed from the command line with:idemexecbootstrap.salt.createuser=roothost=127.0.0.1Filters can be used when calling list functions from any cloud list function from the command line, such asidem-aws,
so that the output isn’t so verbose:idemexecaws.ec2.vpc.list--filtervpc_idSTATESStates are also accessed by their relative location inidem-aws/idem_aws/states.
For example,idem-aws/idem_aws/states/aws/ec2/vpc.pycontains a functionabsent().
In my state file I can create a state that uses theabsentfunction like so.my_state.sls:idem_cloud_boostrap:bootstrap.salt.absent:-user:root-host:127.0.0.1I can execute this state with:idemstatemy_state.slsidem statealso has some flags that can significantly boost the scalability and performance of the run.
Let’s use this new state which verifies that 100 vpcs are absent:{%foriinrange(100)%}idem_cloud_boostrap_minion_{{i}}:bootstrap.salt.absent:-host:"idem_cloud_test_minion_{{i}}"-user:root{%endfor-%}I can execute this state with–runtime parallelto make full use of idem’s async execution calls:idemstate--runtimeparallelmy_state.sls
Package: idem-codegen
DescriptionThe existing cloud infrastructure gets managed either directly via cloud provider console or via software tools like Terraform.
The goal of project ‘Idem CodeGen’ is to onboard customers to use Idem for Infrastructure as Code (IaC) management solution by
discovering their existing infrastructure and to facilitate the process of migration for customers who currently use Terraform
for IaC management by converting terraform files into SLS files. Manually converting each Terraform file into SLS file is not a
feasible option for any Terraform customer as all files collectively may comprise of 1000+ resource objects distributed across 100+ files.
Also, for customers those use web console directly to manage the infrastructure, Idem can discover existing cloud infrastructure and automatically
generates SLS code for all discovered resources. ‘Idem CodeGen’ leverages this capability to organise the SLS code by automatically generating hierarchical,
maintainable and reusable SLS files.Steps to run idem-codegen for terraform to idem IaC transformationRun following commands:pip install -e .
idem_codegen tf_idem -c [path_to_config_file]Sample config file:{
    "idem_codegen": {
        "tf_state_bucket_name": "",
        "tf_state_key": "",
        "idem_describe": False,
        "get_tf_state_from_s3": False,
        "output_directory_path": "[path_to_output_directory]",
        "idem_describe_path": "[path_to_idem_describe_response_file]",
        "tf_state_file_path": "[path_to_tfstate_json_file]",
        "terraform_directory_path": "[path_to_terraform_directory]",
        "group_style": "default"
    }
}Steps to run idem-codegen for infrastructure discovery and IaC generationRun following commands:pip install -e .
idem_codegen discovery -c [path_to_config_file]Sample config file:{
    "idem_codegen": {
        "idem_describe": False,
        "output_directory_path": "[path_to_output_directory]",
        "idem_describe_path": "[path_to_idem_describe_response_file]",
        "group_style": "default"
    }
}Steps to generate resource_ids from terraform state fileRun the following command:idem_codegen generate --type=resource_ids -c [path_to_config_file]Note-: ‘–type’ parameter is only required with ‘generate’ subcommand.Sample config file:{
    "idem_codegen": {
        "output_directory_path": "[path_to_output_directory]",
        "tf_state_file_path": "[path_to_tfstate_json_file]",
    }
}Note-: Resource ids of security group rule have to be changed manually.Steps to generate drift between terraform and idem foldersRun the following command:idem_codegen generate --type=terraform_drift -c [path_to_config_file]Note-: ‘–type’ parameter is only required with ‘generate’ subcommand.Sample config file:{
    "idem_codegen": {
        "output_directory_path": "[path_to_output_directory]",
        "terraform_directory_path": "[path_to_terraform_input_files]",
        "hide_output_if_no_drifts" "True | False"
    }
}Run help command to understand more about configuration parameters:idem_codegen --help
Package: idem-csp
CSP Cloud Provider for IdemDEVELOPMENTClone theidem-csprepository and install with pip.gitclonegit@gitlab.com:vmware/idem/idem-csp.gitpipinstall-eidem_cspACCTAfter installation the CSP Idem Provider execution and state modules will be accessible to the pophub.
In order to use them we need to set up our credentials.
Follow theinstructionsto generate an api token.Create a new file calledcredentials.yamland populate it with credentials.
Thedefaultprofile will be used automatically byidemunless you specify one with–acct-profile=profile_nameon the cli.There are many ways aws providers/profiles can be stored. Seeacct backendsfor more information.A profile needs to specify the api key it uses and can optionally specify the api url.credentials.yamlcsp.token:default:refresh_token:dmd23q3au8ljyajcvhz207of4ivsn9vjiaxzez223qeagdpe0voqiasknykv58jtdefault_org_id:defaults_to_the_logged_in_user_org_id# Optional configuration, defaults will be used for these values if not suppliedcsp_url:https://console.cloud.vmware.comA profile can also be created that uses an access_token directly.
However, a csp_url and default_org_id must be explicitly defined.credentials.yamlcsp:my_profile:csp_url:https://console.cloud.vmware.comdefault_org_id:my_org_idheaders:csp-auth-token:kl2k3jjoij0un093wjn092w34jta0-3Now encrypt the credentials file and add the encryption key and encrypted file path to the ENVIRONMENT.Theacctcommand should be available as it is a requisite ofidemandidem-csp.
Encrypt the the credential file.acctencryptcredentials.yamloutput:-A9ZkiCSOjWYG_lbGmmkVh4jKLFDyOFH4e4S1HNtNwI=Add these to your environment:exportACCT_KEY="-A9ZkiCSOjWYG_lbGmmkVh4jKLFDyOFH4e4S1HNtNwI="exportACCT_FILE=$PWD/credentials.yaml.fernetUsageThis plugin allows your app to integrate csp authentication.If your project implements exec modules then add csp to the auth plugins for your project like so:# my_project_root/my_project/exec/my_project/init.pydef__init__(hub):hub.exec.my_project.ACCT=["csp"]If your project implements state modules then add csp to the auth plugins for your project like so:# my_project_root/my_project/states/my_project/init.pydef__init__(hub):hub.states.my_project.ACCT=["csp"]asyncdefmy_func(hub,ctx):# Call any exec modules from idem-aiohttp, the ctx contains the right headers for csp appsret=awaithub.exec.json.get(ctx,url=f"my_app_url")# ret.result will be "True" if the command was a successassertret.result,ret.comment# ret.ret has the return datareturnret.ret
Package: idem-darwin
Grains, execution modules, and state modules common to all darwin systemsINSTALLATIONInstall idem-darwin directly from pip:pip install idem-darwinDEVELOPMENT INSTALLATIONClone theidem_darwinrepo and install with pip:git clone https://gitlab.com/saltstack/pop/idem-darwin.git idem_darwin
pip install -e idem_darwinEXECUTIONAfter installation thegrainscommand should now be availableTESTINGinstallrequirements-test.txtwith pip and run pytest:pip install -r idem_darwin/requirements-test.txt
pytest idem_darwin/testsVERTICAL APP-MERGINGInstructions for extending idem-darwin into an OS-specific idem projectInstall pop:pip install --upgrade popCreate a new directory for the project:mkdir idem_{specific_darwin_os}
cd idem_{specific_darwin_os}Usepop-seedto generate the structure of a project that extendsgrainsandidem:pop-seed -t v idem_{specific_darwin_os} -d grains exec states“-t v” specifies that this is a vertically app-merged project“-d grains exec states” says that we want to implement the dynamic names of “grains”, “exec”, and “states”Add “idem_darwin” to the requirements.txt:echo idem-darwin >> requirements.txtAnd that’s it!  Go to town making grains, execution modules, and state modules specific to your specific darwin-based platform.
Follow the conventions you see in idem_darwin.For information about running idem states and execution modules check outhttps://idem.readthedocs.io
Package: idem-linux
Grains, execution modules, and state modules common to all linux systemsINSTALLATIONInstall with pip:pip install idem-linuxDEVELOPMENT INSTALLATIONClone theidem-linuxrepo and install with pip:git clone https://gitlab.com/saltstack/pop/idem-linux.git idem_linux
pip install -e idem_linuxEXECUTIONAfter installation thegrainscommand should now be availableTESTINGinstallrequirements-test.txtwith pip and run pytest:pip install -r idem-linux/requirements-test.txt
pytest idem-linux/testsVERTICAL APP-MERGINGInstructions for extending idem-linux into an OS or distro specific pop projectInstall pop:pip install --upgrade popCreate a new directory for the project:mkdir idem-{specific_linux_distro}
cd idem-{specific_linux_distro}Usepop-seedto generate the structure of a project that extendsgrainsandidem:pop-seed -t v idem-{specific_linux_distro} -d grains exec states“-t v” specifies that this is a vertically app-merged project“-d grains exec states” says that we want to implement the dynamic names of “grains”, “exec”, and “states”Add “idem-linux” to the requirements.txt:echo idem-linux >> requirements.txtAnd that’s it!  Go to town making grains, execution modules, and state modules specific to your linux distro.
Follow the conventions you see in idem-linux.For information about running idem states and execution modules check outhttps://idem.readthedocs.io