Saravanan666/pypi-org huggingface dataset:
Package: iam-credential-rotation
iam-credential-rotationCommand line tool for automated rotation of AWS IAM machine-user credentials, following a CURRENT/LAST two-key pattern.Rotating credentials usually means deleting the existing credentials and then generating new ones. But what happens if you delete an existing set of credentials while there is a current automated job or pipeline running?When the machine account has two sets of credentials, with the most recent set being the credentials available in the secrets store (which is where automated jobs fetch credentials when they start). You can confidently delete the older of the two credentials, generate new credentials, and update the secrets store with the new, with no fear of causing any system failure. Both the new credentials and the prior credentials used by any jobs still in flight will remain valid until the next rotation. By setting a rotation window at 1/2 (or less) the desired time period then both keys are replaced within the period. Additionaldiscussion.Installpipinstalliam-credential-rotationUsageUsage: iam-credential-rotation [OPTIONS] PATH

  For machine account AWS IAM Users on PATH, perform credential rotation using
  CURRENT/LAST two-key pattern. Outputs list of updated users/credentials for
  processing and storage in secure location.

Options:
  -o, --outfile TEXT  Write results to TEXT file
  --version           Show the version and exit.
  --help              Show this message and exit.For example:If machine users are stored on the pathusers/PSKServiceAccounts/then the following will rotate each of the IAM Users on that path.Note that the actual output does not obfuscate the credential information. In normal use, a pipeline or other automated job that performs this rotation would parse the output and write the new credentials into a Secrets store.$ iam-credential-rotation PSKServiceAccounts
{
  "PSKNonprodServiceAccount": {
    "AccessKeyId": "AKIARKL**************",
    "SecretAccessKey": "bCFqIBZUo****************************"
  },
  "PSKProdServiceAccount": {
    "AccessKeyId": "AKIARKLI**************",
    "SecretAccessKey": "cVSkOhunYxS****************************"
  }
}DevelopmentThe pipeline usesrequirements.txtbut there is also a Pipfile if you prefer pipenv for local development.Pipenv setupecho '3.11.3' > .python-version    # using pyenv for version selection
pipenv --python 3.11               # pipenv creates the virtual env  
pipenv shell  
pipenv install --devFor the build pipeline, the packages build dependencies are also maintained in arequirements.txtfile since (currently) the generic python build environment already exists on the build executor.Run unit testsPYTHONPATH=.:./src coverage run -m pytest -vv -l  
coverage reportbuildpython -m buildinstall locally during developmentpip install --editable .** check setuptools-scm dynamic version**python -m setuptools_scm
Package: iamend-ci
iamend_ciLibreria para la estimacion de la permeabilidad relativa efectiva usando mediciones de impedancia de una bobina sobre materiales conductores ferromagneticos. Contiene submodulos para la importancion de mediciones realizadas conSolartron 1260A, grafico de impedancias y correciones de efectos no ideales en los contactos.implementacion del modelo teorico de dood,deedsiamend_ci.theo.zo()iamend_ci.theo.dzD()iamend_ci.theo.jhf()con:carga  y correccion datosimportiamend_ciascidata=ci.so.load('carpeta con mediciones')# lee las frecuencias utilizadas en el experimentof=ci.so.getf(data)# carga los parametros geometricos de la bobinabo=ci.bo.bobpp1# importa y corrige los valores de la impedanciadatacorr=ci.so.corr(f,bo,data)grafico datos# ploteo de la parte imaginaria de la impedancia corregida (parametros: x,Y,n= id medicion )ci.plt.im(f,datacorr,1)ajuste permeabilidadparametros geometricos efectivosdp=15e-3
sig=4e6
mup=1
# valor ajustado y grafico
z1eff,figz1=ci.fit.z1(f,bo,datacorr,0,dp,sig,mup)permeabilidad relativa efectivamueff,pltmu=ci.fit.mu(f,bo,datacorr,1,4e6,z1eff)densidad de corriente
Package: iam.ext.idc
Project TitleWrite a short description about the project, its use cases, and its
solutions.TLDRRunmake bashto spawn a terminal providing a configured runtime environment
to debug, test and run the package.Runmake lintto check code style and quality.Runmake testto run the tests.Runmake cleanto cleanup artifacts.Runmake runserverto start a demo/debug server.Runmake bump-(major|minor|patch|prerelease|build)to increase the major, minor,
patch, prerelease or build version respectively.InstallationBefore you beginBefore you can install theiam.ext.idcpackage, you need to ensure
that the required dependencies are provided in your operating system environment:Ensure that a supported Python version is installed (3.5, 3.6, 3.7, 3.8, 3.9).Ensure that the following command-line tools are available:awk,cp,mv,rm,sha1sum,sha256sum, andsed; available on POSIX systems.curlgitmakeInstallpipusing cURL:curlhttps://bootstrap.pypa.io/get-pip.py|/usr/bin/envpython3Install or update the required packages and libraries on your operating system:Debian/Ubuntu:apt-get install -y libffi-dev openssl-devAlpine Linux:apk add libffi-dev libressl-devFedora/Red Hat Enterprise Linux/CentOSdnf install libffi-devel openssl-develYou can skip this step if you plan to always use the package or application
inside a Docker container.Additional packages may need to be installed for specific use cases.For additional details on the configuration of your operating system environment,
refer to the technical documentation.System-wide installationRun the following command in a terminal to install theiam.ext.idcpackage:pip install iam.ext.idcUsage - Basic ExampleProvide an example of basic usage.frommypkgimportHolyHandGrenadeResourcesProvide a link to the technical documentation of this project.Provide other links that may be relevant to the reader.LicenseProprietaryAuthor informationThis Python package was created byCochise Ruhulessinfor theUnimatrix Oneproject.Send me an emailGitLabGitHubLinkedInTwitter
Package: iamfast
JavaScript•Python•Go•Java•VS Codeiamfast (Python):construction: EXPERIMENTAL - WORK IN PROGRESS :construction:IAM policy generation from application codeUsagepython3 python/main.py yourfile.pyExample% cat python/tests/test1.py
import boto3

