Saravanan666/pypi-org huggingface dataset:
Package: ecs_files_composer
What does it do?ECS Files Composer, although can be used in EKS and other Docker context, is a small program that will allow users
to define files they need pulled out of AWS Services, such as AWS S3 or AWS SSM Parameter Store, and load the content
to a given location, adding builtin capabilities to set file ownership, mode, and other handy features.The configuration of the job to perform can be written in YAML or JSON (see examples), so long as they comply to a given
schema.Why use it?Having your core application, when reliant on configuration files, can be tricky to start in a way that the configuration
needs to be pulled first and then started. This can add un-necessary complexity and logic to the application.
And some docker images you might pull off the shelves from DockerHub do not necessarily allow for configuration override
from environment variables.By using a sidecar that handles all of that logic, you delegate all of these activities to it. And with the ability to define
which container to start first with success criteria, you also ensure that your application won’t start without the configuration
files it needs.HintThis app / docker image can be used in any context, locally, on-premise, with Docker, on AWS ECS / EKS or in other cloud platforms.How to use it ?Full official documentationDockerdockerrunpublic.ecr.aws/compose-x/ecs-files-composer:${VERSION:-latest}-hdockerrun-v$PWD://var/tmp,:/public.ecr.aws/compose-x/ecs-files-composer:${VERSION:-latest}-ffiles.yamlAttention!The default user is root to avoid running into issues when using chmod/chown and other commands.
Change behaviour at your own risks.CLIusage:ecs_files_composer[-h][-fFILE_PATH|-eENV_VAR|--from-ssmSSM_CONFIG|--from-s3S3_CONFIG][--role-arnROLE_ARN][_...]optionalarguments:-h,--helpshowthishelpmessageandexit-fFILE_PATH,--from-fileFILE_PATHConfigurationforexecutionfromafile-eENV_VAR,--from-env-varENV_VARConfigurationforexecutionisinanenvironmentvariable--from-ssmSSM_CONFIGConfigurationforexecutionisinanSSMParameter--from-s3S3_CONFIGConfigurationforexecutionisinanS3--role-arnROLE_ARNTheRoleARNtousefortheconfigurationinitialization
Package: ecs-girvel
ECS micro-engineLibrary for python containing an interpretation of ECS design pattern.FeaturesAdding/removing entity's attributes causes dynamic addition/removal of the entity from the corresponding systemsSystems with annotation-based syntaxAsynchronous systems (yield skips a frame)Systems accept multiple arguments, preventing global mutable state issuesFull compatibility with type hintsInterpretationEntity is a python objectComponent is entity's attributeSystem is an entity describing an interaction between cartesian product of entitiesMetasystem is a system that launches other systemsMetasystemFacade encapsulates all general logic (add, remove, update)Installationpipinstallecs-girvelUsageYou can also seegirvel/fallen, ecs is written for it.fromecsimportMetasystemFacade,System,Entity# TODO NEXT fix demoimporttime# 1. You create a metasystemms=MetasystemFacade()dt=0.04# 2. You create systems and add them to metasystemclassVerticalSpeed:vy:floatclassGravityConstants:g:float@ms.add@Systemdefgravity(target:VerticalSpeed,constants:GravityConstants):target.vy+=constants.g*dtclassInert:x:floaty:floatvx:floatvy:float@ms.add@Systemdefinertia(target:Inert):target.x+=target.vx*dttarget.y+=target.vy*dtclassDisplayable:x:floaty:floatname:str@ms.add@Systemdefoutput(target:Displayable):yield fromrange(int(1/dt)-1)# skips 24 out of 25 framesprint(f'{target.name}:{target.x:.2f},{target.y:.2f}')# 3. You create objectsclassDynamicEntity(Entity):def__init__(self,**attributes):forkey,valueinattributes.items():setattr(self,key,value)ms.add(DynamicEntity(name='falling_guy1',x=0,y=0,vx=0,vy=0))ms.add(DynamicEntity(name='falling_guy2',x=100,y=0,vx=0,vy=0))ms.add(DynamicEntity(g=10))# 4. Game loopif__name__=="__main__":whileTrue:ms.update()time.sleep(dt)
Package: ecsjobs
Documentation:http://ecsjobs.readthedocs.io/en/latest/Builds:https://app.travis-ci.com/github/jantman/ecsjobsA scheduled job wrapper for ECS, focused on email reporting and adding docker exec and local command abilities.This is a very, very esoteric project with a really niche use case.I’ve migrated my very small personal AWS infrastructure to a single t2.micro ECS instance. I’m also trying to migrate some of
my personal stuff from my desktop computer to that instance. I need a way to run scheduled tasks and report on their success
or failure, and maybe some output (I have a cron wrapper script that does this on my desktop). But my AWS spend is about $15/month
and I don’t want to go over that just because of a bunch of CloudWatch alarms. Also, sometimes the scheduled things I want
to run are reallydocker execinto existing task containers.This is a Python project (distributed as an ECS-ready Docker image) that aims to handle running scheduled things
and then sending an email report on their success or failure. The main shortcomings this intends to address are
the lack of simple built-in failure monitoring for Scheduled ECS Tasks, the lack of a built-in way to execute a
command in a running (ECS Service) container, and the lack of useful email reports.The generated email reports look like (this one forexampleconfig.yml):
Package: ecs-logging
ecs-logging-pythonCheck out theElastic Common Schema (ECS) referencefor more information.The library currently implements ECS 1.6.Installation$python-mpipinstallecs-loggingDocumentationSee theECS Logging Python referenceon elastic.co to get started.Elastic APM Log Correlationecs-logging-pythonsupports automatically collectingECS tracing fieldsfrom theElastic APM Python agentin order tocorrelate logs to spans, transactions and tracesin Elastic APM.LicenseApache-2.0
Package: ecsmgmt-cli
ecsmgmt-cliSmall CLI tool for interacting with the ECS Management API. ECS is Dell EMC's Object Storage (S3) Solution.usageconfig fileWarning: It's not recommended to store your credentials in an plaintext file. If you decide nevertheless to do so, please be sure to limit the access to the config file, for example withchmod 600 $configfilepath.The config file is expected to be in the common config directories for the following platforms:unix:~/.config/ecsmgmt-cli/config.ymlmacOS:~/Library/Application Support/ecsmgmt-cli/config.ymlWindows:C:\Users\<user>\AppData\Local\ecsmgmt-cli\config.yml
Package: ecs-mon
Installationpipinstallecs-monUsageecs-mon--svcmy-service--clusterlinux--alb--profilemyAWSprofileUsing esc-mon with watchwatch-n10ecs-mon--svcmy-service--clusterlinux--alb--profilemyAWSprofileThe above command will rerun ecs-mon command every 10 seconds.Installing Watch Command on MacOSbrewinstallwatchMore information about Watch command:http://manpages.ubuntu.com/manpages/bionic/man1/watch.1.htmlPublishing Updates to PyPiFor the maintainer - to publish an updated version of ssm-search,
increment the version number in version.py and run the following:dockerbuild-f./Dockerfile.buildenv-tecs-mon:build.dockerrun--rm-it--entrypointmakeecs-mon:buildpublishAt the prompts, enter the username and password to the pypi.org repo.How to buildmakebuildLicenseMIT LicensePermission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
“Software”), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: ecs-pipeline-deploy
An opinionated deployment application for ECS services.On execution ecs-pipeline-deploy will examine the current task definition in
the cluster for the current service.If the tags are different it will:Modify the existing task definition replacing the image in the task definitionUpdate the service to use the new task definitionOptionally wait for the new tag to be up and running and all other task
definitions for the service to stop.If the tags are the same it will optionally redeploy the service if--redeploywas specified;oroptionally copy the task definition to a new one and deploy as if the tags were different with the—forceargument;orexit in error if the image tags match and neither--redeploynor--forcewas specified.Usageusage: ecs-pipeline-deploy [-h] [-f] [-r] [-w] [-o] [-d DELAY] [-v] [-V]
                           [CLUSTER] [SERVICE] [IMAGE]

