Saravanan666/pypi-org huggingface dataset:
Package: awox-mesh-light-webthing
Webthings RESTful API for Awox’s “SmartLight” (SKRLm-c9-E27).This lightbulb is supporting Bluetooth mesh.USAGEPrerequisite, smart light BLE’s network configuration
should be first set from any system supporting BLE as
explained on following page.
Success has been reported using Raspberry Pi3+
or some USB dongle (eg: 0a12:0001)https://github.com/Leiaz/python-awox-mesh-lightFor WebThings users, addon can be installed from the addon repository:http://gateway.local:8080/settings/addons/discoveredThen once added and enabled, mesh’s credentials should be configured from addon page:http://gateway.local:8080/settings/addons/Note: Mesh’s default name is “unpaired” and “1234” is default password.For developers, check standalone webthing example:MAC=A4:C1:38:FF:FF:FF ./awox_mesh_light_single_webthing.py

curl http://localhost:8888/properties
#| {"on": true, "brightness": 50, "color": "#ffffff"}

curl -X PUT --data '{"color": "#00A000"}' \
  -H 'Content-Type: "application/json" ' \
  "http://localhost:8888/properties/color"DEVELOPOn WebThings Gateway, adapter can be run from shell using:sudo hcitool lescan
#| LE Scan ...
#| A4:C1:38:ff:ff:ff unpaired
#| A4:C1:38:ff:ff:ff (unknown)

pip3 install --user -r requirements.txt
MAC=A4:C1:38:ff:ff:ff ./main.pyRESOURCEShttps://purl.org/rzr/https://github.com/Leiaz/python-awox-mesh-lighthttps://iot.mozilla.orghttps://www.amazon.fr/dp/B01L3C1V5G/rzr-21https://www.awox.com/en/awox_product/smartlight-mesh-c9/https://www.upcitemdb.com/upc/3760118941004https://en.wikipedia.org/wiki/Bluetooth_mesh_networkinghttps://purl.org/rzr/presentationshttps://libregraphicsmeeting.org/2020/en/program.htmlhttps://github.com/WebThingsIO/addon-list/pull/851https://libraries.io/pypi/webthinghttps://github.com/WebThingsIO/wiki/wiki/HOWTO:-Create-an-add-on
Package: awpie
awpieUsing Python as awk alternative.Installation$pipinstallawpieUsageUpper case all inputs:$printf'apple\norange\n'|awpie'print(line.upper())'APPLE
ORANGEChange orange to banana:$printf'apple\norange\n'|awpie'print(line) if line != "orange" else print("banana")'apple
bananaLocal variablesNameDescriptionlineCurrent line.fieldsResult ofline.split(sep).sepcan be specified in arguments.dataAn empty dict, can be used to store custom values.stdoutsys.stdout.stderrsys.stderr.filenameName of the file currently being read.filenoFile descriptor for the current file.linenoCumulative line number of the line that has just been read.filelinenoLine number in the current file.isfirstlineWhether the line just read is the first line of its file or not.isstdinWhether the last line was read from sys.stdin or not.nextfileClose current file so that next iteration will be read from next file.closeClose the sequence.
Package: awpr
awprLibrary that helps an application report progress to Argo Workflows.InstallationpipinstallawprUsageSet the environment variable and run your application:ARGO_PROGRESS_FILE=/tmp/progress.txtfromawpr.awprimportArgoWorkflowsProgressReporterawpr=ArgoWorkflowsProgressReporter()awpr.set_total_progress(100)awpr.start_reporting()awpr.set_current_progress(20)awpr.set_current_progress(30)awpr.get_progress_percent()awpr.set_progress_complete()awpr.get_progress_percent()
Package: aws2-wrap2
Attention!This package is fork oflinaro-its/aws2-wrap: Simple script to export current AWS SSO credentials or run a sub-process with them.
IfImprove argument handling by bigwheel · Pull Request #13 · linaro-its/aws2-wrapis merged,
this package will be disposed.aws2-wrap2This is a simple script to facilitate exporting the current AWS SSO credentials or runing a command with them. Please note that it is calledaws2-wrap2to show that it works with AWS CLI v2, even though the CLI tool is no longer calledaws2.Install usingpiphttps://pypi.org/project/aws2-wrap2pip install aws2-wrap2==2.0.1Run a command using AWS SSO credentialsaws2-wrap2 [--profile <awsprofilename>] <command>For example:aws2-wrap2 --profile MySSOProfile terraform planExport the credentialsThere may be circumstances when it is easier/better to set the appropriate environment variables so that they can be re-used by anyawscommand.Since the script cannot directly set the environment variables in the calling shell process, it is necessary to use the following syntax:eval "$(aws2-wrap2 [--profile <awsprofilename>] --export)"For example:eval "$(aws2-wrap2 --profile MySSOProfile --export)"
Package: aws-ac
# AWS AC: Auto Credentials```pip install aws-acaws-ac start```## InstallMust be using Python 3! For MacOS and Linux. No native Windows support.```pip install aws-ac```If Python 3 is not your default Python Environment:```python3 -m venv venvsource venv/bin/activatepip install aws-ac```## Commands### aws-ac start [OPTIONS]```Options:--user TEXT    AWS Username--token TEXT   MFA Token--serial TEXT  MFA Serial```### aws-ac install [OPTIONS]This installs the [aws-cli](https://aws.amazon.com/documentation/cli/) and [ecs-cli](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_CLI.html) tools.Supplying the `--upgrade` flag will update or reinstall the cli's to their newest verisons.```Options:--upgrade--cli TEXT  CLI```### aws-ac configure [OPTIONS]This prompts the user to configure the aws and ecs profiles. By providing the argument CLI with 'aws' or 'ecs' it can configure only one.```Options:--user TEXT  AWS Username--cli TEXT   CLI```### aws-ac mfa [OPTIONS] TOKENThis prompts the user to obtain their mfa_serial key and if it has already been added creates a aws profile with a valid session token.```Options:--serial TEXT  MFA Serial```
Package: aws-access
Module overviewThis module integrates with DUO MFA to get temporary access for aws
##Installation and execution
To install this package, please run the below command on your console.pip install aws-accessThis will install the package along with all its dependencies.
Once installed, execute the package using the below commandpython -m aws_access_util.get_aws_access --awsurl <url> --u <user> --dur <duration> --p <password> --prf <profile> --r <role_arn>

