Saravanan666/pypi-org huggingface dataset:
Package: simple-amqp
Simple AMQPA simple AMQP lib for PythonInstallation# Asynciopipinstallsimple-amqp[asyncio]# Geventpipinstallsimple-amqp[gevent]Example usage# Asynciofromasyncioimportget_event_loop,sleepfromsimple_amqpimportAmqpMsg,AmqpParametersfromsimple_amqp.asyncioimportAsyncioAmqpConnectionconn=AsyncioAmqpConnection(AmqpParameters(host='localhost'))channel=conn.channel()exchange=channel.exchange('exchange.name','topic',durable=True)asyncdefmsg_received(msg:AmqpMsg):ifmsg.payload==b'ok':returnTrue# ack msgreturnFalse# nack msgchannel\.queue('queue.name',durable=True)\.bind(exchange,'topic.name')\.consume(msg_received)asyncdefmain():awaitconn.start()awaitchannel.publish(AmqpMsg(exchange='exchange.name',topic='topic.name',payload=b'ok',))awaitsleep(1)awaitconn.stop()loop=get_event_loop()loop.run_until_complete(main)# Geventfromgeventimportmonkeymonkey.patch_all()fromtimeimportsleepfromsimple_amqpimportAmqpMsg,AmqpParametersfromsimple_amqp.geventimportGeventAmqpConnectionconn=GeventAmqpConnection(AmqpParameters(host='localhost'))channel=conn.channel()exchange=channel.exchange('exchange.name','topic',durable=True)defmsg_received(msg:AmqpMsg):ifmsg.payload==b'ok':returnTrue# ack msgreturnFalse# nack msgchannel\.queue('queue.name',durable=True)\.bind(exchange,'topic.name')\.consume(msg_received)conn.start()channel.publish(AmqpMsg(exchange='exchange.name',topic='topic.name',payload=b'ok',))sleep(1)conn.stop()
Package: simpleanalytics
Simple Analytics for DjangoWant privacy friendly analytics for Django? You're at the right place.You need an accounton Simple Analyticsto see your stats collected by this plugin.Installing itInstall the plugin:pip install django-simpleanalyticsUsing itAdd the package to theINSTALLED_APPS:INSTALLED_APPS=[...,simpleanalytics,]Next use thetemplatetagin your template:<!DOCTYPE html>
{% load staticfiles simpleanalytics_tags %}
<html>
	<head>
		<meta charset="utf-8">
		<title>{% block page_title %}{{ site.name }}{% endblock %}</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    ...
    {% simpleanalytics_sync %}
    ...
    </head>
    <body>
      {% simpleanalytics_noscript_block %}
    </body>
</html>This will translate to roughly this:<!DOCTYPE html>

<html>
	<head>
		<meta charset="utf-8">
		<title>brwnppr.com</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    ...
    <script type="text/javascript" src="https://cdn.simpleanalytics.io/hello.js"></script>
    ...
    </head>
    <body>
      <noscript><img src="https://api.simpleanalytics.io/hello.gif" alt="hello"></noscript>
    </body>
