Saravanan666/pypi-org huggingface dataset:
Package: aws-saving
AWS saving package is implemented for deploying a lambda that you can invoke for stopping, deleting or starting each RDS, EC2, bucket, Sagemaker domain and Stack instance.The goal is to implement this package for each AWS service can stop, delete and start its instances.It is part of theeducational repositoriesto learn how to write stardard code and common uses of the TDD.PrerequisitesYou can useServerless frameworkfor deploying the lambda function:
if you want to use the guide below, you have to install Serverless framework beforenpminstall-gserverlessIf you want to use another AWS tool, you can see the repositoryaws-tool-comparisonbefore to implement your version.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-savingcdaws-saving/pip3install--upgrade-rrequirements.txtnpminstallexportAWS_PROFILE=your-accountSLS_DEBUG=*slsdeploy--stageproductionOr if you want to use this package into your code, you can install by python3-pip:pip3installaws_savingpython3>>>importaws_saving.savingasSaving>>>help(Saving)Read the documentation onreadthedocsforUsageDevelopmentChange LogSeeCHANGELOG.mdfor details.LicenseThis package is released under the MIT license.  SeeLICENSEfor details.
Package: awsscripter
Aboutawsscripter is a tool to write automation on the top of  AWS CLI (Boto).It automates away some of the more mundane, repetitive and error-prone tasks, simplify aws resource management more efficiently.Features:
- Audit AWS accounts with different compliance program such as CISP, PCI-DSS, HIPPA
- Takes inputs from templates & Configuration and performs user friendly automations by combining aws boto api’s
- Support for inserting dynamic values in templates via customisable resolvers
- Support for running arbitrary code as hooks before/after stack builds
- Support for templates written in JSON, YAML, Jinja2 or Python DSLs such as Troposphere
- Easy integration to xformnation platform
- Fast, highly parallel builds
- Built in support for working with ALM (application lifecycle Management tools and Operation Support System
- Infrastructure visibility with meta-operations such as stack querying protectionExample> awsscripter audit CISP> awsscripter audit PCIDSSUsage: awsscripter [OPTIONS] COMMAND [ARGS]…
awsscripter is a tool to manage your cloud native infrastructure deployments.Options:--versionShow the version and exit.--debugTurn on debug logging.--dirTEXTSpecify awsscripter directory.--outputThe formatting style for command output.--no-colourTurn off output colouring.--varTEXTA variable to template into config files.--var-fileFILENAMEA YAML file of variables to template into config files.--helpShow this message and exit.Commands:audit        Commands for auditing aws environment with…
init         Commands for initialising awsscripter…
list         packet security check :return:
monitor      Commands for auditing aws environment with…
security     packet security check :return:
stack        Commands for auditing aws environment with…
testcommand  A sample testcommandsub-commands:> awsscripter stackUsage: awsscripter stack [OPTIONS] COMMAND [ARGS]…Options:--helpShow this message and exit.Commands:create      Creates a stack or a change set.
delete      Deletes a stack or a change set.
describe    Commands for describing attributes of stacks.
execute     Executes a change set.
generate    Prints the template.
launch      Launch a stack or environment.
list        Commands for listing attributes of stacks.
set-policy  Sets stack policy.
status      Print status of stack or environment.
update      Update a stack.
validate    Validat1. - - - - es the template.> awsscripter initUsage: awsscripter init [OPTIONS] COMMAND [ARGS]…Commands for initialising awsscripter projects.Options:--helpShow this message and exit.Commands:env      Initialises an environment in a project.
project  Initialises a new project.Install$ pip install awsscripterTutorial and DocumentationContributionsSee ourContributing Guide.
Package: aws-sec-graph
aws-sec-graphPurposeGive a graph of the AWS Security Groups and EC2 instances relation.This allow you to see relations overinstancesXsecurity groupsXopened portsbased on AWS Filters(with boto3, Port filters or in all ec2 available instances and Security Groups.RequirementsPackagespython3awscligraphvizpipboto3Prerequisitesawscli configuredsudo apt install graphviz (https://graphviz.org/download/)install graphviz (https://graphviz.readthedocs.io/en/stable/manual.html#installation)Installationpip install requirements.txtAWS PermissionsRead-OnlyPermissions:ec2:DescribeInstances
ec2:DescribeTags
ec2:DescribeSecurityGroupsResources:*(All)Example:{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "ec2:DescribeInstances",
                "ec2:DescribeTags",
                "ec2:DescribeSecurityGroups"
            ],
            "Resource": "*"
        }
    ]
}Options:--command : 
    Only "analyze" command available
