Saravanan666/pypi-org huggingface dataset:
Package: aws-static-website
AWS static website package is implemented for deploying a bucket with its Cloudfront distribution and its domain name.You can use this package for deploying a static website on the bucket deployed.It is part of theeducational repositoriesto learn how to write stardard code and common uses of the TDD.PrerequisitesYou have to install theAWS Cloud Development Kit(AWS CDK) for deploying the AWS resources:npminstall-gaws-cdk# for installing AWS CDKcdk--help# for printing its commandsAnd you need an AWS account, in this repository calledyour-account.InstallationThe package is not self-consistent. So you have to download the package by github and to install the requirements before to deploy on AWS:gitclonehttps://github.com/bilardi/aws-static-websitecdaws-static-website/pip3install--upgrade-rrequirements.txtexportAWS_PROFILE=your-accountcdkdeployOr if you want to use this package into your code, you can install by python3-pip:pip3installaws_static_websitepython3>>>importaws_static_website>>>help(aws_static_website)Read the documentation onreadthedocsforUsageDevelopmentChange LogSeeCHANGELOG.mdfor details.LicenseThis package is released under the MIT license.  SeeLICENSEfor details.
Package: aws-status
aws-status==========[![Build Status](https://travis-ci.org/jbbarth/aws-status.svg?branch=master)](https://travis-ci.org/jbbarth/aws-status)Helps you check AWS status as seen from the official status page http://status.aws.amazon.com/Installation------------It is recommended to install the package through pip:```pip install aws-status```Usage-----The package provides 2 scripts, one for listing AWS available feeds (or regions or services):```#list feedsaws-status-list#list regionsaws-status-list --regions#list servicesaws-status-list --services#get some helpaws-status-list --help```And an other one to check the status of a specific feed:```#check EC2 in us-east-1aws-status-check http://status.aws.amazon.com/rss/ec2-us-east-2.rss```Thanks------- a great article about packaging python apps: https://hynek.me/articles/sharing-your-labor-of-love-pypi-quick-and-dirty/- one example of parsing AWS status feeds (in Python): https://github.com/rhartkopf/check_aws_status_feed/blob/master/check_aws_status_feed.py- an other example (in Ruby): https://gist.github.com/ktheory/1604786
Package: aws-stepfunction
Welcome toaws_stepfunctionDocumentationNoteYou may not viewing the full document,FULL DOCUMENT IS HEREWhy this Library?aws_stepfunctionprovides AWS StepFunction developer a “smooth”, “interruption free”, “enjoyable” development experience.If your mind set matches most of the following,aws_stepfunctionis the right tool for you:I love the AWS StepFunction Visual EditorI love PythonI don’t want to spent much time learning the Amazon State Machine JSON DSL (Domain Specific Language)I can’t memorize the code syntaxI respect code readability and maintainabilityTalk is cheap, show me the codeThe following code snippet is an equivalent of the below Workflow in the Visual Editorimportaws_stepfunctionassfnfromboto_session_managerimportBotoSesManager# Declare a workflow objectworkflow=sfn.Workflow(comment="The power of aws_stepfunction library!")# Define some tasks and statestask_invoke_lambda=sfn.actions.lambda_invoke(func_name="stepfunction_quick_start")succeed=sfn.Succeed()fail=sfn.Fail()# Orchestrate the Workflow(workflow.start_from(task_invoke_lambda).choice([(# define conditionsfn.not_(sfn.Var("$.body").string_equals("failed!")).next_then(succeed)),(# define conditionsfn.Var("$.body").string_equals("failed!").next_then(fail)),]))# Declare an instance of State Machinestate_machine=sfn.StateMachine(name="stepfunction_quick_start",workflow=workflow,role_arn="arn:aws:iam::111122223333:role/my_lambda_role",)# Deploy state machinebsm=BotoSesManager(profile_name="my_aws_profile",region_name="us-east-1")state_machine.deploy(bsm)# Execute state machine with custom payloadstate_machine.execute(bsm,payload={"name":"alice"})# delete step functionstate_machine.delete(bsm)You mentioned “Smooth Development Experiment”?I guess “a picture is worth a thousand words”:Installaws_stepfunctionis released on PyPI, so all you need is:$pipinstallaws_stepfunctionTo upgrade to latest version:$pipinstall--upgradeaws_stepfunction
Package: aws-step-functions-pydantic
aws-step-functions-pydanticPydantic models for AWS step functionsUsageFrom Step Function ARNUse thefrom_arn()class constructorfromaws_sfn_pydanticimportStateMachinesfn=StateMachine.from_arn(state_machine_arn="...")From JSONUse themodel_validate_json()class constructor (Pydantic v2 builtin)fromaws_sfn_pydanticimportStateMachinesfn=StateMachine.model_validate_json("...")To YAMLUse theto_yaml()class constructor, which accepts:indent(default: 2)level(default: 0)print(sfn.model_to_yaml())RequiresPython 3.10+Installationpipinstallaws-step-functions-pydanticaws-step-functions-pydanticis available fromPyPI, and
the code is onGitHub
Package: aws-sts-get-mfa-profile
AWS STS Get MFA ProfileUse this package to automatically setup an MFA enabled profile for AWS CLIInstall AWS CLISign up for MFA in the AWS IAM Management console (if you haven't already) and note the MFA ARN.Create an access key in the AWS IAM Management console (if you haven't already) and note the access key id and secret.Create a credential text file profile in your home directory ('C:\Users\SamuelMercer\.aws\credentials') by runningawsconfigure--profilemfaAdd yourmfa_serialmanually by runningawsconfiguresetmfa_serial--profilemfa"arn:aws:iam::467792...:mfa/..."Install the python package using pip> python -m pip install aws-sts-get-mfa-profileRun the scriptget-sts-token.pyusing the required length of token in seconds (don't do more than 1 day == 86400 seconds)> get-sts-token.pyWhen making AWS CLI calls from now on it should work, e.g.> aws iam list-users

{
    "Users": [
        {
            ...
Package: aws-sts-tool
AWS STS ToolA CLI tool to help assume AWS role via STS. Useful in automated environments and cross account access requirements for workflows involving AWS.PrerequisitesA AWS user/role credentials that would be used as a trust relation with the roles that need to be assumed.Python >= 3.7InstallationRun the following to install the tool using pip.pipinstallaws_sts_toolUsageAssuming that you have stored user/role credentials that will be used to assume roles at the locations specified by AWS, you can run the following commands.With default duration configured on the role to assumeaws_sts_toolaccount_idsessionNameroleNameoutputWhere the command line arguments are as follows:account_id- the 12 digit AWS account.sessionName- a name to identify the session with.roleName- the role to be assumed.output- the output format of the credentials. Must be one of json, shell or both.Example:aws_sts_tool123456789012test-sessiontest-rolejsonWith custom durationaws_sts_toolaccount_idsessionNameroleNameoutput--durationdurationWhere the command line arguments are as follows:account_id- the 12 digit AWS account.sessionName- a name to identify the session with.roleName- the role to be assumed.output- the output format of the credentials. Must be one of json, shell or both.duration- the custom duration in seconds to assume the role.Example:# Will fetch credentials valid for 2 hoursaws_sts_tool123456789012test-sessiontest-rolejson--duration7200Once the command executes successfully, it will store the credentials for the role assumed incredentials.{ json | sh }at thelocationfrom where the command is executed.LicenseMIT License
Package: aws-stuff-doer
aws-stuff-doer: an inteactive CLI to help manage your AWS projects and sso sessions.ASD is a simple and effective tool for managing AWS Single Sign-On (SSO). Tailored for both developers and administrators, ASD offers an easy way to streamline your AWS SSO process, including running custom shell commands with specific profiles and exporting temporary AWS credentials.FeaturesEasy Integration: Seamlessly integrate with existing AWS infrastructure.Secure Authentication: Enhance security with robust SSO capabilities.Customizable: Extend and adapt ASD to suit your specific needs.Run Custom Commands: Execute shell commands with AWS profiles and export temporary credentials in memory.Temporary AWS Credentials: Access temporary AWS credentials specific to a profile, securely available in memory.InstallationYou can install ASD via pip:pipinstallaws-stuff-doer## Usage

Getting started with ASD is easy:

To generate temporary AWS credentials for a specific profile:
```bash
asd -p <profile_name>This will generate temporary AWS credentials for the specified profile and store them in the ~/.aws/credentials file.To open your AWS console in a browser session:asd<your_command_here>--profile<profile_name>--consoleTo get help:asd--helporgoseeatherapist.The project is available onpypip.ContributingContributions are welcome! Check out theissuesor submit a pull request.Licenseaws-stuff-doer is released under theMIT License.Feel free to reach out with questions, suggestions, or just to say hello. Happy coding!Contact InformationAuthor: Aaron WestEmail:aphexlog@gmail.comThank you for your interest in aws-stuff-doer! Follow the project onGitHubfor the latest updates...
Package: awsswitch
awsswitch - AWS profile switcherEasily switch between AWS Profiles.CreditsThis is a pure python implementation ofJohnny Opao'stoolawsp.PrerequisitesSetup your profiles using the aws cli.awsconfigure--profilePROFILE_NAMEYou can also leave out the--profile PROFILE_NAMEparam to set yourdefaultcredentials.Refer to this document for more informationhttps://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.htmlSetupInstall with pippython-mpipinstallawsswitchInstall withpipx(recommended)pipxinstallawsswitchShell configurationAdd the following to your .bashrc or .zshrc config:aliasawsp='awsswitch; sp="$(cat ~/.awsswitch)"; if [ -z "$sp" ]; then unset AWS_PROFILE; else export AWS_PROFILE="$sp";fi'Usageawsp
Package: aws_syncr
A python application that reads YAML and syncs definitions with amazon.It currently supports:Creation and modification of IAM roles permissionsCreation of instance profiles for an IAM roleCreation of s3 bucketsModification of s3 bucket policy and s3 bucket tagsModification of bucket website, logging and lifecycle configurationCreation and modification of KMS keysCreation and modification of KMS key grantsCreation and modification of Lambda functionsCreation and modification of apigatewaysCreation and modification of Route53 CNAMEsSee more documentation athttp://aws_syncr.readthedocs.orgInstallationaws_syncr is on pypi!:$ pip install aws_syncrRunningaws_syncr is designed to configure the same definition across multiple accounts.To run it you have the following file structure:accounts.yaml
<environment1>/
    config1.yaml
    config2.yaml
<environment2>/
    config1.yaml
    config2.yamlAnd then you run:$ aws_syncr <environment> syncFor example, let’s say you have adevenvironment and astgenvironment:accounts.yaml

    ---

    accounts:
        dev: 123456789
        stg: 382093840

roles.yaml

    ---

    roles:
        my_role:
            [..]

dev/
    roles.yaml - symlink to ../roles.yaml

stg/
    roles.yaml - symlink to ../roles.yamlThen from that folder:$ aws_syncr dev sync --dry-run
$ aws_syncr dev syncOr if you are not in that folder:$ AWS_SYNCR_CONFIG_FOLDER=<folder> aws_syncr [..]TestsRun the following:$ pip install -e .
$ pip install -e ".[tests]"
$ ./test.shOr use tox:$ toxChangelog0.6.1Update pycryptodome because of CVE-2018-155600.6Change from PyCrypto to pycryptodomeUpdate other dependenciesBefore 0.6No changelog was kept
Package: aws-terraform-casper
CasperCasper is a tool for detectingghostsrunning on your AWS cloud environment. Ghosts are resources running on your cloud
environment but not provisioned through infrastructure as code (IaC) tools such as Terraform. Casper currently works only with AWS and Terraform.BenefitsSome of the benefits Casper provides includes:Security and resource management: Ghosts in your infrastructure can be a sign of a security exploit because the resources were not provisioned through the traditional means used in your organization.Coverage: It would help to measure coverage for an organization gradually using
Terraform to provision their AWS infrastructure. Running Casper on an empty terraform state directory would detect all the (supported) resources in your cloud as ghosts. Then you can gradually import those resources to terraform and improve coverage.InstallationInstall Casper by running:pipinstallaws-terraform-casperUsageRun Casper using:casper<sub_command>[options]`Casper currently has two subcommands:BUILDandSCAN.SubcommandDescriptionbuildCollects and stores information about the infrastructure captured in terraform.scanCompares the resources on terraform with that running in the cloud.Casper currently supports the following options:OptionsDescription-h, --helpDisplay help message and exit--root-dirThe root terraform directory--aws-profileAWS profile to use. If not set, uses the value in AWS_PROFILE environment variable--bucket-nameBucket name created to save and retrieve state. If not set, uses the value in CASPER_BUCKET environment variable--exclude-dirsComma separated list of directories to ignore--exclude-state-resComma separated list of terraform state resources to ignore--servicesComma separated list of services to scan, the default is to scan all supported services--exclude-cloud-resComma separated list of cloud resources ids to ignore--rebuildRebuild and save state first before scanning--detailedRetrieve and include details about the resources discovered through scan--output-fileOutput detailed result to specified file--loglevelLog level. Defaults to INFO if unspecifiedRefer to theusage guidefor examples, results format and how to use Casper from your code.ContributingContributions to the development of Casper is very much welcome. Please refer toCONTRIBUTING.mdfor details on ways to contribute.LicenseMozilla Public License v2.0
Package: aws-testlib
aws-testlibContains various utilities and methods for testing SAM and other AWS services that use boto3 and
botocore.AWS Api GatewayVelocity templates for integrationThis library contains methods that allow to inflate Velocity templates in the same way that is supported
by AWS api gateway.This functionality uses embedded Java jar file that contains all necessary functions. Because of this, Java
runtime is required to be installed on the system.
Package: awstestutils
Author:Elvio ToccalinoDate:2023/10/12Version:1.0.0Testing artifacts to work with theboto3library.The focus is onpython 3andboto3. So far, utils cover working with SQS queues and SNS topics.SQSLiveTestQueue allows to quicky test code that depends on a SQS queue.>>> with LiveTestQueue() as queue:
>>>   queue.send_message(MessageBody='some')
>>>   msgs = queue.receive_messages()
>>>   print(msgs[0].body)The context manager takes care of creating and finally deleting the queue, as well as ensuring the queue has a unique name (prefixed, to be identified as a “test” queue).SNSLiveTestTopicQueue allows to test code on topics.>>> with LiveTestTopicQueue() as topic, queue:
>>>     topic.publish(Message='some')
>>>     msgs = queue.receive_messages()
>>>     print(msgs[0].body)The context manager creates (and finally deletes) a pair of objects, one topic and one queue, that work together. Messages published to the topic can be red back on the queue. The topic has the appropriate policy to publish to the queue, and the queue is subscribed to the topic to operate as its endpoint.DynamoDBLiveTestDynamoDBTable allows to test using live test DynamoDB tables:>>> key_schema, attribute_definitions, provisioned_throughput = LiveTestDynamoDBTable.create_key_schema(
>>>     partition_key_name='my_partition_key', sorting_key_name='my_sorting_key',
>>>     partition_key_type='S', sorting_key_type='N', read_capacity_units=1, write_capacity_units=1)
>>> with LiveTestDynamoDBTable(key_schema_definition=key_schema,
>>>                            attribute_definitions=attribute_definitions,
>>>                            provisioned_throughput=provisioned_throughput) as table:Note the helper function to create the key schemas. Upong exiting the context manager, the test table is deleted.Miscsreduce_logging_output()Quicky reduces the amount of logging output from botocore to simplify debugging of other components.cleanup()Delete test topics and queues that might have been left behind. This function can also be invoked as a script, usingpython-mawstestutils.cleanup.TestsThe package includes a set of integration tests. These test live objects against the AWS backend, so the network must be up and the boto3 must be correctly configured (as described here).ExamplesAn example test can be found inexamples.py.Test an object that uses a topic to send data:with LiveTestQueue() as queue:
    o = ObjectUnderTest(sqs_queue=queue)
    o.do_something()
    o.send_results_to_backend()

    msgs = queue.receive_messages()
self.assertEqual(len(msgs), 1)
expected = json.dumps(expected_output)
self.assertEqual(msgs[0].body, expected)Testing an object that publishes to a topic, inspecting the message published:with LiveTestTopicQueue() as (topic, queue):
    o = ObjectUnderTest(topic)
    o.do_something()
    o.send_results_to_aws()

    msgs = queue.receive_messages()
expected = json.dumps(expected_output)
self.assertEqual(msgs[0].body, expected)CollaboratorsFacundo Martinez (@fnmartinez) did an awesome job adding support for DynamoDB and its associated tests.Ezequiel Pochiero (@epochiero) fixed the original blunder managing the region names.Thank you both!
Package: aws-tmp-keys-fetcher
Fetching AWS IAM permissionsIntroductionWorking with AWS, you typically has access to an ever-growing number of accounts and it is not advisable to create (IAM) users plus associated access keys in each of them.Hence, you either work with AWS SSO, federated authentication, or you work with a central landing
zone, and from there you assume roles in the account you want to work with.However, some applications (in this case the Redshift JDBC driver) expects real access keys for a particular profile, in order to make use of temporary database credentials.A well beloved tool forfederated authenticationdoes
exist, but if you use native AWS authentication I couldn't find it.This is a very simple tool that fetches temporary access keys for a particular profile and stores them in your ~/.aws/credentials file. So run the command, and refer to your profile (followed by-tmp).UsageUsage is pretty simple, you need to know the (working!) aws profile name for which you want to fetch temporary credentials.Therole_arnis read from the profile and temporary credentials are retrieved, and written to~/.aws/credentialswith the same profile name, followed by-tmp.$aws-tmp-keys-fetcher--profilemy-profile
Useprofilemy-profilewithrolearn:aws:iam::1111111111:role/MY_ROLE_NAME
EnterMFAcodeforarn:aws:iam::0000000000000:mfa/pietje.puk:
Temporarycredentialswrittento/Users/pietjepuk/.aws/credentialswithprofilemy-profile-tmpIf you want to use the output to set environment variables, you can show the output and if desired use command substition to initialize your shell with it.$aws-tmp-keys-fetcher-pmy-profile--showAWS_ACCESS_KEY_ID=XXXXXXXXXXXXAWS_SECRET_ACCESS_KEY=YYYYYYYYYYYYYYYYYYAWS_SESSION_TOKEN=ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ# Use command substitution to load these values into your environment$$(aws-tmp-keys-fetcher-pmy-profile--show)$env|grep-iawsAWS_ACCESS_KEY_ID=XXXXXXXXXXXXAWS_SECRET_ACCESS_KEY=YYYYYYYYYYYYYYYYYYAWS_SESSION_TOKEN=ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZor if you want to remove these credentials from your environment:$aws-tmp-keys-fetcher--resetunsetAWS_ACCESS_KEY_IDunsetAWS_SECRET_ACCESS_KEYunsetAWS_SESSION_TOKEN

$$(aws-tmp-keys-fetcher--reset)
Package: awstokenex
┌──(||||||||||||||)-[~/Scripts]└─$python3export-token.py-h2⨯
usage:python3awsTokenEx.py-f[env_file]-p[ProfileName]-------------------------------------------------------------
---------------|BulkSSHLogincheck|---------------------
-------------------------------------------------------------__________/_\________|__|__||_______|__|___/_\VV(_-<||/_\//-_)'\|_|\ \//_/\_\_/\_//__/|_|\___/_\_\___|_||_|___/_\_byh4rith.com
-------------------------------------------------------------[!]Requiredarguments:-f,--fileEnvironmentvariablefilethatcontaintoken.-p,--profileValidprofilename.

----------------Scriptfromh4rithd.com----------------Change Log0.0.1 (18/08/2022)First Release
Package: awstokenex1
┌──(||||||||||||||)-[~/Scripts]└─$python3export-token.py-h2⨯
usage:python3awsTokenEx.py-f[env_file]-p[ProfileName]-------------------------------------------------------------
---------------|BulkSSHLogincheck|---------------------
-------------------------------------------------------------__________/_\________|__|__||_______|__|___/_\VV(_-<||/_\//-_)'\|_|\ \//_/\_\_/\_//__/|_|\___/_\_\___|_||_|___/_\_byh4rith.com
-------------------------------------------------------------[!]Requiredarguments:-f,--fileEnvironmentvariablefilethatcontaintoken.-p,--profileValidprofilename.

----------------Scriptfromh4rithd.com----------------Change Log0.0.1 (18/08/2022)First Release
Package: awstokensave
┌──(||||||||||||||)-[~/Scripts]└─$python3export-token.py-h2⨯
usage:python3awstokensave.py-f[env_file]-p[ProfileName]-------------------------------------------------------------
---------------|BulkSSHLogincheck|---------------------
-------------------------------------------------------------__________/_\________|__|__||_______|__|___/_\VV(_-<||/_\//-_)'\|_|\ \//_/\_\_/\_//__/|_|\___/_\_\___|_||_|___/_\_byh4rith.com
-------------------------------------------------------------[!]Requiredarguments:-f,--fileEnvironmentvariablefilethatcontaintoken.-p,--profileValidprofilename.

----------------Scriptfromh4rithd.com----------------Change Log0.0.1 (18/08/2022)First Release
Package: awstool
aws-toolThis package provides a command line interface to for federation or AMS AWS users.InstallationThe safest way to install the AWS CLI is to usepipin avirtualenv:$ python -m pip install awstoolor, if you are not installing in avirtualenv, to install globally:$ sudo python -m pip install awstoolor for your user:$ python -m pip install --user awstoolIf you have the aws-tool package installed and want to upgrade to the latest version you can run:$ python -m pip install --upgrade awstoolThis will install the aws-tool package as well as all dependencies.ConfigurationBefore using the AWS Tool, you need to configure your AWS credentials.The quickest way to get started is to run theawstool configurecommand:$ awstool configure
Enter your Identity Source Domain(like sso.example.com):sso.example.com
Enter your Identity User(like user@example.com):Fake.User@example.com
Enter your Identity Password:Basic CommandsAn AWS Tool command has the following structure:$ awstool <command> <subcommand> [options and parameters]For example, to generate credentials, the command would be:$ awstool credential --generate-accountNoteIt's only necessary to run command with--generate-accountwhen it's your first time running this command or
you are really want to re-generate account.
That's to say,awstool credentialis ok for your subsequent use.To view help documentation, use one of the following:$ awstool --help
$ awstool <command> --help
$ awstool <command> <subcommand> --helpTo get the version of the AWS CLI:$ awstool --versionGetting HelpThe best way to interact with our team is through GitHub. You canopen an issue.Please check for open similarissuesbefore opening another one.The AWS Tool implements AWS service APIs. For general issues regarding the services or their limitations, you may find theAmazon Web Services Discussion Forumshelpful.More ResourcesAWS CLI DocumentationAWS CLI User GuideAWS CLI Command ReferenceAmazon Web Services Discussion ForumsAWS SupportAMS Documentation