# Create SQS client
sqs = boto3.client('sqs')

# Create a SQS queue
response = sqs.create_queue(
  QueueName='SQS_QUEUE_NAME',
  Attributes={
    'DelaySeconds': '60',
    'MessageRetentionPeriod': '86400'
  }
)

print(response['QueueUrl'])% python3 python/main.py python/tests/test1.py
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": "sqs:CreateQueue",
            "Resource": [
                "arn:aws:sqs:us-east-1:123456789012:SQS_QUEUE_NAME"
            ]
        }
    ]
}
Package: iam-floyd
IAM FloydAWSIAM policy statementgenerator with fluent interface.Support for:353 Services14236 Actions1504 Resource Types1493 Condition keysThis is an early version of the package. The API will change while I implement new features. Therefore make sure you use an exact version in yourpackage.jsonbefore it reaches 1.0.0.DocumentationFind the documentation atRead the Docs.PackagesThere are two different package variants available:iam-floyd: Can be used in AWS SDK, Boto 3 or for whatever you need an IAM policy statement forcdk-iam-floyd: Integrates intoAWS CDKand extendsiam.PolicyStatementStarting with version 0.300.0, the packages are compatible with CDK v2.For CDK v1 you can use any version up to:Find them all onlibraries.io.CDK Compatibility MatrixCDKcdk-iam-floyd<= 1.151.0<= 0.285.0>= 1.152.00.286.0>= 1.158.0No compatible version!>= 2.0.0>= 0.300.0>= 2.20.0>= 0.351.0>= 2.26.0>= 0.377.02.29.xNo compatible version!>= 2.30.0>= 0.391.0LegalThe code contained in thelib/generatedfolder is generated from theAWS documentation. The class- and function-names and their description therefore are property of AWS.AWS and their services are trademarks, registered trademarks or trade dress of AWS in the U.S. and/or other countries.This project is not affiliated, funded, or in any way associated with AWS.IAM Floyd is licensed underApache License 2.0. Dependencies might be released under different licenses. Especially the bundled packagesregex-parserandcommon-substringsare released under the MIT License.
Package: iamgif
Iamgif====A Python library to convert text to a GIF.Installation============```pip install iamgif```Example=======Things to be taken care of:1. Text to be converted to GIF2. Absolute Path of the detination. Where the file will be created3. Use Sudo while running this script, otherwise it won't be able to create the GIF file### Code```pythonfrom iamgif import iamgifiamgif.create("Hello World", '/Users/coderahul/Desktop')```### Output```Creates a GIF by the name animation.gif in the same directory where the script is executed.```
Package: iamjjintta-pygithub
PyGitHubSimple GitHub API with PythonInstructionsfromiamjjinta.githubimportGitHubusername='Your GitHub Username'password='Your GitHub Password'# GitHub Logingithub=GitHub(username,password)login=github.login()print(login.status_code)# Get Repository Contentowner='iamjjintta-python'repo='PyGitHub'branch='main'path='/git/github.py'source_code=github.get_content(owner,repo,branch,path)print(source_code)
Package: iampharaoh
I am Pharaohis scaffold create to Django users which are starting
withPyramid.Install:pip install iampharaohAfter, verify your scaffold’s:pcreate -lResult:Available scaffolds:
    alchemy:                 Pyramid SQLAlchemy project using url dispatch
    pharaohapps:             Create an 'app' in project. - Like startapp Django
    pharaohproject:          Scaffold created for Django users initiate with Pyramid more comfortably
    starter:                 Pyramid starter project
    zodb:                    Pyramid ZODB project using traversalOnlypharaohappsandpharaohprojectare created byI am