url: This is the url of the AWS account
user: The userid to connect to the URL
password: The password to connect to the URL
dur: The duration in seconds for which access is required. Deafult is 1 hour
prf:AWS profile. Default is saml
r:Role ARN to assume the role if account is mapped with multiple roles.If it is not provided, then program will print the list of roles to choose if it is mapped with multiple rolesIf none of the parameters are given, the utility will prompt for the value
of the parameters except for duration(--dur),profile(--prf) and role_arn(--r). It will take default duration of 1 hour for dur and saml for profile##Help informationTo find out how to use the utility, you can execute the below commandpython -m aws_access_util.get_aws_access --help

usage: get_aws_access.py [-h] [--awsurl URL] [--u USER] [--p PASSWORD]
                         [--dur DURATION_SECONDS] [--prf PROFILE] [--r ROLE_ARN]

Retrieves and stores a temporary token which is used to access AWS resource

optional arguments:
  -h, --help            show this help message and exit
  --awsurl URL          Specify a valid aws url
  --u USER              Specify your userid
  --p PASSWORD          Specify your password
  --dur DURATION_SECONDS
                        Specify duration in seconds for which you need
                        access.Must be > 900 and less than 43200. Default is 1
                        hour or 3600 secs.
  --prf profile			Specify profile name for aws credentials config, default will be saml
  --r role_arn			Specify Role ARN to select the specific role if it is mapped with multiple roles##AuthorsRajib Deb-Initial Work-CiscoMounika Gorintla-Cisco
