Saravanan666/pypi-org huggingface dataset:
Package: aws-creds
AWS Credential Picker (aws-creds)Makes it easier to use multiple AWS accounts when you don't have SSO available. You can easily save multiple profiles, and then log into them with an simple set of commands.InstallingThis utility is available in PyPi and can be installed by running:python3 -m pip install aws-credsUsageMacBook-Pro:aws-creds HammoTime$ aws-creds --help
Usage: aws-creds [OPTIONS] COMMAND [ARGS]...

  aws-creds makes it easier to use multiple AWS accounts when you don't have
  SSO available.  You can easily save multiple profiles, and then log into
  them with an simple set of commands.

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  add      Adds a new credential profile.
  default  Used to set the defaults for output type and region.
  login    Sets the user's AWS credentials to the selected profile.
  logout   Deletes user's current AWS credentials.
  ls       Lists all of the saved profiles.
  rm       Deletes the selected profile.
  role     Used to login using an assumed role.
  rotate   Automatically rotates your access keys.
  status   Prints out information about the credential that is currently in...
  update   Updates the selected profile with the new values.CommandsThe following commands are available within the AWS Credential Picker.add: Add a new credential.rm: Remove a credential.ls: List all the saved credentials.login: Login using a credential.logout: Remove all of the files used by the aws-cli in ~/.aws.status: Print details about the current session (account/user).update: Updates the selected profile with new values.rotate: Rotates your Access Key if you have a spare slot available.default: Used to manage default region and output type.get: Prints out the default region and output type.set: Sets the default region and output type.role: Used to manage roles that can be assumed from the cli.add: Adds a role.assume: Assumes a saved role.ls: Lists all roles available to be assumed.rm: Removes an assumed role permanently from aws-cred config.unassume: Unassumes a role, switching back to source account.OptionsThe following options are available within the AWS Credential Picker.--help: Show the help screen.--version: Print version details.How it WorksThe AWS Credential Picker is quite simple in it's design. Instead of storing details in the credentials file - which can prove difficult to use with lots of profiles - we store them in a custom JSON file. When youlogin, you're actually doing is creating thecredentialsand theconfigfile in~/.aws. When youlogout, these files are being deleted.The reason this was created is that some AWS Utilities and 3rd Party Tools REALLY do not like it if you have multiple profiles and do not treat environment variables correctly. By always having a single credential set, utilities will ALWAYS work.This script also provides an update on how old your Access Key is and advises you when to rotate them.Dependenciesboto3click