Pharaoh, others are default in PyramidHow to:After installI am Pharaoh, start a new projectpcreate -s pharaohproject nameOfProjectThe result in nameOfProeject folder is:├── LICENSE
├── MANIFEST.in
├── README
├── nameOfProject
│   ├── __init__.py
│   ├── nameOfProject
│   │   ├── __init__.py
│   │   ├── base_model.py
│   │   └── urls.py
│   ├── scripts
│   │   ├── __init__.py
│   │   ├── destroydb.py
│   │   └── initializedb.py
│   └── static
├── development.ini
├── production.ini
├── setup.cfg
└── setup.pySo, run in you project:python setup.py developThis command will download some packages, but the most significant for
Django users are:SQLAlchemy: The Python SQL Toolkit and Object Relational Mapper.Alembic: Migrations.WTForms-Alchemy: Forms and ModelForm.pyramid_jinja2: Template Engine.Create AppWhitin your project (Like Django):pcreate -s pharaohapps nameOfAppThe result in nameOfProeject folder now is:├── LICENSE
├── MANIFEST.in
├── README
├── nameOfProject
│   ├── __init__.py
│   ├── nameOfProject
│   │   ├── __init__.py
│   │   ├── base_model.py
│   │   └── urls.py
│   ├── nameOfApp -> add after run last command
│   │   ├── __init__.py
│   │   ├── models.py
│   │   ├── templates
│   │   │   └── index.html
│   │   ├── urls.py
│   │   └── views.py
│   ├── scripts
│   │   ├── __init__.py
│   │   ├── destroydb.py
│   │   └── initializedb.py
│   └── static
├── development.ini
├── production.ini
├── setup.cfg
└── setup.pyTo connect app in project:# nameOfProject/urls.py
config.include("nameOfProject.nameOfApp.urls")
Package: iampoliciesgonewild
# IAMPoliciesGoneWildThis is a python implementation of the IAM Policy Expander Minimizer.# Install:`pip install iampoliciesgonewild`# Usage:```pythonfrom iampoliciesgonewild import expand_policyfrom iampoliciesgonewild import minimize_policypolicy = {"Statement": [{"Action": ["swf:res*"],"Resource": "*","Effect": "Allow"}]}expanded_policy = expand_policy(policy=policy)>>> Start size: 131. End size: 286print(expanded_policy == {"Statement": [{"Action": ["swf:respondactivitytaskcanceled","swf:respondactivitytaskcompleted","swf:respondactivitytaskfailed","swf:responddecisiontaskcompleted"],"Resource": "*","Effect": "Allow"}]})>>> Trueminimized_policy = minimize_policy(policy=expanded_policy, minchars=3)>>> Skipping prefix r because length of 1>>> Skipping prefix re because length of 2>>> Skipping prefix r because length of 1>>> Skipping prefix re because length of 2>>> Skipping prefix r because length of 1>>> Skipping prefix re because length of 2>>> Skipping prefix r because length of 1>>> Skipping prefix re because length of 2>>> Start size: 286. End size: 131print(minimized_policy == policy)>>> True```
Package: iamprayut
PyPi:https://pypi.org/project/iamprayut/Hello this is package information about Prayut Chan-O-Chaวิธีติดตั้งเปิด CMD / Terminalpipinstalliamprayutวิธีใช้งานแพ็คเพจนี้เปิด IDLE ขึ้นมาแล้วพิมพ์…```python from iamprayut import Prayutmayor = Prayut() #Class mayor.show_name() #show name mayor.show_page()
#show facebook page mayor.about() #show about him mayor.show_art() #show
ascii art
Package: iam-profile-faker
iam-profile-fakerJSON generator based on IAM profile v2 schemaFree software: Apache Software License 2.0Documentation:https://iam-profile-faker.readthedocs.io.FeaturesCreate fake profile v2 objectsBatch create fake profile v2 objectsCLI to export profile v2 objects in JSON.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.3.0 (2018-07-19)Fix factory to wrap values with metadata/signatureFix value/values key name in various attributesAdd E2E to tests to validate objects against profile v2Expose a service that generates fake profiles as HTTP API0.2.0 (2018-07-13)Add factory to generate fake iam profilesAdd cli to generate fake iam profiles0.1.0 (2018-07-10)Bootstrap repository
Package: iam-python-sdk
IAM Python SDKAccelByte IAM Python SDK is a software development kit to help python developers build their own services/apps
that makes use of AccelByte User Account Management services [https://accelbyte.io/user-account-management/].Free software:Apache Software License 2.0Documentation:https://accelbyte.github.io/iam-python-sdkFeaturesClient token grant and validationSync and async clientValidate access token live on IAM service and local using JWKsGet role and validate permissionValidate scope, role and audienceVerify ban, phone and email user statusBackground refresh token, jwks and revocation listFlask and FastAPI framework support with CSRF protection and CORS optionsChangelog1.3.3 (2022-08-04)Fixing cookie token issueRefactor getting access token functionFixing CORS handler1.3.2 (2022-06-30)Fixing multiple namespace_role permission validationDisable default verify aud by pyjwtReformat logging1.3.1 (2022-06-14)Code cleaning1.3.0 (2022-06-10)Add option for allowing referer header validation with subdomain1.2.3 (2022-06-06)Fixing memory leak issue.1.2.2 (2022-04-18)Fixing null revoked users issue.1.2.1 (2022-04-13)Change default IAM strict referer validation to false.1.2.0 (2022-04-11)Standardize error response.1.1.0 (2022-03-28)Add asyncio client support.Add FastAPI frameworks support.1.0.0 (2021-11-25)Add bloom filter support for token revocation.0.12.0 (2021-11-19)Add Flask CSRF support.Add Flask CORS options.0.10.1 (2021-11-10)Fixing Flask support extra requirements.0.10.0 (2021-11-05)Add backgroud refresh token, jwks and revocation list.Add Flask framework support.0.8.0 (2021-10-22)Add has ban, email and phone verification status.0.7.0 (2021-10-17)Add get client information, validate scope, role and audience.0.5.0 (2021-10-12)Add start local validation and validate parse and claims.0.3.0 (2021-10-05)Add get role and validate permission.0.1.0 (2021-09-09)Add client token grant & validate access token.
Package: iamra
IamraIAM Roles Anywhere credentials helper.Iamra (ahy-em-rah) is a helper library to abstract and make obtaining temporary AWS IAM credentials easy through usingAWS Identity and Access Management Roles Anywhere. Once configured in the cloud, Iamra sessions can be created, and then when credentials are needed, a single call will update the AWS credentials, that can be directly used viaboto3 session or client.FeaturesSingle object per session, allowing for different scoped credentialsRSA and EC certificate / private key supportCertificate chain support for X.509 certificated signed by an intermediate Certificate AuthorityCached credentials within the expiration time to reduce unneeded calls to IAM Roles Anywhere, but can be force-refreshed as neededRequirementsPython 3.9 or later supportCreation of a trust anchor and profilein the cloudValid X.509 certificate, private key, and optionally a certificate chain fileInstallationYou can installIamraviapipfromPyPI:$pipinstalliamraUsageBasic usage with local private key and X.509 certificate:>>>importiamra>>># Create a session object>>>iamra_session=iamra.Credentials(region="us-east-1",certificate_filename="client.pem",private_key_filename="client.key",duration=3600,profile_arn="arn:aws:rolesanywhere:us-west-2:1234567890:profile/3d203fc0-7bba-4ec1-a6ef-697504ce1c72",role_arn="arn:aws:iam::1234567890:role/IamRoleWithPermissionsToUse",session_name="my_client_test_session",trust_anchor_arn="arn:aws:rolesanywhere:us-west-2:1234567890:trust-anchor/29efd0b1-1b66-4df4-8ae7-e935716efd8e",)>>># Invoke getting credentials from Roles Anywhere>>>iamra_session.get_credentials()>>># Directly access credentials>>>iamra_session.access_key_id'ASIA5FLYQEXXXXXXZ27N'>>>iamra_session.secret_access_key'HhAViXXXXqIZrq/qENC4ahPqssXXXX9DEfx3mTv'>>>iamra_session.session_token'IQoJb3JpZ2luX2VjEMf//////////wEaCXVzLXdlc3QtMiJ...fARzrFrr0VEpiqFY42NWjFdFUhdLkPiuhsLoTYH+OnaGl92OxAho3j0='DocumentationHereis the documentation that covers additional usage and module reference.ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theMIT license,Iamrais free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was generated from@cjolowicz'sHypermodern Python Cookiecuttertemplate.
Package: iam-rolesanywhere-session
IAM Roles Anywhere SessionThis package provides an easy way to create arefreshableboto3 Session withAWS Roles Anywhere.This package implements the algorithm described here:https://docs.aws.amazon.com/rolesanywhere/latest/userguide/authentication-sign-process.html.RequirementsPython 3.8 or laterCreation and configuration of a trust anchor. SeedocumentationValid X.509 certificate, private key, and optionally a certificate chain file associated with your trust anchorInstallFrom PyPipipinstalliam-rolesanywhere-sessionFrom sourcegitclonehttps://github.com/awslabs/iam-roles-anywhere-session.gitcdiam-roles-anywhere-session
python3-mpipinstall./ConfigurationFor this package to work you will need to have at your disposal yourcertificateandprivate_keyfile in a PEM format.IAMRoleAnywhereSession will take multiple arguments:NameDescriptionTypeDefault valueprofile_arnThe Amazon Resource Name (ARN) of the profile.stringNonerole_arnThe Amazon Resource Name (ARN) of the role to assume.stringNonetrust_anchor_arnThe Amazon Resource Name (ARN) of the trust anchor.stringNonecertificateThe x509 certificate file, in PEM format.path or bytesNoneprivate_keyThe certificate private key file, in PEM Format.path or bytesNonepassphraseThe passphrase use to decrypt private key file.stringNoneregionThe name of the region where you configured IAM Roles Anywhere.stringus-east-1session_durationThe duration, in seconds, of the role session. The value specified can  range from 900 seconds (15 minutes) up to 3600 seconds (1 hour).int3600service_nameAn identifier for the service, used to build the botosession.stringrolesanywhereendpointRoles Anywhere API endpoint to usestring'{service_name}.{region_name}.amazonaws.com'proxiesProxy endpoint(s) for use behind private networks with a proxy.dict{}proxies_configA dictionary of additional proxy configurations.dict{}fromiam_rolesanywhere_sessionimportIAMRolesAnywhereSessionroles_anywhere_session=IAMRolesAnywhereSession(profile_arn="arn:aws:rolesanywhere:eu-central-1:************:profile/a6294488-77cf-4d4a-8c5c-40b96690bbf0",role_arn="arn:aws:iam::************:role/IAMRolesAnywhere-01",trust_anchor_arn="arn:aws:rolesanywhere:eu-central-1::************::trust-anchor/4579702c-9abb-47c2-88b2-c734e0b29539",certificate='certificate.pem',private_key='privkey.pem',region="eu-central-1").get_session()s3=roles_anywhere_session.client("s3")print(s3.list_buckets())DocumentationYou can findherethe complete documentation with additional usage and module reference.ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theApache 2
Package: iams
Agent-management system designed for industrial applications.
This repository represents a scalable solution for orchestration and deployment of industrial agents.
It follows the hybrid integration patterns for industrial agents and concists of a server part and client libraries that are used to develop clients.IAMS ServerThe server needs docker swarm available (on premise) and orchestrates mircoservice applications (the agents) in the cluster.
It used docker images, which can be globally distributed by vendors, to deploy a service managing every machine on the shop floor.
Furthermore, it provides provisioning capabilities, allowing the agents to consume cloud-wide services, like log aggregation or databases.
The agents can request the provisioning via docker labels attached to the image.
The IAMS server will generate neccecary configurations and credentials and provide the agents with the access.The IAMS server runs with a mandatory certificate authority (CFSSL), which is used to provide every agent with its own client certificate.
All internal cloud communication can be encrypted automatically, and agents could use a access control lists (ACLs) to verify requests.
The idea is to use a graph database (arango-db) to store relationships between agents and use them as ACLs, however an example configuration and implementation is not yet provided.IAMS ClientsClients use gRPC for their internal communications. gRPC has some advantages in comparision to OPC-UA - it uses TLS, which ensures smaller response times for persistent connections (after the handshake), and it supports Server Name Indication (SNI) which enables the usage of 3rd party proxy servers (nginx, envoy) to securely expose the service to external applications.As gRPC is used, the client programming language can be specified by the developing team. However, this project only focusses on python as a programming language and provides only for this lanuage a client implementation and libraries that help developing clients.Typically an agents connects via a TCP-based communication (OPC-UA, HTTP, Sockets) to a machine and used the machine-specific communication protocol to receive staus updates from the machine.
The status updates are processed by the agent, which then updates it’s connected agents with it’s changed state.
In addition to agents, that are connected to a physical devices, coordination agents can be used to aggregate and group agents.Example implementations can be found in theexamplesfolder of this repositoryContributionsFeel free to contribute to this repository.Use theMakefile(make build) to generate a docker image. The build process includes basic software tests.Help and SupportUse github tickes for support.