</html>MoreThis app has four templatetags:simpleanalytics_syncsimpleanalytics_asyncsimpleanalytics_noscript_blocksimpleanalytics_noscript_imgsimpleanalytics_syncconverts to a plain<script>tag without theasynckeyword.simpleanalytics_asyncconverts to a plain<script>tag with theasynckeyword.simpleanalytics_noscript_blockconverts to an<noscript>block which
includes animgelement which is used to load the image. Use this when you
don't have and don't need a<noscript>block on your page at all.simpleanalytics_noscript_imgconverts to an<img>tag which src points to
the hello.img. Use this when you're using a<noscript>block and you want to
add privacy friendly stats to your page.CompatibilityTested on Django 2.2, but we think you should be able to run on any recent
Django deployment. Please file an issue when it doesn't.
Package: simpleANSI
simpleANSIThis is a simple wrapper library for ANSI escape codes.GitHub:https://github.com/AwesomeCronk/simpleANSIPyPI:https://pypi.org/project/simpleANSI/0.1.0/Installationpip install simpleANSIFunctionalityThis is the directory of the package. Functions are denoted asfunction(args). Constants are denoted asconstant = value. Anything with a listing under it is a module. All functions under submodules return a string containing the proper escape codes. This string must be printed withprint(<function>(*args), end = '')to achieve the desired effect. The only function that does not behave like this issimpleANSI.conhostEnableANSI(). This function is required on windows to enable ANSI escapes in a conhost terminal (the default terminal).simpleANSI
|-conhostEnableANSI()
|-clear
| |-screen()
| |-screenToEnd()
| |-screenToBeg()
| |-entireScree()
| |-line()
| |-lineToEnd()
| |-lineToBeg()
| `-entireLine()
|-cursor
| |-home()
| |-moveTo(line, column)
| |-moveUpBy(lines)
| |-moveDownBy(lines)
| |-moveRightBy(columns)
| |-moveLeftBy(columns)
| |-moveBegNext(lines)
| |-moveBegPrev(lines)
| |-moveToCol(column)
| |-savePos()
| `-restorePos()
`-graphics
  |-normal = 0
  |-bold = 1
  |-underline = 4
  |-blink = 5
  |-invert = 7
  |-invisible = 8
  |-fgBlack = 30
  |-fgRed = 31
  |-fgGreen = 32
  |-fgYellow = 33
  |-fgBlue = 34
  |-fgMagenta = 35
  |-fgCyan = 36
  |-fgWhite = 37
  |-fgColor = 38
  |-bgBlack = 40
  |-bgRed = 41
  |-bgGreen = 42
  |-bgYellow = 43
  |-bgBlue = 44
  |-bgMagenta = 45
  |-bgCyan = 46
  |-bgWhite = 47
  |-bgColor = 48
  |-mode8Bit = 5
  |-mode16Bit = 2
  `-setGraphicsMode(*args)Resources:https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797#https://bluesock.org/~willkg/dev/ansi.html
