Metadata-Version: 2.1
Name: simple_aws_rds
Version: 0.5.1
Summary: Pythonic AWS RDS boto3 API, for human.
Home-page: https://github.com/MacHu-GWU/simple_aws_rds-project
Download-URL: https://pypi.python.org/pypi/simple_aws_rds/0.5.1#downloads
Author: Sanhe Hu
Author-email: husanhe@gmail.com
Maintainer: Unknown
License: MIT
Platform: Windows
Platform: MacOS
Platform: Unix
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: MacOS
Classifier: Operating System :: Unix
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.7
License-File: LICENSE.txt
License-File: AUTHORS.rst
Requires-Dist: func_args<2.0.0,>=0.1.1
Requires-Dist: iterproxy<2.0.0,>=0.2.1
Provides-Extra: tests
Requires-Dist: pytest; extra == "tests"
Requires-Dist: pytest-cov; extra == "tests"
Requires-Dist: moto<5.0.0,>=4.2.14; extra == "tests"
Requires-Dist: rich; extra == "tests"
Requires-Dist: boto_session_manager<2.0.0,>=1.3.1; extra == "tests"
Provides-Extra: docs
Requires-Dist: Sphinx==5.3.0; extra == "docs"
Requires-Dist: sphinx-jinja==2.0.2; extra == "docs"
Requires-Dist: sphinx-copybutton==0.5.1; extra == "docs"
Requires-Dist: sphinx-design==0.5.0; extra == "docs"
Requires-Dist: furo==2023.03.27; extra == "docs"
Requires-Dist: nbsphinx==0.8.12; extra == "docs"
Requires-Dist: rstobj==1.2.1; extra == "docs"
Requires-Dist: pygments==2.15.1; extra == "docs"
Requires-Dist: ipython==8.10.0; extra == "docs"
Requires-Dist: docfly==2.0.3; extra == "docs"
Requires-Dist: boto3; extra == "docs"


.. image:: https://readthedocs.org/projects/simple-aws-rds/badge/?version=latest
    :target: https://simple-aws-rds.readthedocs.io/index.html
    :alt: Documentation Status

.. image:: https://github.com/MacHu-GWU/simple_aws_rds-project/workflows/CI/badge.svg
    :target: https://github.com/MacHu-GWU/simple_aws_rds-project/actions?query=workflow:CI

.. image:: https://codecov.io/gh/MacHu-GWU/simple_aws_rds-project/branch/main/graph/badge.svg
    :target: https://codecov.io/gh/MacHu-GWU/simple_aws_rds-project

.. image:: https://img.shields.io/pypi/v/simple_aws_rds.svg
    :target: https://pypi.python.org/pypi/simple_aws_rds

.. image:: https://img.shields.io/pypi/l/simple_aws_rds.svg
    :target: https://pypi.python.org/pypi/simple_aws_rds

.. image:: https://img.shields.io/pypi/pyversions/simple_aws_rds.svg
    :target: https://pypi.python.org/pypi/simple_aws_rds

.. image:: https://img.shields.io/badge/Release_History!--None.svg?style=social
    :target: https://github.com/MacHu-GWU/simple_aws_rds-project/blob/main/release-history.rst

.. image:: https://img.shields.io/badge/STAR_Me_on_GitHub!--None.svg?style=social
    :target: https://github.com/MacHu-GWU/simple_aws_rds-project

------

.. image:: https://img.shields.io/badge/Link-Document-blue.svg
    :target: https://simple-aws-rds.readthedocs.io/en/latest/

.. image:: https://img.shields.io/badge/Link-API-blue.svg
    :target: https://simple-aws-rds.readthedocs.io/en/latest/py-modindex.html

.. image:: https://img.shields.io/badge/Link-Source_Code-blue.svg
    :target: https://simple-aws-rds.readthedocs.io/en/latest/py-modindex.html

.. image:: https://img.shields.io/badge/Link-Install-blue.svg
    :target: `install`_

.. image:: https://img.shields.io/badge/Link-GitHub-blue.svg
    :target: https://github.com/MacHu-GWU/simple_aws_rds-project

.. image:: https://img.shields.io/badge/Link-Submit_Issue-blue.svg
    :target: https://github.com/MacHu-GWU/simple_aws_rds-project/issues

.. image:: https://img.shields.io/badge/Link-Request_Feature-blue.svg
    :target: https://github.com/MacHu-GWU/simple_aws_rds-project/issues

.. image:: https://img.shields.io/badge/Link-Download-blue.svg
    :target: https://pypi.org/pypi/simple_aws_rds#files


Welcome to ``simple_aws_rds`` Documentation
==============================================================================
.. image:: https://simple-aws-rds.readthedocs.io/en/latest/_static/simple_aws_rds-logo.png
    :target: https://simple-aws-rds.readthedocs.io/en/latest/

Pythonic AWS RDS boto3 API, for human.

Usage:

.. code-block:: python

    from simple_aws_rds.api import RDSDBInstance, RDSDBSnapshot
    from boto_session_manager import BotoSesManager

    bsm = BotoSesManager()

    # get db instance by id
    db_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 instance
    db_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())


.. _install:

Install
------------------------------------------------------------------------------

``simple_aws_rds`` is released on PyPI, so all you need is:

.. code-block:: console

    $ pip install simple_aws_rds

To upgrade to latest version:

.. code-block:: console

    $ pip install --upgrade simple_aws_rds