Opinionated ECS deployment made easy

positional arguments:
  CLUSTER               The ECS cluster name to deploy in (default: None)
  SERVICE               The ECS Service name to deploy (default: None)
  IMAGE                 The Docker image (with tag) to deploy for finding the
                        task definition (default: None)

optional arguments:
  -h, --help            show this help message and exit
  -f, --force           Create a new task definition for the image even if one
                        already exists for the tagged version (default: False)
  -r, --redeploy        Force a redeployment if the tagged images match
                        (default: False)
  -w, --wait            Wait for running tasks to be replaced (default: False)
  -o, --only-new        If waiting, wait for only newly deployed tasks to be
                        running (default: False)
  -d DELAY, --delay DELAY
                        Seconds to delay before checking tasks while waiting
                        on a deployment to finish (default: 5)
  -v, --verbose
  -V, --version         show program's version number and exit
Package: ecspy
ECsPy (Evolutionary Computations in Python) is a free, open source framework for
creating evolutionary computations in Python. Additionally, ECsPy
provides an easy-to-use canonical genetic algorithm (GA), evolution
strategy (ES), estimation of distribution algorithm (EDA), differential
evolution algorithm (DEA), and particle swarm optimizer (PSO) for users
who don’t need much customization.RequirementsRequires at least Python 2.6 (not compatible with Python 3+).Numpy and Matplotlib are required if the line plot observer is used.Parallel Python (pp) is required if parallel_evaluation_pp is used.LicenseThis package is distributed under the GNU General Public License
version 3.0 (GPLv3). This license can be found online athttp://www.opensource.org/licenses/gpl-3.0.html.Package StructureECsPy consists of the following modules:analysis.py – provides tools for analyzing the results of an ECarchivers.py – defines useful archiving methods, particularly for EMO algorithmsbenchmarks.py – defines several single- and multi-objective benchmark optimization problemsec.py – provides the basic framework for an EvolutionaryComputation and specific ECsemo.py – provides the Pareto class for multiobjective optimization along with specific EMOs (e.g. NSGA-II)evaluators.py – defines useful evaluation schemes, such as parallel evaluationmigrators.py – defines a few built-in migrators, including migration via network and migration among concurrent processesobservers.py – defines a few built-in observers, including screen, file, and plotting observersreplacers.py – defines standard replacement schemes such as generational and steady-state replacementselectors.py – defines standard selectors (e.g., tournament)swarm.py – provides a basic particle swarm optimizerterminators.py – defines standard terminators (e.g., exceeding a maximum number of generations)topologies.py – defines standard topologies for particle swarmsvariators.py – defines standard variators (crossover and mutation schemes such as n-point crossover)ResourcesHomepage:http://ecspy.googlecode.comEmail:aaron.lee.garrett@gmail.com
Package: ecspylibs
ECSpylibsPackage files-rw-r--r--. 1 tom tom 2568 Feb  2 13:57 src/ecspylibs/buildfunctionlist.py
-rw-r--r--. 1 tom tom 8390 Feb  2 13:57 src/ecspylibs/checkservice.py
-rw-r--r--. 1 tom tom 3090 Feb  2 13:57 src/ecspylibs/cleanuptempdirs.py
-rw-r--r--. 1 tom tom 6123 Mar 16 17:03 src/ecspylibs/configfile.py
-rw-r--r--. 1 tom tom  465 Jan 26 11:05 src/ecspylibs/__init__.py
-rw-r--r--. 1 tom tom 3678 Feb  2 13:57 src/ecspylibs/initsetup.py
-rw-r--r--. 1 tom tom 1676 Feb  8 12:50 src/ecspylibs/parallel.py
-rw-r--r--. 1 tom tom 4965 Feb  2 13:57 src/ecspylibs/parseemail.py
-rw-r--r--. 1 tom tom 3644 Feb  2 13:57 src/ecspylibs/parsexml.py
-rw-r--r--. 1 tom tom 3650 Feb  2 13:57 src/ecspylibs/password.py
-rw-r--r--. 1 tom tom 1879 Feb  2 13:57 src/ecspylibs/reapchildren.py
-rw-r--r--. 1 tom tom 2993 Feb  2 13:57 src/ecspylibs/sendemail.pyGit informationGIT Home,README File,LICENSE File,ChangeLog File,pyproject.toml File.About MeMy contact information.
Package: ecs-rollback
ecs-rollbackSingle command rollback for AWS ECSAWS CLI does not provide a native rollback command for ECS deployments. Hence, automating a rollback workflow requires multiple interdependent commands. This is not user-friendly, especially during production outages.ecs-rollback is tool that solves this problem by allowing users to trigger hassle-free single command rollbacksPrerequisitesecs-rollback changes the task definition of your service to the (n-1)th task definition. Hence, it is important to note that the tool is effective only when the following ECS best practices are being followed in your CI/CD system:Every new deployment should create a new task definitionEvery Docker image linked to task definitions should be tagged with aunique tag (for e.g. git commit hash)rather than thelatesttagAlthough AWS does not force users to follow the above two practices, both of them are highly recommended (https://aws.amazon.com/blogs/compute/automating-rollback-of-failed-amazon-ecs-deployments/).Installationpipinstallecs-rollbackUsageecs-rollback-csample-cluster-name-ssample-service-name-rus-east-1
Package: ecs-service-discovery
Yet another tool to perform ECS API based service discovery.
Primarily aimed at gapping the lack of integrations for ECS Anywhere.FeaturesCreates Prometheus scraping configuration, from scanning ECS clusters & services, based on docker labelsInstallationDockerHead toPublic ECRto obtain the imagedocker run --rm -it -v ~/.aws:/root/.aws public.ecr.aws/compose-x/ecs-service-discoveryPythonFor your user onlypip install pip --user ecs-service-discoveryVia virtual environmentpip install ecs-service-discoveryUsageusage: ecs-sd [-h] [-d OUTPUT_DIR] [--profile PROFILE] [-p PROMETHEUS_PORT] [--intervals INTERVALS] [--prometheus-output-format PROMETHEUS_OUTPUT_FORMAT] [_ ...]

positional arguments:
  _

options:
  -h, --help            show this help message and exit
  -d OUTPUT_DIR, --output_dir OUTPUT_DIR
  --profile PROFILE     aws profile to use. Defaults to SDK default behaviour
  -p PROMETHEUS_PORT, --prometheus-port PROMETHEUS_PORT
  --intervals INTERVALS
                        Time between ECS discovery intervals
  --prometheus-output-format PROMETHEUS_OUTPUT_FORMAT
                        Change the format of generated files. JSON or YAML.ExamplesECS Compose-XInstallecs-compose-x& deploy to AWSHintyou will need to use thex-vpcextension to deploy the service in the right VPC to get prometheus scraping.
you can use thex-clusterextension to specify the ECS Cluster you want to deploy the service to.Docker ComposeAfter cloning the repository, rundocker compose up. It will spin the service discovery, along with prometheus & grafana to run the demo with.
You can access prometheus vialocalhost:9090and grafana vialocalhost:3000(admin:admin by default).In prometheus, you can look at the configuration and service discovery. You should see the discovered targets that prometheus is going to try
to scrape.AWS Policy requirementsPolicyName:ECSServiceDiscoverySimplePolicyDocument:Version:"2012-10-17"Statement:-Effect:AllowAction:-ecs:ListClusters-ecs:ListContainerInstances-ecs:ListTasks-ecs:DescribeContainerInstances-ssm:DescribeInstanceInformation-ecs:DescribeTasks-ecs:DescribeTaskDefinitionResource:'*'
Package: ecssh
ecsshfill out~/.config/ecssh.ymltest:some_cluster_name:ssh_user:ec2-userprod:# AWS ENVIRONMENTpublic_prod:# ECS CLUSTER NAMEssh_user:ec2-userssh_key:~/.ssh/aws.peminternal_one:ssh_user:ec2-userssh_key:~/.ssh/id_ed25519
Package: ecst
ecstCreate local tunnels and sessions to AWS ECS services running in a VPC.PrerequesitesmacOS (sorry)AWS CLI Session Manager pluginInstallationInstall fromPyPI:pipinstallecstUsageusage:python-mecst[-h][--local-portLOCAL_PORT][--remote-portREMOTE_PORT][--regionREGION][--aws-profileAWS_PROFILE][--verbose]clusterservice
Package: ecs-task-run
ecs-task-runInstall$pipinstallecs-task-runCreate new revisionTo create a new release, you need to edit thesetup.pyfile, stating the number of the new version.After you merge, the travis-ci pipeline will automatically publish the new version athttps://pypi.org/project/ecs-task-run/UsingRunning tasks:$ecs-task-run--clusterYOUR_CLUSTER_NAME--taskYOUR_TASK_DEFINITION--imageYOUR_IMAGEor:$ecs-runtask--clusterYOUR_CLUSTER_NAME--taskYOUR_TASK_DEFINITION--imageYOUR_IMAGEor:$ecs-runtask-cYOUR_CLUSTER_NAME-tYOUR_TASK_DEFINITION-iYOUR_IMAGEUpdating Services:$ecs-runupdate-service--clusterYOUR_CLUSTER_NAME--taskYOUR_TASK_DEFINITION--imageYOUR_IMAGE--serviceYOUR_SERVICE_NAMEor:$ecs-runupdate-service-cYOUR_CLUSTER_NAME-tYOUR_TASK_DEFINITION-iYOUR_IMAGE-sYOUR_SERVICE_NAMERunning a deploy configTo run a list of jobs from a file.ecs-runrun-jobs--pathLOCAL_PATH_TO_CONFIGorecs-runrun-jobs-pLOCAL_PATH_TO_CONFIGExample config:[{"job_option":"task","task":"YOUR_TASK_DEFINITION","image":"YOUR_IMAGE","cluster":"YOUR_CLUSTER_NAME"},{"job_option":"update-service","task":"YOUR_TASK_DEFINITION","service":"YOUR_SERVICE_NAME","image":"YOUR_IMAGE","cluster":"YOUR_CLUSTER_NAME"}]
Package: ecs-tasks-ops
FeaturesApplication GUI to manage ECS resourcesUse your home aws credentials from ~/.aws/credentialsGet information and attributes for each task, service or instance containerConnect through SSH to container instances or docker containerShow logs for each docker containerShow ECS events for a serviceForce restart for a serviceRequirementsPython 3.10boto3clicktabulatePyQt5motouxrvtInstallationYou can installEcs Tasks OpsviapipfromPyPI:$pipinstallecs-tasks-opsConfigurationAWS AccessThis application uses your aws credentials to connect to your ECS, so you need to configure your credentials.Set up credentials (in e.g.~/.aws/credentials)[default]aws_access_key_id=YOUR_KEYaws_secret_access_key=YOUR_SECRETThen, you set up a default region (in e.g.~/.aws/config)[default]region=us-east-1You can read more about it inboto3sshoverssmIf you want to access to containers instances or docker container throughssh, you must configuratessmin your EC2 machines.
That’s becauseecs-tasks-opsuse its instance id as machine identifier onsshcommand. For example,sshi-0123456789ABCDE.
I usessh-over-ssmtool to configuresshoverssmto connect to instances.Predefined CommandsYou can set multiples predefined commands to execute on docker containers. You can set them in a configuration file calledecs-tasks-ops.json.
This file can be located on~,~/.config/ecs-tasks-ops,/etc/ecs-tasks-ops, or any directory configured in the enviromental variableECS_TASKS_OPS_CONFSample configuration{"commands":["/bin/sh","/bin/bash","mongo admin -u root -p $(pass mongo/root)"]}GUI UsageYou can open theqt5application, using the following commandecs-tasks-ops-qt5CLI UsageYou can open the command line withecs-tasks-opscommand. This is the help menu:Usage: ecs-tasks-ops [OPTIONS] COMMAND [ARGS]...

   Ecs Tasks Ops.

Options:
   -x, --debug / --no-debug
   -j, --output-json
   --version                 Show the version and exit.
   --help                    Show this message and exit.

Commands:
   clusters             Clusters information.
   container-instances  Container instances defined in a cluster.
   containers           Get docker containers defined in a cluster.
   services             Services defined in a cluster.
   tasks                Set tasks defined in a cluster.By default, the output format is in a table, but you can get originaljsonformat with-joption.
You can filter json output withjqtool:$ecs-tasks-ops-jclusters|jq"."ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theMITlicense,Ecs Tasks Opsis 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: ecstasy
Ecstasy is here to make your command-line tool beautiful and fancy.Your command-line tool’s output without ecstasy:Your command-line tool’s output with (on?) ecstasy:UsageTo use ecstasy, you mark up a standard Python string using ecstasy’s special syntax, chose some sassy styling and formatting flags, pass them on to the package-level beautify() method and, in return, get your beautified string, ready to kick ass when printed to your command-line:importecstasy# <...> is a normal phrase, its style is determined by its position# <(x)...> is a phrase with an argument, its style is the one at index 'x'# <<...> <...>> is a phrase with nested phrases, their styles cascadetext="<Cats> are <(0)just> <<small>, furry <elephants>>!"# Beautify text by specifying styles via flag combinationstext=ecstasy.beautify(text,ecstasy.Style.Blink|ecstasy.Color.Red,ecstasy.Style.Bold|ecstasy.Fill.Blue,ecstasy.Color.Magenta|ecstasy.Style.Underline,small=ecstasy.Style.Invert|ecstasy.Color.White)# Keyword arguments (small=...) cause all phrases matching the string of# the key to have the style specified by the keyword argument's value.print(text)Running this in a script from a command-line outputs:InstallationNow that you’re convinced, you can install ecstasy with pip:$ pip install ecstasy… and get crackin’.DocumentationFull documentation and usage descriptions specifying all possible options and possibilities of how you can beautify your strings withecstasycan be foundhere.CompatibilityPython VersionsBuilt with Python 3.4 and Python 2.7. Additionally successfully backported to and tested with Python 2.6, 3.2 and also 3.3. See whatTravishas to say about it.Terminal SupportWorks out of the box with your Mac’s terminal. For more information, please enjoy this table:TerminalBoldDimUnderlinedBlinkInvertHiddenColoraTerm✓X✓X✓X✓Eterm(1)X✓X✓X✓GNOME✓✓✓X✓✓✓Guake✓✓✓X✓✓✓Konsole✓X✓✓✓X✓Nautilus✓✓✓X✓✓✓rxvt✓X✓(2)✓X✓Terminator✓✓✓X✓✓✓Tilda✓X✓X✓X✓XFCE4✓✓✓X✓✓✓XTerm✓X✓✓✓✓✓xvt✓X✓X✓XXLinux TTY✓XXX✓X✓VTE✓✓✓X✓✓✓(1) Lighter colors instead of bold.(2) Lighter colors instead of blink.LicenseEcstasy is released under theMIT license.AuthorsPeter Goldsborough &cat:heart: