Saravanan666/pypi-org huggingface dataset:
Package: aws-visualizer
A visualizer of the network of security group dependencies in an AWS VPC.Based on the dependencies of the security groups within a VPC, it can generate the following:An HTML table with all security group dependencies between network components.A dot graph of all security group dependencies between network components.A dot graph of all security group dependencies between network components grouped by security groups.A dot graph of all security group dependencies between network components grouped by subnet.Usageaws-visualizer [-h] [–directory DIRECTORY] [–use-subnets][–use-security-group-subgraphs]
[–exclude-security-group SECURITY-GROUP]
[–profile PROFILE] [–region REGION]
[–assume-role ROLE]optional arguments::-h,--helpshow this help message and exit--directoryDIRECTORY,-dDIRECTORYoutput directory defaults to .--use-subnets,-nuse subnet subgraphs--use-security-group-subgraphs,-suse security group subgraphs--exclude-security-groupSECURITY-GROUP,-xSECURITY-GROUPexclude security group--profilePROFILE,-pPROFILEselect the AWS profile to use--regionREGION,-rREGIONselect region to graph--assume-roleROLE,-aROLEARN of the role to assumeExampleTo generate the default graph, type:$ aws-visualizer --directory /tmp/aws-visualizer
$ for F in /tmp/aws-visualizer/*.dot; do dot -Tpng -o $(dirname $F)/$(basename $F .dot).png  $F; done
$ open /tmp/aws-visualizer/*.pngInstallationTo install, type::pip install aws-visualizer
Package: aws-voyeur
Quick n dirty CLI for checking [AWS] inventorySpecifically design for my own personal workflow.[AWS]: http://aws.amazon.com/Here Be Dragons---------------If you're doing something serious, you should look into these betteralternatives:* https://github.com/DrGonzo65/ec2-cli-tools - very similar package that letsyou glob* https://github.com/mattrobenolt/ec2 - lets you query instances using django-orm-like syntax* awscli - official aws cliIf you're still here, here's the deal: This is a CLI for querying aws for whatinstances are running and display them in a table with the same columns I haveenabled in the web interface. You can sort by specifying the headers:voyeur namevoyeur launch_timevoyeur environmentYou can filter similarily like:voyeur environment=productionOr go crazy (show production foo sites ordered by launch time):voyeur environment=production site=foo launch_timeI picked the columns and names so that line lengths are under 120 columns;which is how wide my terminal is.But Wait, There's More----------------------If you make the first argument `elb` or `rds`, you can list your elastic loadbalancers and databases too. You can also do add `ec2` if you like beingconsistent.Example-------### List EC2```bashname                   environment    site     ip              private_ip      launch_time    id---------------------  -------------  -------  --------------  --------------  -------------  ----------hodor-weg              prod           groot    54.85.94.132    10.0.0.2        2014-06-17     i-27fghb69groot-elasticsearch    prod           hodor                    10.0.0.1        2014-08-08     i-abcdcaz7```### List ELB```bash$ voyeur elbname     dns_name                                     pool  created_time-------  -------------------------------------------  ------  ------------------------groot    groot-1529220.us-east-1.elb.amazonaws.com         3  2012-02-03T01:41:02.930Zhodor    hodor-4545272.us-east-1.elb.amazonaws.com         2  2014-03-08T06:15:53.610Z```### List RDS```bash$ voyeur rdsid          uri----------  -------------------------------------------------------------------------------groot-db    postgres://iamgroot@groot-db.cya8ag0rj.us-east-1.rds.amazonaws.com:5432/groothodor-db    postgres://iamgroot@hodor-db.cya8ag0rj.us-east-1.rds.amazonaws.com:5432/groot```## Installationpip install aws-voyeur## UsageConfigure boto following [the official instructions](http://boto.readthedocs.org/en/latest/boto_config_tut.html).A basic configuration would just involve setting the `AWS_ACCESS_KEY_ID`,`AWS_SECRET_ACCESS_KEY` environment variables.## AWS IAM PolicyThis library requires the Describe* permissions. You can use use the "Read OnlyAccess" policy template, or you can make your own with at least thesepermissions:```json{"Statement": [{"Action": ["ec2:Describe*","elasticloadbalancing:Describe*","rds:Describe*"],"Effect": "Allow","Resource": "*"}]}```
Package: aws-vpclattice-prealpha
aws-vpclattice-prealphavpcLattice L2 ConstructProject InformationExample ImpleentationAPI DesignFAQAcceptanceProject InformationStatus(DRAFT)Original Author(s):@mrpackethead, , @taylaand,  @nbaillieTracking Issue:#502API Bar Raiser:@TheRealAmazonKendraPublic Issues ( aws-cdk)(vpclattice): L2 for Amazon VPC Lattice #25452Prototype Codehttps://github.com/raindancers/aws-cdk/tree/mrpackethead/aws-vpclattice-alpha/packages/%40aws-cdk/aws-vpclattice-alphaExample implementationhttps://github.com/raindancers/vpclattice-prealpha-demoBlogVpcLatticeAmazon VPC Lattice is an application networking service that consistently connects, monitors, and secures communications between your services, helping to improve productivity so that your developers can focus on building features that matter to your business. You can define policies for network traffic management, access, and monitoring to connect compute services in a simplified and consistent way across instances, containers, and serverless applications.The L2 Construct seeks to assist the consumer to create a lattice service easily by abstracting some of the detail.  The major part of this is in creating the underlying auth policy and listener rules together, as their is significant intersection in the properties require for both.
Package: aws-whoami
aws-whoamiShow what AWS account and identity you're usingYou should know aboutaws sts get-caller-identity,
which sensibly returns the identity of the caller. But even with--output table, I find this a bit lacking.
That ARN is a lot to visually parse, it doesn't tell you what region your credentials are configured for,
and I am not very good at remembering AWS account numbers.aws-whoamimakes it better.$ aws-whoami
Account:         123456789012
                 my-account-alias
Region:          us-east-2
AssumedRole:     MY-ROLE
RoleSessionName: ben
UserId:          SOMEOPAQUEID:ben
Arn:             arn:aws:sts::123456789012:assumed-role/MY-ROLE/benNote: if you don't have permissions toiam:ListAccountAliases,
your account alias won't appear. See below for disabling this check if getting a permission denied on this call raises flags in your organization.InstallI recommend you installaws-whoamiwithpipx, which installs the tool in an isolated virtualenv while linking the script you need.# with pipxpipxinstallaws-whoami# without pipxpython-mpipinstall--useraws-whoamiIf you don't want to install it, theaws_whoami.pyfile can be used on its own, with only a dependency onbotocore(which comes withboto3).Optionsaws-whoamiusesboto3, so it'll pick up your credentials inthe normal ways,
including with the--profileparameter.If you'd like the output as a JSON object, that's the--jsonflag.
The output is theWhoamiInfoobject (see below) as a JSON object.To full disable account alias checking, set the environment variableAWS_WHOAMI_DISABLE_ACCOUNT_ALIAStotrue.
To selectively disable it, you can also set it to a comma-separated list of values that will be matched against the following:The beginning or end of the account numberThe principal Name or ARNThe role session nameAs a libraryThe library has awhoami()function, which optionally takes aSession(eitherboto3orbotocore), and returns aWhoamiInfonamedtuple.The fields ofWhoamiInfoare:AccountAccountAliases(NOTE: this is a list)ArnTypeNameRoleSessionNameUserIdRegionSSOPermissionSetType,Name, andRoleSessionName(andSSOPermissionSet) are split from the ARN for convenience.RoleSessionNameisNonefor IAM users.SSOPermissionSetis set if the assumed role name conforms to the formatAWSReservedSSO_{permission-set}_{random-tag}.To disable the account alias check, passdisable_account_alias=Truetowhoami().
Note that theAccountAliasesfield will then be an empty list, notNone.format_whoami()takes aWhoamiInfoobject and returns the formatted string used for display.
Package: aws.windowsplonecluster
aws.windowsploneclusterGOAL: have a supervisor alternative on Windows systems.It allows you :QOS restart, stop zeoclients with a load balancing (for the moment only pound is implemented).During the reboot of a zeoclient, it is first out of the pool distribution, then restart, and check then if it’s ok it back into the pool.Users continue to browse the site. You can restart all zeoclients of the cluster. The site is always available during the reboot modulo the restart of the load balancer (two pool of zeoclients are configured)To purge reverse proxy cache (for now only squid is implemented)To monitor the cluster (testing url, reporting access times, sending mail if critical event occurs, monitoring memory)To analyze the logs (as regular expressions) searching across the logs of all machines at once.To repair a cluster when a critical event is detected (monitoring memory error on 500 test url, log file) -> + restart email alert component.To rotate log of all the log files present on the cluster.Changelog0.11 (2011-10-21)add some debug info on http_error_defaultadd a new option : use_http_proxy0.10 (2011-10-20)Add follow redirection options0.9 (2011-10-19)Don’t use thread with zca.0.8 (2011-10-07)Add some docsTrace when ping failed0.7 (2011-10-07)Nothing changed yet.0.6 (2011-06-17)Add zca for checking service0.5 (2011-06-17)Initial release
Package: awswl
AWS AllowlistA small tool to make it pretty simple to add and remove ip addresses (or CIDR blocks) from an AWS security group. This acts like a sort of oversimplified VPN, where you can quickly give yourself SSH access to a project as you move about from network to network.This README should have enough information to get started, but you can get more information on:recent changes in theCHANGELOGdocumentation onRead The DocsAlternativesto awswlInstalling 🛠️This is a python tool, packaged as a python module, so you should be able to just runpipinstallawswlOf course, if you don't know what a python module is, or you don't have python and pip installed,
you may have additional work ahead of you.Now that Python2 is largely a relic of the past, I'm focused on supporting Python 3 only. The current CI build is for Python 3.9+.Usage ⌨If you want usage help at the command line, try:awswl--helpThere's more detailed usage documentation in the documentation, which you can read onGitHuborreadthedocs.EnvironmentAll of these require you to have AWS credentials set up in advance, stored in~/.aws/credentials, and if you need to use a profile, you can configure it withAWS_PROFILE. If you want to identify the security group using a command-line variable so that
you don't have to put it into each command invocation, you can put it inAWSWL_SGID.
Package: awswrapper
awswrapper - AWS API Wrapper========================AWS API Wrapper for LambdaUsage-----It will look into your aws credentials fileImport the ec2wrapper>>> from awswrapper import ec2wrapperUse describe functions for talk to aws>>> ec2wrapper.describe_instances(state=None)>>> ec2wrapper.describe_instances_by_tag(tag, value=None, state=None)Execute actions on those Instances>>> ec2wrapper.terminate_instances(instance_ids, dry_run)>>> ec2wrapper.stop_instances(instance_ids, dry_run)>>> ec2wrapper.start_instances(instance_ids, dry_run)Get data from the EC2 Response>>> ec2wrapper.get_instances_data(ec2_instances)>>> ec2wrapper.get_instances_ids(ec2_instances)Get data from Instance>>> ec2wrapper.get_tags_from_instance(instance)Get the EC2 Connection>>> ec2wrapper.get_ec2_connection(instance)
Package: aws-wsgi
AWSGI allows you to use WSGI-compatible middleware and frameworks like Flask and Django with theAWS API Gateway/Lambda proxy integration.Installationawsgiis available from PyPI asaws-wsgi:pip install aws-wsgiExampleimportawsgifromflaskimport(Flask,jsonify,)app=Flask(__name__)@app.route('/')defindex():returnjsonify(status=200,message='OK')deflambda_handler(event,context):returnawsgi.response(app,event,context,base64_content_types={"image/png"})
Package: awsx-cli
AWSXA powerful command-line tool for quickly and easily switching between AWS credentials.About The Projectawsx-cliis a command-line tool that helps you switch quickly and easily between Amazon Web Services (AWS) credentials. This tool is designed to streamline your tasks when you need to use multiple AWS credentials. You can use it to manage your AWS credentials, switch between them, and update Multi-Factor Authentication (MFA) sessions.Key Features:Manage and store your AWS credentials
Switch between different AWS credentials
Update Multi-Factor Authentication (MFA) sessions
Easy and fast to useGetting StartedStep 1: InstallationYou can install awsx-cli using pip. If you don't have pip installed, you can follow the instructions here to install it.pipinstallawsx-cliStep 2: Basic UsageOnce awsx-cli is installed, you can start using it to manage your AWS credentials. Here are some basic commands to get you started:To list your stored credentials:❯awsxaws01aws04*aws02or❯awsx-laws01aws03
*aws02To switch to a different set of credentials:❯awsxaws02
Credentialschangedto'aws02'To add new credentials:❯awsx-aaws04
Stored'aws04'credentialssuccesfullyTo both switch to a different set of credentials and update the MFA session:❯awsxaws02-mfayour-mfa-code
aws02sessionisupdatedwithMFAcodeTo update an MFA session:❯awsx-mfayour-mfa-code
aws05sessionisupdatedwithMFAcodeTo remove credentials:❯awsx-raws03
Removed'aws03'credentialssuccessfullyTo rotate credentials:❯awsx-cfoo-mfa123456CredentialsrotatedsuccessfullyTo get help:❯awsx--help
usage:awsx[-h][-aADD][-rREMOVE][-l][-pADD_PROMPT][-mfaUPDATE_MFA][change]positionalarguments:
changeExample:awsxfoo,awsxbar

optionalarguments:
-h,--helpshowthishelpmessageandexit-aADD,--addADDaddyourcredentialstoawsx
-rREMOVE,--removeREMOVEremoveyourcredentialsfromawsx
-l,--listlistyourcredentialsfromawsx
-pADD_PROMPT,--add-promptADD_PROMPTyoucancreatecredsfromprompt
-mfaUPDATE_MFA,--update-mfaUPDATE_MFAupdateyourmfasession
-cROTATE_CREDENTIAL,--rotate-credentialROTATE_CREDENTIALrotateyourcredentials(createnewandremoveprevious)Example:awsx-cfoo-mfa123456Now you're ready to start using awsx-cli to manage your AWS credentials efficiently!ContributingContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make aregreatly appreciated.If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!Fork the ProjectCreate your Feature Branch (git checkout -b feature/AmazingFeature)Commit your Changes (git commit -m 'Add some AmazingFeature')Push to the Branch (git push origin feature/AmazingFeature)Open a Pull RequestLicenseDistributed under the APACHE-2.0 License. SeeLICENSE.txtfor more information.
Package: aws-xray-lambda-segment-shim
Full Docs:https://aws-xray-lambda-segment-shim.readthedocs.ioGitHub:https://github.com/Sam-Martin/aws-xray-sqs-lambda-segment-shimIt’s not currently possibly follow an AWS Xray trace through a Lambda Function triggered by an SQS Queue.Unless you useaws-xray-lambda-segment-shim!Installationpip install aws-xray-lambda-segment-shimUsagefrom aws_xray_lambda_segment_shim import get_sqs_triggered_recorder


def lambda_handler(event, context):
    for i, record in enumerate(event["Records"]):
        recorder = get_sqs_triggered_recorder(
            record=record,
            lambda_request_id=context.aws_request_id,
            lambda_arn=context.invoked_function_arn,
        )
        with recorder.in_segment():
            with recorder.in_subsegment(f"SQS Record {i}") as subsegment:
                print(
                    "I'm triggered by an SQS Record and using trace id ",
                    subsegment.trace_id,
                )TriggeredXrayRecorderis a child class ofaws_xray_sdk.AWSXRayRecorderso you can use all the methods you would expect
from following theaws-xray-sdk documentation.CaveatsThis approach causes all subsegments created with it to appear only in the trace that was passed in by SQS.
There will still be a separate Lambda trace that will not contain these subsegments and will not show as
being triggered by SQS.This approach is useful if you are using SQS as an intermediary for a process you’re already tracing as it
then makes logical sense to view the traces from that starting point.If you’re more likely to view your traces as starting at the lambda function
(i.e. you donothave any tracing prior to the SQS queue) then your mileage may vary with this approach.We are also here working outside the scope of what is expected by the aws-xray-sdk.
We are pretending to be AWS Lambda when we’re initiating a trace, we’re using undocumented fields to
pretend to be AWS Lambda, and to allow the correlation of the SQS message and the Lambda Invocation (edge creation).If this wasn’t the only way to pursue a trace through SQS to lambda I would suggest you avoid it! But given the
complexity involved in automating this from AWS’s side, it may be a while before we see native support.Issue on Python SDKIssue on .NET SDKIssue on Node SDKTestingYou can run the python tests with:pip install -r requirements.txt
make local-testTerraform TestsYou can run the terraform tests with:$ make install-xray-daemon-mac
$ make run-xray-daemon-macThen in a new terminal run:$ make terraform-init
$ make terraform-apply
$ make terraform-send-messageOnce that’s complete you can click on the xray URL provided at the end of the test to observe the trace is correct.
Package: awtrix-light-client
Python async HTTP client forawtrix-lightWarningThis client has been tested with awtrix-light v0.90 use with caution as official dev documentation is not fully documented and can cause crashDocumentationhttps://M0NsTeRRR.github.io/awtrix-light-clientDevInstallPoetryInstall and setup dependenciespoetry install
poetry shellRun unit testpoetry run pytest --covRun ruffpoetry run ruff format . 
poetry run ruff check .ContributingWe welcome and encourage contributions to this project! Please read theContributing guide. Also make sure to check theCode of Conductand adhere to its guidelinesSecuritySeeSECURITY.mdfile for details.LicenceThe code is under CeCILL license.You can find all details here:https://cecill.info/licences/Licence_CeCILL_V2.1-en.htmlCreditsCopyright © Ludovic Ortega, 2023Contributor(s):-Ortega Ludovic -ludovic.ortega@adminafk.fr
Package: aw-watcher-ask-away
AW Watcher Ask AwayThisActivityWatch"watcher" asks you what you were doing in a pop-up dialogue when you get back to your computer from an AFK (away from keyboard) break.Installationpipx install aw-watcher-ask-away(Need to installpipxfirst?)RoadmapMost of the improvements involve a more complicated pop-up window.Usepyinstalleror something for distribution to people who are not developers and know how to install things from PyPI.Set up a website, probably with a GitHub organization.Handle calls better/stop asking what you were doing every couple minutes when in a call.See whether people would rather add data to AFK events instead of creating a separate bucket. Maybe make that an option/configurable.ContributingHere are some helpful links:How to create an ActivityWatch watcher."Manually tracking away/offline-time" forum discussionNote: I am using this project to get experience with thehatchproject manager.
I have never use it before and I'm probably doing some things wrong there.Licenseaw-watcher-ask-awayis distributed under the terms of theMITlicense.
Package: aw-watcher-netstatus
aw-watcher-netstatusAnActivityWatchmonitor for observing the network connection status.PurposeOn the internet, Wonderland is recursive, with rabbit holes opening up to yet more rabbit holes; you never stop falling.—Henrik KarlssonLibrar𝘪𝘦𝘴 of Alexandria, brimming with knowledge, promise, culture; an unrelenting, expanding periphery; innumerable collections of untold riches; a source of wonder and awe—all a single keypress away. It's suffocating.InstallationInstall the module withpip. This will addaw-watcher-netstatusto your$PATH.pip install aw-watcher-netstatusaw-qtcan now find the module; to start it by default addaw-watcher-netstatusto theaw-qt.tomlconfiguration file (find the locationhere), e.g.$ cat  $AW_DIRECTORY/aw-qt/aw-qt.toml

[aw-qt]
autostart_modules = ["aw-server", "aw-watcher-afk", "aw-watcher-window", "aw-watcher-netstatus"]DevelopmentPrerequisites: Clone the repository. InstallPoetry.Runpoetry installin the root of the directory.Start the ActivityWatch server in development mode:$ AW_PATH/aw-server --testing --verboseRunaw-watcher-netstatusin development mode, this will connect tolocalhost:8080by default.$ poetry run aw-watcher-netstatus --testing -vOpen a socket at that port; observe the logs produced byaw-watcher-netstatus, view the timeline atlocalhost:5666.nc -l -k 8080
Package: awx
python reader for satellite product format data (.AWX)This package provide a user-friendly interface to AWX data, it can read 3 type AWX, that isProduct Type 1, geostationary satellite image productProduct Type 2, polar orbiting satellite image productProduct Type 3, Grid productREADMEenEnglishzh_CN简体中文Installinstall from pypipipinstallawxQuick StartBasic usage for library1 Read data, access data values, slicing longitude and latitude and save to netCDFimportosfromawximportAwxpathfile=r'../data/ANI_VIS_R02_20230217_1000_FY2G.AWX'ds=Awx(pathfile)# print file head informationprint(ds)# get satellite observation data in xarray.DataArray formatprint(ds.values)# clip data to given longitude and latitude extentprint(ds.sel(lat=slice(20,40),lon=slice(100,130)))# save data to netcdf4ds.values.to_netcdf('ANI_VIS_R02_20230217_1000_FY2G.nc')2 Basic draw data without projection# draw data use matplotlibimportmatplotlib.pyplotaspltfromawximportAwxfpath=r'./data/ANI_VIS_R02_20230217_1000_FY2G.AWX'ds=Awx(pathfile=fpath)print(ds)dar=ds.values.squeeze()plt.pcolormesh(dar.lon,dar.lat,dar,cmap='Greys_r')plt.savefig('ANI_VIS_R02_20230217_1000_FY2G_NoProj.png',dpi=300)plt.show()3 Draw data in native projection# draw data in projection coordinationimportosimportcartopy.crsasccrsimportmatplotlib.pyplotaspltfromawximportAwx# fpath = r'./data/ANI_VIS_R02_20230217_1000_FY2G.AWX'  # Mercatorfpath=r'./data/ANI_IR2_R01_20230217_0800_FY2G.AWX'# lambertds=Awx(pathfile=fpath)print(ds)dar=ds.values.squeeze()plt.figure(figsize=(8,8))ifdar.projection==1:proj=ccrs.LambertConformal(central_longitude=dar.clon/100,central_latitude=dar.clat/100,standard_parallels=(dar.std_lat1_or_lon/100.,dar.std_lat2/100.))extent=[dar.x.min(),dar.x.max(),dar.y.min(),dar.y.max()]elifdar.projection==2:proj=ccrs.Mercator(central_longitude=dar.clon/100,latitude_true_scale=dar.std_lat1_or_lon/100.)extent=[dar.x.min(),dar.x.max(),dar.y.min(),dar.y.max()]elifdar.projection==4:proj=ccrs.PlateCarree(central_longitude=dar.clon/100.)extent=[dar.lon.min(),dar.lon.max(),dar.lat.min(),dar.lat.max()]else:raiseNotImplementedError()ax=plt.axes(projection=proj)ax.set_extent(extent,crs=proj)ax.coastlines(resolution='110m')ax.gridlines(draw_labels=True)ax.pcolormesh(dar.x,dar.y,dar,cmap='Greys_r')plt.savefig(os.path.splitext(os.path.basename(fpath))[0]+'.png',dpi=300,bbox_inches='tight')plt.show()Command line procedureawx_infoPrint AWX file head informationUsage:awx_info AWX_File_NameExample:awx_info FY2G_TBB_IR1_OTG_20150729_0000.AWXawx_to_ncConvert AWX file to netCDF4 fileUsage:awx_to_nc AWX_File_Name NetCDF_File_NameExample:awx_to_nc FY2G_TBB_IR1_OTG_20150729_0000.AWX FY2G_TBB_IR1_OTG_20150729_0000.nc
Package: awx-junit
awx-junitA command utility to generate a JUnit XML report from an Ansible Tower or AWX Job.InstallationInstall awx-junit with pip.pipinstallawx-junitUsage ExampleUse the AWX cli (awxkit) to get job events of a certain job from an Ansible Tower or AWX instance. Pipe the resulting JSON output from awxcli to awx-junit utilityawxjob_eventslist--job<job_id>--all|awx-junit