Package: aws-cron-expression-validator
AWSCronExpressionValidatorValidates theseAWS EventBridge cron expressions, which are similar to, but not compatible with Unix style cron expressions;FieldValuesWildcardsMinute0-59, - * /Hour0-23, - * /Day-of-month1-31, - * ? / L WMonth1-12 or JAN-DEC, - * /Day-of-week1-7 or SUN-SAT, - * ? L #Year1970-2199, - * /NB: It appears AWS is supporting the Quartz Job Scheduler cron expressions. More details than AWS provides is available in theCron Trigger Tutorial.This was inspired by Niloy Chakraborty'sAWSCronValidator.pyproject.InstallingTo install the library run;pipinstallaws-cron-expression-validatorUsagefromaws_cron_expression_validator.validatorimportAWSCronExpressionValidator,AWSCronExpressionMinuteErrormy_expression="0 180 ? * MON-FRI *"try:AWSCronExpressionValidator.validate(my_expression)exceptAWSCronExpressionMinuteError:print(f"Oh no! My expression has an invalid minute field:{e}")exceptValueErrorase:print(f"Oh no! My expression was invalid:{e}")
Package: awscrt
AWS CRT PythonPython 3 bindings for the AWS Common Runtime.API documentationDevelopment guidefor contributors to aws-crt-python's source code.LicenseThis library is licensed under the Apache 2.0 License.Minimum Requirements:Python 3.7+InstallationTo install from pip:python3-mpipinstallawscrtTo install from Github:gitclonehttps://github.com/awslabs/aws-crt-python.gitcdaws-crt-python
gitsubmoduleupdate--init
python3-mpipinstall.To use from your Python application, declareawscrtas a dependency in yoursetup.pyfile.OpenSSL and LibCrypto (Unix only)aws-crt-python does not use OpenSSL for TLS.
On Apple and Windows devices, the OS's default TLS library is used.
On Unix devices,s2n-tlsis used.
But s2n-tls uses libcrypto, the cryptography math library bundled with OpenSSL.To simplify installation, aws-crt-python has its own copy of libcrypto.
This lets you install a wheel from PyPI without having OpenSSL installed.
Unix wheels on PyPI come with libcrypto statically compiled in.
Code to build libcrypto comes fromAWS-LC.
AWS-LC's code is included in the PyPI source package,
and the git repository includes it as a submodule.If you need aws-crt-python to use the libcrypto included on your system,
set environment variableAWS_CRT_BUILD_USE_SYSTEM_LIBCRYPTO=1while building from source:AWS_CRT_BUILD_USE_SYSTEM_LIBCRYPTO=1python3-mpipinstall--no-binary:all:--verboseawscrt(--no-binary :all:ensures you do not use the precompiled wheel from PyPI)You can ignore all this on Windows and Apple platforms, where aws-crt-python
uses the OS's default libraries for TLS and cryptography math.Mac-Only TLS BehaviorPlease note that on Mac, once a private key is used with a certificate, that certificate-key pair is imported into the Mac Keychain. All subsequent uses of that certificate will use the stored private key and ignore anything passed in programmatically. Beginning in v0.6.2, when a stored private key from the Keychain is used, the following will be logged at the "info" log level:static: certificate has an existing certificate-key pair that was previously imported into the Keychain. Using key from Keychain instead of the one provided.Crash HandlerYou can enable the crash handler by setting the environment variableAWS_CRT_CRASH_HANDLER=1. This will print the callstack tostderrin the event of a fatal error.
Package: awsctl-cli
AWSCTLawsctlis a utility for installing AWS packages on servers in the cloud. AWS packages such as Systems Manager, Cloudwatch, etc. have different installation methods which can be hard to manage when setting up a simple server. This package aims to make this as simple asawsctl install ssm.# debian based systemsapt-getupdate-y&&apt-getinstall-ypython3python3-pip
pipinstall--upgradeawsctl-cli# centos based systemsyumupdate-y&&yuminstall-ypython3python3-pip
pipinstall--upgradeawsctl-cli# install cloudwatchawsctlinstallcloudwatch# install cloudwatch logsawsctlinstallcloudwatch-logs--region=us-east-1--config=s3://my-config-bucket/config# install inspectorawsctlinstallinspector# install systems managerawsctlinstallssmSupported AgentsPackageCommandDescriptionCloudwatchawsctl install cloudwatchInstalls the Cloudwatch agent and configures it to run on startup.Cloudwatch Logsawsctl install cloudwatch --region="<region"> --config=<config file>Installs and configures Cloudwatch Logging Agent.Inspectorawsctl install inspectorInstalls the Inspector agent and configures it to run on startup.Systems Managerawsctl install ssmInstalls the SSM agent and configures it to run on startup.Supported Operating SystemsDue to different installation methods we only support a subset of operating systems. We welcome additional operating systems!Operating SystemSupportedAmazon Linux:x:Amazon Linux 2:white_check_mark:Debian:white_check_mark:CentOS:white_check_mark:Red Hat:white_check_mark:Ubuntu 16.04:white_check_mark:Ubuntu 18.04:white_check_mark:
Package: awsctx
awsctxA command line tool to change active AWS profiles and add/replace profiles.InstallationUsing Pip$pip3installawsctxManual$gitclonehttps://github.com/aurphillus/awsctx.git
$cdawsctx
$python3setup.pyinstallUsageTo list Profiles$awsctxTo switch active profile$awsctxprofile-nameTo add a new profile block$awsctxconfigure
Package: aws-custom-ews-kafka-resources
Lib to represent kafka topic that can then be used with TroposphereHow to useInstallpipinstallaws_custom_ews_kafka_topicDeploy via Custom resource (self-managed Lambda)from aws_custom_ews_kafka_topic.custom import KafkaTopictopic = KafkaTopic(ServiceToken=Ref(FunctionArn),Name="new-kafka-topic",PartitionsCount=6)Deploy via Private Registry resource typefrom aws_custom_ews_kafka_topic.resource import KafkaTopictopic = KafkaTopic(Name="new-kafka-topic",PartitionsCount=6)Example from CLI>>>fromtroposphereimportTemplate>>>fromaws_custom_ews_kafka_topic.resourceimportKafkaTopic>>>t=KafkaTopic("newtopic",Name="toto",PartitionsCount=6,BootstrapServers="toto.net")>>>c=Template()>>>c.add_resource(t)>>>print(c.to_yaml())Resources:newtopic:Properties:BootstrapServers:toto.netName:totoPartitionsCount:6Type:EWS::Kafka::TopicCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.
Package: aws-custom-ews-kafka-topic
Lib to represent kafka topic that can then be used with TroposphereHow to useInstallpipinstallaws_custom_ews_kafka_topicDeploy via Custom resource (self-managed Lambda)from aws_custom_ews_kafka_topic.custom import KafkaTopictopic = KafkaTopic(ServiceToken=Ref(FunctionArn),Name="new-kafka-topic",PartitionsCount=6)Deploy via Private Registry resource typefrom aws_custom_ews_kafka_topic.resource import KafkaTopictopic = KafkaTopic(Name="new-kafka-topic",PartitionsCount=6)Example from CLI>>>fromtroposphereimportTemplate>>>fromaws_custom_ews_kafka_topic.resourceimportKafkaTopic>>>t=KafkaTopic("newtopic",Name="toto",PartitionsCount=6,BootstrapServers="toto.net")>>>c=Template()>>>c.add_resource(t)>>>print(c.to_yaml())Resources:newtopic:Properties:BootstrapServers:toto.netName:totoPartitionsCount:6Type:EWS::Kafka::TopicCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.
Package: aws-dashboard
AWS-DashboardAWS-Dashboard is a Python CLI-tool for dealing with AWS EC2 and RDS instances.InstallationUse the package managerpipto install aws-dashboard.pipinstallaws-dashboardYou canShow all your available EC2 instances && RDS clusters:>aws-dashboardstatus|Name|State|StateTime|Address|Env|Id||-------------------------|---------|-----------------------------|-----------|-------|------||project_1_backend_prod|running|11hours46minutes|8.8.8.8|stage|<id>||project_2_plugin|stopped|1day13hours17minutes|1.1.1.1|stage|<id>||project_1_frontend_prod|stopped|374days4hours58minutes|8.8.4.4|prod|<id>||Name|State|Address|Port||---------|-----------|--------------------|------||db_prod|available|*rds.amazonaws.com|5432||db_dev|available|*rds.amazonaws.com|5432|Order tables by any table name:>aws-dashboardstatus--orderName|Name|State|StateTime|Address|Env|Id||-------------------------|---------|-----------------------------|-----------|-------|------||project_1_backend_prod|running|11hours46minutes|8.8.8.8|stage|<id>||project_1_frontend_prod|stopped|374days4hours58minutes|8.8.4.4|prod|<id>||project_2_plugin|stopped|1day13hours17minutes|1.1.1.1|stage|<id>||Name|State|Address|Port||---------|-----------|--------------------|------||db_dev|available|*rds.amazonaws.com|5432||db_prod|available|*rds.amazonaws.com|5432|Show only tables that match givenenv:>aws-monitorstatus--envprod|Name|State|StateTime|Address|Env|Id||-------------------------|---------|-----------------------------|-----------|-------|------||project_1_backend_prod|running|11hours46minutes|8.8.8.8|prod|<id>||project_1_frontend_prod|stopped|374days4hours58minutes|8.8.4.4|prod|<id>||Name|State|Address|Port||---------|-----------|--------------------|------||db_prod|available|*rds.amazonaws.com|5432|Make output shell-compatible (and change separator with--sh-separatorflag):>aws-dashboardstatus--orderName--sh--no-dbproject_1_backend_prod|running|11hours46minutes|8.8.8.8|stage|<id>project_1_frontend_prod|stopped|374days4hours58minutes|8.8.4.4|prod|<id>project_2_plugin|stopped|1day13hours17minutes|1.1.1.1|stage|<id>Start or stop ec2 instances using their id(s):>aws-dashboardstop--orderName--sh--no-dbAreyousureyouwanttostopthisinstance(s)?[y/N]:yStoppingBulk start or stop ec2 instances using their env:>aws-dashboardbulk_stop--envstage<name><id1><name><id2><name><id3>Areyousureyouwanttostopthisinstance(s)?[y/N]:yStoppingNoteYou should consider addingTagsto your EC2 or RDS instances withkey="environment"andvalue="<env>"LicenseMIT
Package: aws-datapipe
A tool for creating AWS data pipeline. Currently only forexporting data from any DynamoDB table to an existing S3 bucketand store the Pipeline Definition as a backup. New features are going to be added (check for updates).Just because terraform can’t do it yet..PrerequisitesThis tool supports only Python 3 because Python 2.7 will not be maintained past 2020AWS-Datapipe uses awscli to configure pipelines in your AWS account. By default, installing aws-datapipe you will also
install all the prerequisites, so you can skip this phase and move to theInstallation step. But in case if you want to do it manually:The easiest way to install aws-cli is to usepipin avirtualenv:$ pip install awsclior, if you are not installing in avirtualenv, to install globally:$ sudo pip install awsclior for your user:$ pip install --user awscliIf you have the aws-cli installed and want to upgrade to the latest version
you can run:$ pip install --upgrade awscliBecause aws-datapipe is based on aws-cli, before using aws-datapipe,
you need to configure your AWS credentials using aws-cli.
You can do this in several ways:Environment variablesShared credentials fileConfig fileIAM RoleThe quickest way to get started is to run theaws configurecommand:$ aws configure
AWS Access Key ID: foo
AWS Secret Access Key: bar
Default region name [us-west-2]: us-west-2
Default output format [None]: jsonFor additional info and other ways of aws-cli configuration you can checkhereInstallingThe easiest way to install aws-datapipe is to usepipin avirtualenv:$ pip install aws-datapipeor, if you are not installing in avirtualenv, to install globally:$ sudo pip install aws-datapipeor for your user:$ pip install --user aws-datapipeIf you have the aws-datapipe installed and want to upgrade to the latest version
you can run:$ pip install --upgrade aws-datapipeEnd with an example of getting some data out of the system or using it for a little demoGetting StartedYou can use AWS Datapipe in two different ways:interactivepassing argumentsTo list all available arguments and additional info check please the--help.For interactive mode just start the toolaws-datapipeand it will ask you for the required information to build a pipeline.After creating data pipeline in AWS, datapipe will save locally apipeline definition filewith the same name as your
pipeline that can be used as a backup. After that you can activate the pipeline directly in the script on the next step:Would you like to activate the pipeline now? [y/n]You can omit activation and manually activate the pipeline later whenever you want from the AWS ConsoleCurrentlyaws-datapipeis creating pipeline which willrun every 14 days after activation.Schedule configuration is coming soon.. check for updatesVersioningI useSemVerfor versioning. For the versions available, see thetags on this repository.AuthorMaxim Tacu- Site Reliability Engineer -OLX Group.LicenseThis project is licensed under the MIT License - see theLICENSEfile for detailsHow to ContributeContributions are very welcome. The easiest way is to fork this repo, and then
make a pull request from your fork.
Package: awsdd
OverviewA low-cost, dynamic-DNS client using Amazon’s Route53 (currently $.50/zone).Based on code fromHow and why I’m not running my own DNS.InstallationUse PyPI:$ sudo pip install awsddPrerequisitesYou must already have an A-record for your domain name in the Route53 zone. In
order to be able to remove the record, prior to creating a new one (if the IP
has changed), we need to know the TTL value of the current record, which is
used by thebotolibrary to identify the current record.If you see the following error, it might mean that the TTL disagreed from our default:boto.route53.exception.DNSServerError: DNSServerError: 400 Bad Request
<?xml version="1.0"?>
<ErrorResponse xmlns="https://route53.amazonaws.com/doc/2013-04-01/"><Error><Type>Sender</Type><Code>InvalidChangeBatch</Code><Message>Tried to delete resource record set [name='dustinhome.us.', type='A'] but the values provided do not match the current values</Message></Error><RequestId>be44faea-f41c-11e3-a846-5921f19aa715</RequestId></ErrorResponse>In this case, try looking-up your current TTL value in the Route53 console, and setting it into the ADD_OLD_TTL environment variable.Settingsawsddneeds your AWS API credentials, the zone-ID, and the domain name that
you’re updating. All of these things can either be defined as environment
variables or passed as command-line parameters. Our convention is to provide
the AWS credentials via the environment (which is common), and pass the rest as
parameters.The command-line parameters can be found via command-line help. The supported
environment variables are these, and shouldn’t need an explanation:USER_DOMAINZONE_IDACCESS_KEY_IDSECRET_ACCESS_KEYUsageIt’s straight-forward. Just pass it the right information:$ ADD_ACCESS_KEY_ID=XXXXXXXXXX ADD_SECRET_ACCESS_KEY=YYYYYYYYYY add_update -d <domain name> -z <zone ID>SchedulingThere are a lot of different ways to choose how to get the configuration values
intoawsddand some people might also have different preferences for how
often it runs. So, we leave it to the user to schedule it into Cron.For your convenience, this is an example of such a job, which updates every
four hours:0 */4 * * * /usr/local/bin/add_update -d <domain name> -z <zone ID> -a <access key> -s <secret key>DebuggingBy setting the DEBUG environment variable to “1”, you’ll get some more verbosity:2014-06-14 19:46:47,057 - add.aws - DEBUG - Updating DNS for domain [ddd.eee].
2014-06-14 19:46:47,057 - add.aws - DEBUG - Fetching current IP.
2014-06-14 19:46:47,077 - requests.packages.urllib3.connectionpool - INFO - Starting new HTTP connection (1): wtfismyip.com
2014-06-14 19:46:47,281 - requests.packages.urllib3.connectionpool - DEBUG - "GET /text HTTP/1.1" 200 13
2014-06-14 19:46:47,281 - add.aws - DEBUG - Current IP: [49.139.31.75]
2014-06-14 19:46:47,581 - add.aws - DEBUG - Current DNS value: [1.2.3.4]
2014-06-14 19:46:47,716 - add.aws - INFO - IP update complete.
Package: awsdeepracer-control
awsdeepracer_controlThis python package rewrite to support the new version Deepracer Console Softwareversion 2.0.383.0What's NewCompatibility with Deepracer Console Software version 2.0.383.0.Resolved the issue where the video stream was not displayed.Updated the move method to support the new version of the web console.Removed the following methods: move_forward, move_backward, turn_right, turn_left.Added robust error handling for scenarios like unreachable vehicle, inaccessible CSRF token, and incorrect credentials.Enhanced security checks in API calls to ensure the accuracy of success statuses.Addressed potential Python identifier issues, such as replacing null with None.Package Repo Linkhttps://github.com/lshw54/awsdeepracer_controlPackage Pypi Linkhttps://pypi.org/project/awsdeepracer-control/APIHigh level methodsshow_vehicle_infomoveGeneral purpose methodsget_is_usb_connectedget_battery_levelget_raw_video_streamMethods for running autonomous modeset_autonomous_modeset_throttle_percentmethods for running manual modeset_manual_modestart_carstop_carmovemethods for modelsget_modelsget_uploaded_modelsload_modelupload_modelmethods for calibrationset_calibration_modeget_calibration_angleget_calibration_throttleset_calibration_throttleset_calibration_angleInstallationpip install awsdeepracer_controlGetting StartedShow vehicle infoimportawsdeepracer_controlclient=awsdeepracer_control.Client(password="???",ip="111.222.333.444")client.show_vehicle_info()OthersThis repo is rewrite from :https://github.com/thu2004/deepracer-vehicle-api/
Package: aws-deepracer-control-v2
aws_deepracer_control_2This python package rewrite to support the new version Deepracer Console Softwareversion 1.0.606.0This is a fork from the original work built byhttps://github.com/lshw54/awsdeepracer_controlI have added some small fixes for API changes to DeepRacerWhat's NewFix the video stream can not displayFix themovemethod add the new value to support new version web consoleRemovemove_forward,move_backward,turn_right,turn_leftmethodPackage Repo Linkhttps://github.com/lshw54/awsdeepracer_controlPackage Pypi Linkhttps://pypi.org/project/awsdeepracer-control/APIHigh level methodsshow_vehicle_infomoveGeneral purpose methodsget_is_usb_connectedget_battery_levelget_raw_video_streamMethods for running autonomous modeset_autonomous_modeset_throttle_percentmethods for running manual modeset_manual_modestart_carstop_carmovemethods for modelsget_modelsget_uploaded_modelsload_modelupload_modelmethods for calibrationset_calibration_modeget_calibration_angleget_calibration_throttleset_calibration_throttleset_calibration_angleInstallationpip install awsdeepracer_controlGetting StartedShow vehicle infoimportawsdeepracer_controlclient=awsdeepracer_control.Client(password="???",ip="111.222.333.444")client.show_vehicle_info()CreditsThis repo is rewrite from:https://github.com/lshw54/awsdeepracer_controlhttps://github.com/thu2004/deepracer-vehicle-api/
Package: aws-default-cleaner
Introductionaws-default-cleaneris a command line tool to delete default AWS account resources:VPCsSubnetsInternet GatewaysRoute TablesNetwork ACLsSecurity GroupsInstallationInstall package usingpippackage-managerpipinstallaws-default-cleanerUsageBasic usageCurrently this tool supports two operations:discoveranddelete.discovercommand searches for default VPCs and other resources in the AWS account and outputs ids (no objects deleted)deletecommand tries to delete default VPCs and associated Subnets, Internet Gateways, Route Tables, Network ACLs and Security GroupsExample:aws-default-cleanerdiscover
aws-default-cleanerdeleteAssuming roleWhen you use multi-account setup with central IAM account and specific roles in spoke accounts, you can forceaws-default-cleanerto assume role before performing any operations. Simply supply one or more--assumeor-aflags with the corresponding role names.Example:aws-default-cleanerdiscover-aarn:aws:iam::account-one-id:role/infra-admin-assumerole-aarn:aws:iam::account-two-id:role/infra-admin-assumerole
aws-default-cleanerdelete-aarn:aws:iam::XXXXXXXXXXXX:role/infra-admin-assumeroleRegion filteringBy defaultaws-default-cleanerwill search for the default resources in the all available regions, but you can override this behavior by supplying--regionor-rflags.Example:aws-default-cleanerdiscover-reu-central-1-reu-west-3
aws-default-cleanerdelete-reu-central-1-reu-west-3