--profile  : Inform aws profile to authenticate using boto3 lib
--filter : Filter to apply on describe instances (https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instances.html)
--format : output format (https://graphviz.org/doc/info/output.html)
--port-filter : Inform a especific port or a range of ports to filter the output, example: 1 unique port "22" or range of ports "20:22"UsageGeneral usagepython3 run.py --command=analyzeUsing filterpython run.py --command=analyze --profile=default --filter='[{"Name": "tag:environment","Values": ["staging"]}]'Using port filterRange of ports:python run.py --command=analyze --profile=default --port-filter=20:22Unique port:python run.py --command=analyze --profile=default --port-filter=22Change output format (based on graphviz lib)python run.py --command=analyze --profile=default --filter='[{"Name": "tag:environment","Values": ["staging"]}]' --format=xdotRecomendationshttps://boto3.amazonaws.com/v1/documentation/api/latest/index.htmlhttps://graphviz.org/documentation/https://github.com/jrfonseca/xdot.pyTODOUse aws profile: done (08/11/2020)Filter for instances to graph: done (08/11/2020)Filter for ports: done (18/12/2020)Generate different page for security group
Package: aws-secrets
This library allows you to use credentials stored in AWS Secrets Manager within
your code. It will lazily resolve secret values when they are evaluated, or resolve
all secrets when AWSCredential.resolve_secrets() is called.Usagefromaws_secretsimportAWSCredentialdb=AWSCredential('path/to/key')# credential is resolved hereprint(db['username'])secret_one=AWSCredential('path/to/key_one')secret_two=AWSCredential('path/to/key_one')# both credentials are resolved hereAWSCredential.resolve_secrets()print(secret_one)print(secret_two)
Package: aws-secrets-cache
Use AWS Secrets Manager as dict.This package provides convenient way of using secrets manager as a dict. You can
configure underlying cache time withttlparameter. If you want to use non
default kms key id pass it withkms_key_idparameter.sec=Secrets(client=boto3.client('secretsmanager'))# Set secretsec['name']=value# Get secretvalue=sec['name']
Package: aws-secrets-dict
AWS Secrets Dictaws_secrets_dict is a Dictionary-based class acting as a wrapper for theAWS Secrets Manager. It allows you to Get, Update, & Delete secrets using the notation/syntax of a python dictionary.Example Usagefrom aws_secrets_dict import AwsSecrets

# Need AWS Key & Secret
my_key = "Your AWS Secrets Access Key, or set 'AWS_SECRETS_KEY' env variable"
my_secret = "Your AWS Secrets Secret Key or set 'AWS_SECRETS_SECRET' env variable"
aws_region = "Your AWS Region or set 'AWS_REGION' env variable. If not set/specified, defaults to us-east-2"

mysecrets = AwsSecrets(my_key, my_secret, aws_region)

mysecrets['One'] = 1
mysecrets[2] = "Two"
mysecrets["2"] = 22222
mysecrets['Greeting'] = "Hello"

mysecrets['One']
# 1
mysecrets[2]
# "Two"
mysecrets["2"]
# 22222
mysecrets['Greeting']
# "Hello"NotesThe class will use the json module to serialize the keys & values, which allows it to distinguish between types when setting keys & retrieving values. Make sure that your keys/values can all be serialized into json.
Package: aws-secure-bucket
AWS Secure BucketThis is a Simple S3 Secure Bucket.Bucket Access Control is PrivatePublic Read Access is falseEnforce SSLAll Block public accessRequire encryptionInstallTypeScriptnpminstallaws-secure-bucketoryarnaddaws-secure-bucketPythonpipinstallaws-secure-bucketExampleTypeScriptnpminstallaws-secure-bucketimport{SecureBucket}from'aws-secure-bucket';constbucket=newSecureBucket(stack,'SecureBucket',{bucketName:'example-secure-bucket',});
Package: aws-secure-log-bucket
AWS Secure Log Bucketsecure multiple transition phases in a single lifecycle policy bucket.Lifecycle ruleThe storage class will be changed with the following lifecycle configuration.Storage ClassDefaul transition after daysINFREQUENT_ACCESS60 daysINTELLIGENT_TIERING120 daysGLACIER180 daysDEEP_ARCHIVE360 daysInstallTypeScriptnpminstallaws-secure-log-bucketoryarnaddaws-secure-log-bucketPythonpipinstallaws-secure-log-bucketExamplenpminstallaws-secure-log-bucketimport{SecureLogBucket}from'aws-secure-log-bucket';newSecureLogBucket(stack,'SecureLogBucket');LicenseThis project is licensed under the Apache-2.0 License.
Package: aws-security-test
# Runtime
#### Requirements
-Python: 2.7.12
-Boto3: 1.4.1#### Configuring Tests##### CredentialsCredentials need to be setup as described in [Boto3 Documentation](http://boto3.readthedocs.io/en/latest/guide/configuration.html).
Access needed by the users’ API keys configured:AmazonEC2ReadOnlyAccessIAMReadOnlyAccessAWSCloudTrailReadOnlyAccessAmazonS3ReadOnlyAccessCloudWatchLogsReadOnlyAccessCloudWatchReadOnlyAccessAmazonSNSReadOnlyAccessKMSReadOnlyPolicy- There is no pre-defined AWS Policy with the necessary privileges. The custom policy can defined as mentioned in the [documentation](https://docs.aws.amazon.com/kms/latest/developerguide/iam-policies.html#iam-policy-example-read-only-console)##### Tests to runSetup a config file similar to [default.yml](https://github.com/mikhailadvani/aws-security-test/blob/master/config/default.yml) to execute desired tests. Value for each test should beTrueorFalse.#### Execution Steps##### Run as scriptpython aws_security_test.py -c config/default.yml- Will use the credentials from the environment variables if found or will fall back to the default profile in~/.aws/configpython aws_security_test.py -c config/default.yml -p profile_name- Will use the credentials from the corresponding profile defined in~/.aws/config#### ArtifactsCertain artifacts will be created at the end of every execution for additional verification. The will be in the artifacts directoryroot_login.txt: Will be useful in monitoring root account access in case CloudWatch is not used.sns_subscribers.csv: Lists subscribers for each SNS topic. Can be used to ensure notifications are being sent to the right audience.internet_open_security_groups.csv: Lists security groups with access open to the Internet. This list might contain rules where access open from the Internet is desired, but can also be used to check for misconfigurations.# License
Apache License 2.0
Package: awssert
AWSsertAWSsert is a Python library providing declarative assertions about AWS resources to your tests.InstallationUse the package managerpipto install AWSsert.pipinstallawssertUsageInstalling the package will make AWSserts extra assertions available to all of your tests. Assertions are attached directly toboto3resource objects, allowing you to write clean and declarative tests:importboto3deftest_bucket_contains_object():bucket=boto3.resource("s3").Bucket("foo")assertbucket.should_not.contain("bar")bucket.put_object(Key="bar",Body=b"123")assertbucket.should.contain("bar")AWSsert also works in tandem withmoto, enabling the same level of clarity to be applied on mock infrastructure:importboto3frommotoimportmock_s3@mock_s3deftest_mock_bucket_contains_object():bucket=boto3.resource("s3").Bucket("foo")assertbucket.should_not.contain("bar")bucket.put_object(Key="bar",Body=b"123")assertbucket.should.contain("bar")ProgressAWS ServiceResource ObjectAWSsert SupportedCloudFormationEvent:x:Stack:x:StackResource:x:StackResourceSummary:x:CloudWatchAlarm:x:Metric:x:DynamoDBTable:white_check_mark:EC2ClassicAddress:x:DhcpOptions:x:Image:x:Instance:x:InternetGateway:x:KeyPair:x:KeyPairInfo:x:NetworkAcl:x:NetworkInterface:x:NetworkInterfaceAssociation:x:PlacementGroup:x:Route:x:RouteTable:x:RouteTableAssociation:x:SecurityGroup:x:Snapshot:x:Subnet:x:Tag:x:Volume:x:Vpc:x:VpcPeeringConnection:x:VpcAddress:x:GlacierAccount:x:Archive:x:Job:x:MultipartUpload:x:Notification:x:Vault:x:IAMAccessKey:x:AccessKeyPair:x:AccountPasswordPolicy:x:AccountSummary:x:AssumeRolePolicy:x:CurrentUser:x:Group:white_check_mark:GroupPolicy:x:InstanceProfile:x:LoginProfile:x:MfaDevice:x:Policy:white_check_mark:PolicyVersion:x:Role:white_check_mark:RolePolicy:x:SamlProvider:x:ServerCertificate:x:SigningCertificate:x:User:white_check_mark:UserPolicy:x:VirtualMfaDevice:x:OpsWorksLayer:x:Stack:x:StackSummary:x:S3Bucket:white_check_mark:BucketAcl:x:BucketCors:x:BucketLifecycle:x:BucketLifecycleConfiguration:x:BucketLogging:x:BucketNotification:x:BucketPolicy:x:BucketRequestPayment:x:BucketTagging:x:BucketVersioning:x:BucketWebsite:x:MultipartUpload:x:MultipartUploadPart:x:Object:x:ObjectAcl:x:ObjectSummary:x:ObjectVersion:x:SNSPlatformApplication:x:PlatformEndpoint:x:Subscription:x:Topic:white_check_mark:SQSMessage:x:Queue:x:ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.A fullcontribution guideandcode of conductare supplied with the repository. In essence, update the unit tests and changelog, and treat fellow users with respect!LicenseApache Software License 2.0
Package: awsservice
Project descriptionCustom package for AWS ServicesMy custom awsservice on PYPISETUPTOOLS docsGetting StartedAssuming that you have a supported version of Python installed, you can first set up your environment with:$python-mvenv.venv
...
$..venv/bin/activateThen, you can install aws-service from PyPI with:$python-mpipinstallawsserviceor install from S3 source with:urlUsing AWS-serviceAfter installing the package:Set up credentials (in e.g. ~/.aws/credentials):aws_access_key_id = YOUR_KEYaws_secret_access_key = YOUR_SECRETregion=us-east-1Other credentials configuration method can be found hereThen, from a Python interpreter you can import it and use its classes and functions::>>>fromawsservice.ec2_serviceimportEc2Service
>>>fromawsservice.s3_serviceimportS3Service
>>>fromawsservice.cloudwatch_serviceimportCloudwatchService
>>>my_s3=S3Service()>>>my_s3.create_new_bucket(bucket_name='my_new_bucket',region='eu-west-2')>>>my_s3.put_file(file_name='file_1',bucket='my_new_bucket',object_name='custom-name')Availible modules:Class S3Service (module s3_service)Functionality (availible methods):create_new_bucket- create new bucketput_file- upload file on s3get_file- download file from s3check_exist- check if file exists on s3Class Ec2Service (module ec2_service)Functionality (availible methods):start_instance- start ec2 instancestop_instance- stop instancereboot_instance- reboot instanceget_one_instance_status- get one instance statusall_instances- list all my ID's instancescreate_my_instance- create_instanceClass CloudwatchService (module cloudwatch_service)Functionality (availible methods):get_cpu_usage_2- get cpu usage, version 2get_cpu_usage- get cpu usage, version 1
Package: aws-service-availability
aws-service-availabilityCLI tool for listing (un)available AWS services by region, because theAWS regional services pageno longer contains the useful table of supported services.🚀 FeaturesList all the supported services for a given AWS regionList all the unsupported services for a given AWS regionInstallationpipinstall-Uaws-service-availabilityor install withPoetry:poetryaddaws-service-availabilityThen you can run the tool:aws-service-availabilitylist-supported-serviceseu-north-1
aws-service-availabilitylist-unsupported-serviceseu-north-1or withPoetry:poetryrunaws-service-availabilitylist-supported-serviceseu-north-1
poetryrunaws-service-availabilitylist-unsupported-serviceseu-north-1📈 ReleasesYou can see the list of available releases on theGitHub Releasespage. We follow theSemantic Versioningspecification.🛡 LicenseThis project is licensed under the terms of theGNU GPL v3.0license. SeeLICENSEfor more details.CreditsThis project was generated withpython-package-template, based onpython-package-templateby Roman Tezikov.
Package: aws-service-catalog-factory
aws-service-catalog-factoryWhat is it?This is a python3 framework that makes it easier to build multi region AWS Service Catalog portfolios.With this framework you define a portfolio in YAML.  For each product version in your portfolio you specify which git
repository it is in and the framework will build out AWS CodePipelines for each product version.These CodePipelines can run CFN_NAG and Cloudformation_rspec on your templates enabling you to check your templates are
good quality that they are functionally correct.Getting startedYou can read theinstallation how toor you can read through theevery day useguides.You can read thedocumentationto understand the inner
workings.Going furtherThe framework is one of a pair.  The other isaws-service-catalog-puppet.
With Service Catalog Puppet you can provision products into multiple regions of multiple accounts using YAML and you can
share portfolios across multiple regions of multiple accounts.LicenseThis library is licensed under the Apache 2.0 License.
Package: aws-service-catalog-puppet
aws-service-catalog-puppetBadgesWhat is it?This is a python3 framework that makes it easier to share multi region AWS Service Catalog portfolios and makes it
possible to provision products into accounts declaratively using a metadata based rules engine.With this framework you define your accounts in a YAML file.  You give each account a set of tags, a default region and
a set of enabled regions.Once you have done this you can define portfolios should be shared with each set of accounts using the tags and you
can specify which regions the shares occur in.In addition to this, you can also define products that should be provisioned into accounts using the same tag based
approach.  The framework will assume role into the target account and provision the product on your behalf.Getting startedYou can read theinstallation how toor you can read through theevery day useguides.You can read thedocumentationto understand the inner
workings.Going furtherThe framework is one of a pair.  The other isaws-service-catalog-factory.
With Service Catalog Factory you can create pipelines that deploy multi region portfolios very easily.LicenseThis library is licensed under the Apache 2.0 License.
Package: awsserviceendpoints
awsserviceendpointsMicropackage that changesboto3to return the standard service endpointsThis package will replace the legacy AWS endpoints for all services with
the modern endpoints. Boto3 (really, botocore) is still using the legacy
endpoints for some services (most notably SQS) in order to support Python
2.6/2.7. This is unnecessary for Python 3 (and some Python 2.7) users, and
causes problems with other libraries (and VPC endpoints) that have moved
to the new service endpoints.Note that this will only enable the modern endpoints ifssl.HAS_SNIreturnsTrue.To use, simply ensure that this library is imported prior toboto3being
imported.importawsserviceendpointsimportboto3
Package: aws-ses-service
aws_ses_serviceIntroductionGetting StartedExampleContributorsLicenseIntroductionThis library is to help send emails using AWS ses serviceGetting StartedIn order to install, open the command prompt and type ✌️:pip install aws_ses_serviceExampleThe following directoryExampleshows a multiple example about how to use webhook_manager modulesContributorsThis project exists thanks to all the people who contribute. [Contribute].""LicenseThis library is licensed under the MIT License - see theLICENSE.mdfile for details.
Package: aws-session
aws-sessionA CLI to generate and store session credentials in~/.aws/credentialsfile, based on~/.aws/configprofilesInstallpip3 install aws-sessionUsageget session credentials:

    aws-session get [--profile/-p <profile_name>]

        --profile/-p <profile_name> : select profile ['default']
        --force/-f                  : force new session

    To create MFA user sessions just add `mfa_serial` to profile config in ~/.aws/config profiles

list session profiles:

    aws-session list

purge expired session profiles:

    aws-session purge

        --force/-f                  : purge all session profiles regardles of expiration

print help

    aws-session helpSetup dev environmentInstall Dev Dependenciesexport PATH="${PATH}:/Users/${USER}/Library/Python/3.7/bin"
export PYTHONPATH="${PYTHONPATH}:/Users/${USER}/Library/Python/3.7/bin"
pip3 install --user -r requirements.txt
pip3 install --user -r requirements-dev.txtRunpython3 -m aws_session getCreate Packagepython3 setup.py clean --all sdist bdist_wheelLocal Installpip3 install --force-reinstall --no-deps dist/aws_session-*-py3-none-any.whlDeploy to PiPytwine upload dist/*
Package: aws-session-credentials
This python package provides a method for mfa-authenticated API access
to AWS resources.This tool is just one part of a larger setup that forces programmatic
requests to the AWS API to be authenticated with multi-factor
authentication. For details on how to configure IAM to forbid
non-mfa-authenticated access to AWS resources, consultthis AWS
guide.CLI Tool SetupTo install theaws-session-credentialsCLI tool, simply install this
package viapip:pip install git+ssh://git@github.com/thumbtack/aws-session-credentials.git
aws-session-credentials --helpThis package is both Python2 and Python3 compliant and can be safely
used in either environment.An independent executable is also available onthe GitHub releases
page.For details and examples on invoking the CLI tool, runaws-session-credentials--help.DevelopmentThis repository is structured as a python package. When working on this
project, it is recommended to install the package in development mode:git clone git@github.com:thumbtack/aws-session-credentials.git
pip install -e .Running testsTests can be run with:python -m unittest discoverRelease tests are run against both a Python2 and Python3 environment, so
it is recommended to locally test changes using both editions of Python.Building pex executablesThepexproject can be used to build an executable file for the CLI
tool:pip install pex
pex . -m aws_session_credentials -o aws-session-credentials
Package: aws-session-handler
aws_session_handler===================Amazon Web Service python session helperFeatures--------* cache credentials on disk if assume_role with mfa serialUsage-----```bashpip install aws-session-handler``````pythonfrom aws_session_handler import AwsSessionHandlerhandler = AwsSessionHandler(profile='default')s3 = handler.client('s3')print(s3.list_buckets())```
Package: aws-session-recorder
AWS session that records discovered resources to a databaseNOTE: This project is still a work in progress.Free software: BSD licenseDocumentation:https://aws-session-recorder.readthedocs.io.FeaturesWorks just like a normal boto3 session, so you can use it for any library that allows you to set the boto3 session..Records IAM related Get/List requests to a local sqlite.db.Use datasette to view recorded data.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.