Package: aws_access_advisor
OverviewGenerate IAM actions list from AWS Access Advisor reports.PrerequisitesPython >= 3.6aws-authenticator (https://pypi.org/project/aws-authenticator/) >= 2022.10.1.0Required ArgumentsAWS entity ARN (role, user, etc. to use for report generation)AWS authentication method (profile, iam, or sso)Conditional ArgumentsIf authenticating with named profiles:AWSCLI profile nameIf authenticating with IAM acccess key credentials:AWS access key idAWS secret access keyIf authenticating with SSO:AWS account IDAWS SSO Permission Set (role) nameAWS SSO login URLUsageInstallation:pip3installaws-access-advisor# orpython3-mpipinstallaws-access-advisorIn Python3 authenticating with named profiles:importaws_access_advisorasaccessreport=access.get_report("<entity_arn>","profile",profile_name="<profile_name>",)print(f'Job status:{report["JobStatus"]}after{report["processing_time"]}second(s).')print("\n".join(access.parse(report)))In Python3 authenticating with IAM access key credentials:importaws_access_advisorasaccessreport=access.get_report("<entity_arn>","iam"access_key_id="<access_key_id>",secret_access_key="<secret_access_key>",)print(f'Job status:{report["JobStatus"]}after{report["processing_time"]}second(s).')print("\n".join(access.parse(report)))In Python3 authenticating with SSO:importaws_access_advisorasaccessreport=access.get_report("<entity_arn>","sso"sso_url="<sso_url>",sso_role_name="<sso_role_name>",sso_account_id="<sso_account_id>",)print(f'Job status:{report["JobStatus"]}after{report["processing_time"]}second(s).')print("\n".join(access.parse(report)))In BASH authenticating with named profiles:python[/path/to/]aws_access_advisor\-e<entity_arn>\-mprofile\-p<profile_name>In BASH authenticating with IAM access key credentials:python[/path/to/]aws_access_advisor\-e<entity_arn>\-miam\-k<access_key_id>\-s<secret_access_key>In BASH authenticating with SSO:python[/path/to/]aws_access_advisor\-e<entity_arn>\-msso\-a<sso_account_id>\-r<sso_role_name>\-u<sso_url>
Package: aws-access-analyzer-validator
aws-access-analyzer-validatorA tool to validate existing identity and resource policies across regions
and supported AWS services with AWS IAM Access Analyzer.This tooldiscovers resource and identity policies attached to resources of supported
AWS services (see below) in all commercial regionsvalidates these policies with AWS IAM Access AnalyzerValidatePolicyAPIgenerates a report with Access Analyzer findingsSeeexamples/sample_report.mdfor an example.UsageInstall from PyPI (Python 3.8+ required):pip install aws-access-analyzer-validatorExecute the tool:aws-access-analyzer-validator -o report.mdOpenreport.mdto see analysis results.Argumentsaws-access-analyzer-validatorsupports the following arguments:--regions- A comma separated list of regions to limit policy
validation to. For example,--regions eu-west-1,eu-north-1limits
validation to policies ineu-west-1andeu-north-1regions. Global
resources (IAM, S3) are scanned regardless of region limitations.Supported Services / Resourcesaws-access-analyzer-validatorvalidates policies from the following
services:AWS Identity and Access Management (IAM)Inline policies of IAM usersInline policies of IAM groupsInline policies and trust policy of IAM rolesManaged IAM Policies (customer managed)Amazon S3 bucket policiesAmazon SQS queue policiesAmazon SNS topic policiesAmazon Elastic Container Registry (ECR) repository policiesRequired PermissionsThis tool requires the following permissions to operate:accessanalyzer:ValidatePolicyecr:DescribeRepositoriesecr:GetRepositoryPolicyiam:GetAccountAuthorizationDetailss3:GetBucketPolicys3:ListAllMyBucketssns:GetTopicAttributessns:ListTopicssqs:GetQueueAttributessqs:ListQueuesHere's an IAM policy that grants the required privileges:{"Version":"2012-10-17","Statement":[{"Sid":"PermissionsForAAValidator","Effect":"Allow","Action":["access-analyzer:ValidatePolicy","ecr:DescribeRepositories","ecr:GetRepositoryPolicy","iam:GetAccountAuthorizationDetails","s3:GetBucketPolicy","s3:ListAllMyBuckets","sns:GetTopicAttributes","sns:ListTopics","sqs:GetQueueAttributes","sqs:ListQueues"],"Resource":"*"}]}DevelopmentRequires Python 3.8+ and Poetry. Useful commands:# Setup environmentpoetryinstall# Run integration tests (requires admin-level AWS credentials)maketest# Run lintersmake-klint# Format codemakeformat# Deploy test resources (requires AWS CLI and admin level AWS credentials)makedeploy-test-resources# Delete test resourcesmakedelete-test-resourcesCreditsInspired byz0ph/aa-policy-validator.LicenseMIT.
Package: aws-acl-helper
This module implements the Squid External ACL Helper interface, and
allows for use of EC2 instance metadata in ACL entries. It uses the
client’s source address (either public or private) as a key to determine
which instance initiated a request through the proxy, and allows use of
instance metadata (such as Instance ID, VPC, or Security Group
membership) as a rule target.If the request can be mapped to an EC2 instance, the module will
populate the EC2 Instance ID into the request’s ‘user’ field, for
consumption by additional ACLs or output to logs. This occurs regardless
of whether or not the ACL matched.PrerequisitesThis module requires Python 3.4 or better, due to its use of theasyncioframework (aioredis, etc)This module requires a Redis server to cache AWS instance metadata.
Redis clusters are not currently supported; use of a local Redis
instance is recommended.This module uses Boto3 to retrieve EC2 instance metadata from AWS. You
should have a working AWS API environment (~/.aws/credentials,
environment variables, or EC2 IAM Role) that allows calling EC2’sdescribe-instancesmethod against the account that Squid is running
in.ConsultREADME.md on GitHubfor usage instructions.
Package: aws-ad
aws-adThis project provides command line tool - aws-ad to simplify process of logging into AWS account with Windows AD credentialsIt is inspired by basically identical tool aws-adfs. I wrote it mainly out of curioucity how to do it by myself, and was to lazy to check, why orginal tool
randomly refused to work under bambooSample workflowCreate config file:~/.aws/auth. It will be used byaws-adto connect to ADFS site and to login. Here is sample content:[profile-name]
     username=login@your-domain.com
     # password=your-password - this is OPTIONAL
     adfs-host=sts.your-domain.com
     provider-id=urn:amazon:your-company-provider-id
     role-arn=arn:aws:iam::1234567890:role/ADFS_ROLE_FOR_TASK

     # session duration can be increased to 24 hours (720 minutes)
     session-duration-minutes=60

     # OPTIONAL variables that change behaviour of profile :
     # assume-role=arn:aws:iam::1234567890:role/role-to-assume-into-after-gettin-in
     # assume-profile=name-of-the-new-profileRunaws-adwith following options:aws-ad --profile profile-nameKeep in mind thatprofile-namemust be the same as in config file above
You may be prompted for password (to yourlogin@your-domain.comin Active Directory).aws-admodifies file~/.aws/credentials. It saves AWS keys there in profile section (profile-nameagain).You can now run AWS CLI commands now. Remember to set AWS Region and AWS Profile, like this:export AWS_DEFAULT_PROFILE=profile-name
 export AWS_DEFAULT_REGION=eu-central-1
 aws s3 ls
Package: aws_adfs_auth
# aws-adfs-auth
aws-adfs-auth is a small utility to authenticate against a SAML provider with AWS.
It will authenticate against the federation provider and then get a temporary aws token.# Installation
To install the software just run`bash sudo pip3 install aws_adfs_auth `# Configuration
To configure, just call`bash aws_adfs_auth--configure`The config file is located int ~/.aws/adfs_auth.ini
Please refer to the help section if you have multiple accounts on AWS# Contributing
This tool is open source, so feel free to contribute on github:https://github.com/jschwellach/aws-adfs-authPlease submit pull requests and I’ll update the code to PyPi repository.# Compiling
For compiling clone the repositoryhttps://github.com/jschwellach/aws-adfs-author fork it and then execute the following in a python 3 environment`bash python setup.py install `
Package: aws-adfs-login
aws_adfs_loginPython 3.6+ library to enable ADFS auth against AWSUsageimportaws_adfs_loginroles=aws_adfs_login.authenticate('https://adfs-server/adfs/ls/idpinitiatedsignon.aspx?loginToRp=urn:amazon:webservices')forroleinroles:credentials=role.get_credentials()key_id,secret,session_token,expiry=credentials
Package: aws-alert
Welcome to your CDK Python project!This is a blank project for Python development with CDK.Thecdk.jsonfile tells the CDK Toolkit how to execute your app.This project is set up like a standard Python project.  The initialization
process also creates a virtualenv within this project, stored under the .env
directory.  To create the virtualenv it assumes that there is apython3(orpythonfor Windows) executable in your path with access to thevenvpackage. If for any reason the automatic creation of the virtualenv fails,
you can create the virtualenv manually.To manually create a virtualenv on MacOS and Linux:$ python3 -m venv .envAfter the init process completes and the virtualenv is created, you can use the following
step to activate your virtualenv.$ source .env/bin/activateIf you are a Windows platform, you would activate the virtualenv like this:% .env\Scripts\activate.batOnce the virtualenv is activated, you can install the required dependencies.$ pip install -r requirements.txtAt this point you can now synthesize the CloudFormation template for this code.$ cdk synthTo add additional dependencies, for example other CDK libraries, just add
them to yoursetup.pyfile and rerun thepip install -r requirements.txtcommand.Useful commandscdk lslist all stacks in the appcdk synthemits the synthesized CloudFormation templatecdk deploydeploy this stack to your default AWS account/regioncdk diffcompare deployed stack with current statecdk docsopen CDK documentationEnjoy!
Package: aws-amicleaner
Cleanup your old unused ami and related snapshotsDescriptionThis tool enables you to clean your customAmazon Machine Images (AMI)and
relatedEBS Snapshots.You can either run infetch and cleanmode where the tool will
retrieve all your privateAMIsand EC2 instances, exclude AMIs being
holded by your EC2 instances (it can be useful if you use autoscaling,
and so on …). It applies a filter based on theirnamesortagsand a number ofprevious AMIsyou want to keep. You can also check and
delete EBS snapshots left orphaned by manual deletion of AMIs.It can simply remove AMIs with a list of provided ids.Prerequisitesawsclipython 2.7 or 3+python pipThis tool assumes your AWS credentials are in your environment, either with AWS
credentials variables :exportAWS_DEFAULT_REGION='your region'exportAWS_ACCESS_KEY_ID='with token Access ID'exportAWS_SECRET_ACCESS_KEY='with token AWS Secret'or withawscli:exportAWS_PROFILE=profile-nameMinimum AWS IAM permissionsTo run the script properly, yourawsuser must have at least these
permissions iniam:{"Version":"2012-10-17","Statement":[{"Sid":"Stmt1458638250000","Effect":"Allow","Action":["ec2:DeleteSnapshot","ec2:DeregisterImage","ec2:DescribeImages","ec2:DescribeInstances","ec2:DescribeSnapshots","autoscaling:DescribeAutoScalingGroups","autoscaling:DescribeLaunchConfigurations"],"Resource":["*"]}]}Installationamicleaner is available on pypi and can be installed on your system with pipFrom pypi[sudo]pipinstallaws-amicleanerFrom sourceYou can also clone or download from github the source and install with pipcdaws-amicleaner/pipinstall[--user]-e.UsageGetting helpamicleaner--helpFetch and cleanPrint report of groups and amis to be cleanedamicleaner--full-reportKeep previous number of AMIsamicleaner--full-report--keep-previous10Regroup by name or tagsamicleaner--mapping-keytags--mapping-valuesroleenvExclude amis based on tag valuesamicleaner--mapping-keytags--mapping-valuesroleenv-excluded-mapping-valuesprodSkip confirmation, can be useful for automationamicleaner-f--keep-previous2Activate orphan snapshots checkingamicleaner--check-orphansDelete a list of AMIsamicleaner--from-idsami-abcdef01ami-abcdef02See thisblog articlefor more information.History0.1.0 (2016-08-22)First release on PyPI.0.1.1 (2016-08-22)Documentation updaterst files in pip package
Package: aws-amplify.cdk.exported-backend
Amplify CLI cdk-exported-backendThis CDK construct is used to include the CloudFormation resources generated byAmplify CLI Export command. The construct handles assets and CloudFormation files. It offers abstractions over the Amplify CLI generated cloud resources.The library is published under the followingLanguageRepositoryTypescript/Javascript@aws-amplify/cdk-exported-backendPythonaws-amplify.cdk.exported-backendJavacom.amplifyframework:exported-backendUsageInstall via NPM:npmi@aws-amplify/cdk-exported-backend@latestAdd to your CDK app:import{AmplifyExportedBackend}from'@aws-amplify/cdk-exported-backend';...constamplifyExport=newAmplifyExportedBackend(app,'AmplifyExportedBackend',{path:'./amplify-export-myAmplifyApp',amplifyEnvironment:'dev',});Construct PropsThe construct props extendstack propsand can be used to override the root stack properties.NameTypeDescriptionRequiredDefaultpathStringYou can use the absolute or the relative path to the location of the folder. When using relative paths it's important to note that the path is relative to the root of your CDK applicationYesundefinedstageStringThis works similar to Amplify CLI's environment names. The construct makes modification to be able to integrate into the CDK app.YesundefinedDeploy this to your accountcdkdeployContributingWe welcome community contributions and pull requests.SecuritySeeCONTRIBUTINGfor more information.LicenseThis project is licensed under the Apache-2.0 License.
Package: awsapicli
A cli tool exposing capabilities of awsapilib like control tower account creation, account renaming and email updating, account termination and more.Documentation:https://awsapicli.readthedocs.org/en/latestProject FeaturesCreates an account through Control Tower. Supports nested OU by specifying a parent hierarchy up to 5 levels. It can create the OUs specified automatically if they don’t exist with the usage of the force flagRequests password reset to activate the root accountResets the password of the root, activating the account providing the reset url from the request step.Activate IAM access to the billing console with the usage of the root passwordCan update the name and the email of the accountCan activate and deactivate virtual MFA devices.History0.0.1 (24-12-2021)First code creation0.1.0 (29-12-2021)Initial release0.1.1 (29-12-2021)Disabled Iterm solver since the rendering does not work with the rich framework.0.1.2 (29-12-2021)Linted code.0.1.3 (29-12-2021)Bumped dependencies for a fix on account creation.0.1.4 (30-12-2021)Bumped dependencies and fixed typo.0.1.5 (26-04-2022)Updated dependencies.0.1.6 (06-05-2022)Fixed IAM login workflow in dependency.