Package: simple-ansible-api
simple_ansilbe_apiHow to installpipinstallsimple-ansible-apiad-hocfromsimple_ansible_api.apiimportAnsiBleApifromsimple_ansible_api.taskimportTaskcli=AnsiBleApi(hosts_list=["192.168.0.108","192.168.0.109"])t1=Task(cli,name="t1",register="root_dir")t1.shell(cmd="ls /root",)cli.ansible(hosts="192.168.0.107",name="test ad-hoc task")playbookfromsimple_ansible_api.apiimportAnsiBleApicli=AnsiBleApi(hosts_list="/etc/ansible/hosts")cli.ansible_playbook(playbooks=["test.yaml"])
Package: simple-api-management-wsgi
Simple API Management Python WSGI based Frameworks MiddlewareInstallation$pipinstallsimple-api-management-wsgiUsagedefidentifier(environ,app):returnenviron['REMOTE_ADDR']simple_api_management_options={'KEY':'add your key here','IDENTIFIER':identifier#optional}app.wsgi_app=SimpleAPIManagementMiddleware(app.wsgi_app,simple_api_management_options)
Package: simple-arn
simple-arnA simple AWS ARN parsing and serialization package.Supports python 3.7+ or 3.6 with the dataclasses backport.MotivationOther AWS ARN parsing libraries provide parsing functionality but
lack the ability to serialize the parsed ARN back into a string.Sometimes it is necessary to swap parts of arn strings in the case of
resource migration automation and this package provides a simple way to do this:fromsimple_arnimportAwsArnarn=AwsArn.parse("arn:aws:iam::123456789012:user/MyUserName")\.clone(resource="MyOtherUserName")print(str(arn))# prints: arn:aws:iam::123456789012:user/MyOtherUserNameInstallationinstall from PyPI:pip install simple-arnUsageThis package provides the functionality to parse AWS ARNs into a dataclassAwsArnandAwsArnobjects can be serialized back into arn strings by simply calling the
object's__str__method.AwsArnobjects expose aclonemethod allowing for copies ofAwsArnobjects
with modified attributes.Example:fromsimple_arnimportAwsArnarn=AwsArn.parse("arn:aws:iam::123456789012:user/MyUserName")print(str(arn))# prints: arn:aws:iam::123456789012:user/MyUserName# clone the arn with a different resourcearn2=arn.clone(resource="MyOtherUserName")print(str(arn2))# prints: arn:aws:iam::123456789012:user/MyOtherUserName
Package: simple-article
simple-articleis a Django application which provides a simple Article model. That model could be a good start for simple blog or news, without the needs for installation much of other 3rd party packages.InstallationYou can install simple-article from PyPI:pip install simple-articleOr from GitHub:pip install https://github.com/zniper/simple-article/zipball/masterConfigurationInside settings module, putarticleand related applications intoINSTALLED_APPS:INSTALLED_APPS = (
    ...
    'tinymce',
    'taggit',
    'article',
)Include article URLs inside application urls.py file:urlpatterns = patterns(
   ...
    url(r'^blog/', include('article.urls')),
    ...
)Then, update the database.With Django 1.9 or newer:python manage.py migrate articleWith Django 1.8.x or older:python manage.py syncdbor using South:python manage.py migrate articleUsageInside templates, there is an assignment tag namedrecent_articleswhich returns limited number of newest articles:{% load article_tags %}Short call, with maximum 10 newest articles returned:{% recent_articles as other_articles %}Customized call, with exclusion of given article:{% recent_articles limit=5 exclude=article.pk as other_articles %}
Package: simple-asgi
# Simple ASGI HTTP 1.1 server implementationThis framework was inspired by [hypercorn](https://pgjones.gitlab.io/hypercorn/index.html) framework.## How to install```bashpip install simple-asgi```## Example```pythonimport osimport socketfrom simple_asgi import appfrom simple_asgi import responsefrom simple_asgi import routerasync def hello(request):request_body = await request.datareturn response.Response(body=request_body)sock_path = "/tmp/fn.sock"sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)try:os.remove(sock_path)finally:sock.bind("/tmp/fn.sock")rtr = router.Router()rtr.add("/call", ["POST"], hello)http_app = app.SimpleASGI(name=__name__, router=rtr)http_app.run(sock=sock)```
Package: simple-assertions
simple-assertionsAssertion library (skeleton) inspired fromassertpybut without batteries! also allows to convert all the assertions to warnings, just like delayed asserts.Motivationassertpyis beautiful library but for my needs it's too much, i really loved the API ofassertpyso i created new module because of following reasonsplease checktests/test_*.pyfor use cases.I wantedassert_warnto be dynamic, i.e. given certain condition all assertions are converted to
warning.I addedASSERT_ERROR_AS_WARNINGvariable which can do that!Modifiedassert_thatAPI to make is call based withassert_that(.., as_warn=True)Extending is possible but i wanted more intuitive logicI exposed theSimpleAssertionsclass, and just inherit it to add new methodassert_thatinassertpycreates new instance of class and loads all the extensions on every
call, and i wanted to avoid that!By exposing theSimpleAssertionclass, you can just make it part of your assertion classNote: earlier i usedassert_thatkeyword fromassertpybut i felt like it's copying from other library
, so i changedassert_thattocheck, while reading this gives same amount of experience but saved 6 chars!Installationpip install simple-assertionsUsagePlease checktestsfiles for more usage here is only basic usageAs FunctionJust import thecheckfunction, and away you go...fromsimple_assertionsimportcheckdeftest_something():check(4+10).is_equal_to(14)check(1).is_instance_of(int)check(3,"lucky_num",as_warn=True).is_equal_to(4)As instancefromsimple_assertionsimportSimpleAssertionsclassYourTestClass:def__init__(self):self.check=SimpleAssertions().checkdeftest_something(self):self.check(4+10).is_equal_to(14)self.check(1).is_instance_of(int)self.check(3,"lucky_num",as_warn=True).is_equal_to(4)Add your own batteriesfromsimple_assertionsimportSimpleAssertionsfromtypingimportUnionclassYourAssertions(SimpleAssertions):def__init__(self,as_warn=False,logger=None):super().__init__(as_warn,logger)defis_greater_than(self,other:Union[int,float]):ifself.val_to_chk.val<other:self.raise_err(self.compare_err_msg(other,"to be greater than"))returnselfclassYourTestClass:def__init__(self):self.check=YourAssertions().checkdeftest_something(self):self.check(4+10).is_greater_than(10).is_equal_to(14)self.check(1).is_instance_of(int)self.check(3,"lucky_num",as_warn=True).is_equal_to(4)Though only checked withunittestsbut it should work fine withpytestorNose.
Package: simple-async-command-manager
Simple Async Command ManagerDescriptionThis project consists of a simple command manager and asyncio command queue handler with wraps for subprocesses and synchronous commands.The command queue and the commands are designed to be modular for easy profiling and monitoring.The project is structured around the aspect of event-based programming where the event handlers initiate commands.UsageExample usage is documented in the provided examples.ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Package: simple-async-task
Async TaskA simple library for managing asynchrony; inspired byMicrosoft's Task Class.Motivationasync_task provides an equally accessible syntax to theasyncandawaitkeywords, but with simpler usage semantics, particularly when calling asynchronous code from within synchronous code.UsageImport theAsyncclass fromasync_tasksand use as a wrapper for callable objects to execute them asynchronously, or
apply as a decorator to permanently transform a function or method into an Async object.Invoke Async instances as any other callable. The return of the call will be anAsync.Workerinstance. Workers have awaitmethod and aresultproperty; when either of these are called, the caller will synchronize with the background worker,
blocking until completion or timeout.e.g.:fromasync_taskimportAsync@Asyncdeffunc():return0worker=func()worker.wait(1)assertworker.result==0# it is not necessary to call wait() prior to accessing result, however, it is not possible to provide a timeout with# result.fromasync_taskimportAsyncdeffunc():return0async_obj=Async(func)worker=async_obj()assertfunc()==worker.resultfromasync_taskimportAsyncclassCls:def__init__(self,attr):self.attr=attr@Asyncdeffunc(self):returnself.attrassertCls(0).func().result==0
Package: simpleatlassian
python-simpleatlassianThe most simple, and most powerful Atlassian (JIRA) Python APIInstallationpip install simpleatlassianUsagefromsimpleatlassianimportJIRA# Make a connection with basic authj=JIRA('https://myjirahost.com/jira/rest/',username='myuser',password='mypw')# Search some issues (get_all collects all pages of a result)issues=j.get_all('api/2/search',params={'jql':'issuetype = Bug'},resultfield='issues')# Get a board configurationj.get('agile/1.0/board/1/configuration')Don't forget to check out Atlassian's official documentation:https://docs.atlassian.com/jira-software/REST/latest/DevelopmentUpload to pipMake sure that the version number has been updatedGenerate dist filespython setup.py sdist bdist_wheelUpload to PyPItwine upload dist/*
Package: simpleatm
simpleatmLightweight Python package for calculating the atmospheric transmissionOverviewsimpleatmis a Python package which calculates (sub)millimeter atmospheric transmission as a function of precipitable water vapor (PWV) and frequency.
The package includes pre-calculated transmission datasets at various observation sites by theATM model(Pardo et al. 2001).
Moreover, since a dataset is loaded as thexarray's DataArray format, interpolation, plotting, and saving features are provided by default.
Therefore,simpleatmwould be useful in fast and approximate sensitivity calculation of a telescope instrument.RequirementsPython:3.6, 3.7, or 3.8 (tested by the authors)Dependencies:Seepyproject.tomlInstallation$pipinstallsimpleatmUsageTo be updated after the release ofv0.2.0.For developers$gitclonehttps://github.com/deshima-dev/simpleatm.git
$cdsimpleatm
$scripts/setupReferencesATM model: pre-calculated table was obtained herexarray: N-D labeled arrays and datasets in Python
Package: simpleaudio
The simplaudio package provides cross-platform, dependency-free audio playback
capability for Python 3 on OSX, Windows, and Linux.MIT Licensed.Documentation at RTFDInstallationInstallation (make sure thepipcommand is the right one for
your platform and Python version):pip install simpleaudioSee documentation for additional installation information.Quick Function Checkimportsimpleaudio.functionchecksasfcfc.LeftRightCheck.run()See documentation for more on function checks.Simple Exampleimportsimpleaudioassawave_obj=sa.WaveObject.from_wave_file("path/to/file.wav")play_obj=wave_obj.play()play_obj.wait_done()SupportFor usage and how-to questions, first checkout the tutorial in the
documentation. If you’re still stuck, post a question onStackOverflowandtag it ‘pysimpleaudio’.For bug reports, please create anissue on Github.Big Thanks To …Jonas KalderstamChristophe GohlkeTom ChristieMany others for their contributions, documentation, examples, and more.
Package: simpleaudiocontroller
Simple Audio ControllerThe Simple Audio Controller is a Python module that provides a simple interface for interacting with audio devices and controlling audio settings using the PulseAudio command-line tool 'pacmd'.FeaturesList available headphones and microphones.Set default audio devices (headphones and microphones).Retrieve information about the current default devices.Search for audio devices by name.RequirementsPython 3.xPulseAudio (pacmd command-line tool)InstallationYou can install the Simple Audio Controller using pip:pipinstallsimpleaudiocontrollerUsageHere's how you can use the Simple Audio Controller in your Python code:fromsimpleaudiocontrollerimportAudioController# Create an instance of the AudioControlleraudio_controller=AudioController()# List available headphones and microphonesheadphones=audio_controller.get_headphones()microphones=audio_controller.get_microphones()# Set the default headphone deviceifaudio_controller.set_default_device(headphones[0]):print("Default headphone set successfully.")# Set the default microphone deviceifaudio_controller.set_default_device(microphones[0]):print("Default microphone set successfully.")LicenseThis project is licensed under the MIT License. See theLICENSEfile for details.
Package: simpleaws
![Zen Bezos](http://i.imgur.com/6mdNXPl.png)simpleawsAn idiot-proof way to make a public AWS based service.# InstallationInstall it.`bash pip install simpleaws `Copy settings_template.py to settings.py and enter your keys.Use your Amazon Web Services console to enable S3, CloudFront and Glacier has needed.Run test_simpleaws.py.`bash python test_simplaws.py `# UsageConnect to S3!`python simpleaws.set_keys(settings.AWS_ACCESS_KEY, settings.AWS_SECRET_ACCESS_KEY) simpleaws.connect() `Create a bucket!`python simpleaws.create_bucket(bucketname) `Create a user!`python simpleaws.create_user(username) `Move a bucket to CloudFront!`python simpleaws.move_bucket_to_cloudfront(bucketname) `Backup a bucket!`python simpleaws.backup_bucket(bucketname) `Vanquish your foes!`python simpleaws.vanquish_foes(vanquish) `Just kidding.
Package: simple-aws-ec2
Welcome tosimple_aws_ec2DocumentationSimple AWS EC2 dev tool.Requires Python3.7+Usage:importboto3fromsimple_aws_ec2.apiimportEc2Instance,Imageec2_client=boto3.client("ec2")# get ec2 by idec2_inst=Ec2Instance.from_id(ec2_client,"i-1a2b3c")# get ec2 by running code from inside of ec2ec2_inst=EC2Instance.from_ec2_inside(ec2_client)# get ec2 by it's name, it returns a iter proxy that may have multiple ec2ec2_inst=EC2Instance.from_ec2_name(ec2_client,"my-server").one_or_none()# get ec2 by tag key value pair, it returns a iter proxy that may have multiple ec2ec2_inst=EC2Instance.from_tag_key_value(ec2_client,key="Env",value="prod").one_or_none()ec2_inst=EC2Instance.query(ec2_client,filters=...,instnace_ids=...).all()print(ec2_inst.id)print(ec2_inst.status)print(ec2_inst.public_ip)print(ec2_inst.private_ip)print(ec2_inst.vpc_id)print(ec2_inst.subnet_id)print(ec2_inst.security_groups)print(ec2_inst.image_id)print(ec2_inst.instance_type)print(ec2_inst.key_name)print(ec2_inst.tags)print(ec2_inst.data)print(ec2_inst.is_running()print(ec2_inst.is_stopped()print(ec2_inst.is_pending())print(ec2_inst.is_shutting_down()print(ec2_inst.is_stopping()print(ec2_inst.is_terminated()print(ec2_inst.is_ready_to_start()print(ec2_inst.is_ready_to_stop()# the following methods has to be called on a running ec2 instance# it use the EC2 metadata api# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.htmlprint(EC2Instance.get_ami_id())print(EC2Instance.get_instance_id())print(EC2Instance.get_instance_type())print(EC2Instance.get_local_hostname())print(EC2Instance.get_local_ipv4())print(EC2Instance.get_public_hostname())print(EC2Instance.get_public_ipv4())print(EC2Instance.get_security_groups()# AMI Image APIimage=Image.from_id(ec2_client,"ami-1a2b3c")image=Image.from_ec2_inside(ec2_client)image_list=Image.query(ec2_client).all()image_list=Image.query(ec2_client,owners=["self"]).all()print(image.image_type_is_machine())print(image.image_type_is_kernel())print(image.image_type_is_ramdisk())print(image.is_pending())print(image.is_available())print(image.is_invalid())print(image.is_deregistered())print(image.is_transient())print(image.is_failed())print(image.is_error())print(image.image_root_device_type_is_ebs())print(image.image_root_device_type_is_instance_store())print(image.image_virtualization_type_is_hvm())print(image.image_virtualization_type_is_paravirtual())print(image.image_boot_mode_is_legacy_bios())print(image.image_boot_mode_is_uefi())print(image.image_boot_mode_is_uefi_preferred())image=Image.from_image_name(ec2_client,"my-image").all()image_list=Image.from_tag_key_value(ec2_client,key="Env",value="dev").all()Installsimple_aws_ec2is released on PyPI, so all you need is:$pipinstallsimple_aws_ec2To upgrade to latest version:$pipinstall--upgradesimple_aws_ec2
Package: simple-aws-lambda-maker
This is a super simple tool for creating/modifying multiple lambda functions.It was built for the purpose of deploying our Alexa skills across multiple
regions in the same account.InstallationJust use pip:$ pip install simple-aws-lambda-makerThen create asalm.ymlwith something like:---function_defaults:filepath:"{config_root}/lambda_function.py"runtime:"python2.7"role:"arn:aws:iam::1234567890:role/lambda_basic_execution"timeout:8handler:"lambda_function.lambda_handler"functions:prod:-name:testregion:us-east-1description:"Testfunction"env:ONE:"1"TWO:"2"tags:three:"four"-name:test2region:us-east-1description:"Testfunction2"env:ONE:"3"TWO:"4"tags:three:"four"staging:-name:test3region:us-east-1description:"Testfunction2"env:ONE:"5"TWO:"6"tags:three:"four"Here we are creating three functions, called test, test2 and test3.They are all put intous-east-1and have different values for theONEandTWOenvironment variables.All of them also have the options in thefunction_defaultsblock, which
includes a reference to a file relative to this file called./lambda_function.pyFor example:importosdeflambda_handler(event,context):return"{0}-{1}".format(os.environ["ONE"],os.environ["TWO"])We can then determine if anything will be created or changed by going into that
directory and saying:$ salm deploy staging --dry-runAnd then to actually apply those changes:$ salm deploy stagingAnd to do the prod group, do asalm deploy prodChangelog0.3.0 - 3 March 2020Updated dependenciesFormatted and linted code0.2.0 - 23 January 2019Started using ruamel.yaml instead of PyYaml to load configuration0.1.10 - 5 November 2018Update requests for CVE-2018-18074Pre 0.1.10No changelog kept
Package: simple-aws-rds
Welcome tosimple_aws_rdsDocumentationUsage:fromsimple_aws_rdsimportRDSDBInstancefromboto_session_managerimportBotoSesManagerbsm=BotoSesManager()# get db instance by iddb_inst=RDSDBInstance.from_id(bsm,"my-db-identifier")# get db instance by tag key value pair, it returns a iter proxy that may have multiple db instancedb_inst=RDSDBInstance.from_tag_key_value(bsm,key="Env",value="prod").one_or_none()db_inst=RDSDBInstance.query(bsm,filters=...,db_instance_identifier=...).all()print(db_inst.id)print(db_inst.status)print(db_inst.instance_class)print(db_inst.instance_create_time)print(db_inst.engine)print(db_inst.engine_version)print(db_inst.endpoint)print(db_inst.port)print(db_inst.hosted_zone_id)print(db_inst.vpc_id)print(db_inst.subnet_ids)print(db_inst.security_groups)print(db_inst.availability_zone)print(db_inst.publicly_accessible)print(db_inst.tags)print(db_inst.data)print(db_inst.is_available())print(db_inst.is_stopped())print(db_inst.is_ready_to_start())print(db_inst.is_ready_to_stop())Installsimple_aws_rdsis released on PyPI, so all you need is:$pipinstallsimple_aws_rdsTo upgrade to latest version:$pipinstall--upgradesimple_aws_rds