cloudgeass


Namecloudgeass JSON
Version 2.0.1 PyPI version JSON
download
home_pagehttps://github.com/ThiagoPanini/cloudgeass
SummaryMaking your life easier on doing simple tasks in AWS via boto3
upload_time2023-09-22 20:19:13
maintainer
docs_urlNone
authorThiago Panini
requires_python>=3.0.0
licenseMIT
keywords cloud aws python boto3
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">
    <br><img src="https://github.com/ThiagoPanini/cloudgeass/blob/v2.0.x/docs/assets/gifs/logo-animated-intro.gif?raw=true" alt="cloudgeass-animated-intro">
</div>


<div align="center">  
  <br>
  
  [![PyPI](https://img.shields.io/pypi/v/cloudgeass?color=purple)](https://pypi.org/project/cloudgeass/)
  ![PyPI - Downloads](https://img.shields.io/pypi/dm/cloudgeass?color=purple)
  ![PyPI - Status](https://img.shields.io/pypi/status/cloudgeass?color=purple)
  ![GitHub Last Commit](https://img.shields.io/github/last-commit/ThiagoPanini/cloudgeass?color=purple)
  <br>

  ![CI workflow](https://img.shields.io/github/actions/workflow/status/ThiagoPanini/cloudgeass/ci-main.yml?label=ci)
  [![Documentation Status](https://readthedocs.org/projects/cloudgeass/badge/?version=latest)](https://cloudgeass.readthedocs.io/pt/latest/?badge=latest)
  [![codecov](https://codecov.io/github/ThiagoPanini/cloudgeass/branch/main/graph/badge.svg?token=7HI1YGS4AA)](https://codecov.io/github/ThiagoPanini/cloudgeass)

</div>

> **Note**
> Now *cloudgeass* has an [official documentation page on readthedocs](https://cloudgeass.readthedocs.io/pt/latest/)! possui uma **documentaĆ§Ć£o oficial** no readthedocs! Check it out to get access to the latest features!

## Quickstart

To start using the package, just install it using [pip](https://pypi.org/project/pip/) (or any other Python dependency management of your choose) as:

```python
pip install cloudgeass
```

You may want to install *cloudgeass* in a [Python virtual environment](https://docs.python.org/3/library/venv.html) to get a good control of your project or application dependencies. If you don't know what this is about, feel free to take a look at this excellent [article from Real Python](https://realpython.com/python-virtual-environments-a-primer/).

## Modules

Getting straight to the point, each *cloudgeass* module represents an AWS service that contains at least one class and a bunch of methods built from both boto's source client and resource for that service.

In other words, some modules that you can find here are:

- `cloudgeass.aws.s3` for working with S3 service
- `cloudgeass.aws.ec2` for working with EC2 service
- `cloudgeass.aws.secrets` for working with Secrets Manager service
- *and some others*

## Classes

Each one of the aforementioned modules have at least one class that can be imported on user's application in order to provide access to all features for that given AWS service. So, we have:

- `cloudgeass.aws.s3.S3Client` class with methods to operate with S3 service
- `cloudgeass.aws.ec2.EC2Client` class with methods to operate with EC2 service
- `cloudgeass.aws.secrets.SecretsManagerClient` class with methods to operate with Secrets Manager service
- *and some others*

## Attributes

All *cloudgeass'* service classes are initialized with a set of predefined attributes to make the work easier. Those basic attributes are:

| **Service class attribute** | **Description** |
| :-- | :-- |
| `self.logger` | A preconfigured logger object to build and stream informative log messages |
| `self.client` | A boto3 client for the given service |
| `self.resource` | A boto3 resource for the given service |

The attributes can be externally accessed for all class instances created on an application. This means users can build an application using both *cloudgeass* and source boto3 code.

## Methods

Finally, each service class has its own set of methods that, in fact, enables the power of using *cloudgeass* to do simple tasks in an AWS environment. To mention some of them, we have:

- [S3Client.get_last_date_partition()](./mkdocstrings/s3.md/#cloudgeass.aws.s3.S3Client.get_last_date_partition) to get the last date partition from a table stored in S3
- [EC2Client.get_default_vpc_id()](./mkdocstrings/ec2.md/#cloudgeass.aws.ec2.EC2Client.get_default_vpc_id) to get the default VPC ID of an AWS account
- [SecretsManagerClient.get_secret_string()](./mkdocstrings/secrets.md/#cloudgeass.aws.secrets.SecretsManagerClient.get_secret_string) to get a secret string given a secret ID

___

## Contact me

- GitHub: [@ThiagoPanini](https://github.com/ThiagoPanini)
- LinkedIn: [Thiago Panini](https://www.linkedin.com/in/thiago-panini/)
- Hashnode: [panini-tech-lab](https://panini.hashnode.dev/)
- DevTo: [thiagopanini](https://dev.to/thiagopanini)


___

## References

**Python**

- [Python - Packaging Python Projects](https://packaging.python.org/en/latest/tutorials/packaging-projects/)
- [Stack Overflow - Reading Pandas DataFrame from S3](https://stackoverflow.com/questions/37703634/how-to-import-a-text-file-on-aws-s3-into-pandas-without-writing-to-disk)

**Docs**

- [NumPy docstrings](https://numpydoc.readthedocs.io/en/latest/format.html)
- [Eduardo Mendes - Live de Python 189 - MkDocs](https://www.youtube.com/watch?v=GW6nAJ1NHUQ&t=2s&ab_channel=EduardoMendes)
- [MkDocs](https://www.mkdocs.org/)
- [pmdown-extensions](https://facelessuser.github.io/pymdown-extensions/)
- [GitHub - MkDocs Themes](https://github.com/mkdocs/mkdocs/wiki/MkDocs-Themes)
- [GitHub - Material Theme for MkDocs](https://github.com/squidfunk/mkdocs-material)
- [Material for MkDocs - Setup](https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/)

**Github**

- [GitHub Actions - pypa/gh-action-pypi-publish](https://github.com/marketplace/actions/pypi-publish)
- [Medium - Major, Minor and Patch](https://medium.com/fiverr-engineering/major-minor-patch-a5298e2e1798)
- [Medium - Automate PyPI Releases with GitHub Actions](https://medium.com/@VersuS_/automate-pypi-releases-with-github-actions-4c5a9cfe947d)

**Tests**

- [Codecov - Setting Threshold](https://github.com/codecov/codecov-action/issues/554#issuecomment-1261250304)
- [Codecov - About the Codecov YAML](https://docs.codecov.com/docs/codecov-yaml)
- [Codecov - Status Checks](https://docs.codecov.com/docs/commit-status)
- [Codecov - codecov.yml Reference](https://docs.codecov.com/docs/codecovyml-reference)
- [Codecov - Ignore Paths](https://docs.codecov.com/docs/ignoring-paths)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ThiagoPanini/cloudgeass",
    "name": "cloudgeass",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.0.0",
    "maintainer_email": "",
    "keywords": "Cloud,AWS,Python,boto3",
    "author": "Thiago Panini",
    "author_email": "panini.development@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/4f/28/fbb5cef549bb7bbc7f8a510ad99d397045092e7c440de6fc10c95c118c54/cloudgeass-2.0.1.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\n    <br><img src=\"https://github.com/ThiagoPanini/cloudgeass/blob/v2.0.x/docs/assets/gifs/logo-animated-intro.gif?raw=true\" alt=\"cloudgeass-animated-intro\">\n</div>\n\n\n<div align=\"center\">  \n  <br>\n  \n  [![PyPI](https://img.shields.io/pypi/v/cloudgeass?color=purple)](https://pypi.org/project/cloudgeass/)\n  ![PyPI - Downloads](https://img.shields.io/pypi/dm/cloudgeass?color=purple)\n  ![PyPI - Status](https://img.shields.io/pypi/status/cloudgeass?color=purple)\n  ![GitHub Last Commit](https://img.shields.io/github/last-commit/ThiagoPanini/cloudgeass?color=purple)\n  <br>\n\n  ![CI workflow](https://img.shields.io/github/actions/workflow/status/ThiagoPanini/cloudgeass/ci-main.yml?label=ci)\n  [![Documentation Status](https://readthedocs.org/projects/cloudgeass/badge/?version=latest)](https://cloudgeass.readthedocs.io/pt/latest/?badge=latest)\n  [![codecov](https://codecov.io/github/ThiagoPanini/cloudgeass/branch/main/graph/badge.svg?token=7HI1YGS4AA)](https://codecov.io/github/ThiagoPanini/cloudgeass)\n\n</div>\n\n> **Note**\n> Now *cloudgeass* has an [official documentation page on readthedocs](https://cloudgeass.readthedocs.io/pt/latest/)! possui uma **documenta\u00e7\u00e3o oficial** no readthedocs! Check it out to get access to the latest features!\n\n## Quickstart\n\nTo start using the package, just install it using [pip](https://pypi.org/project/pip/) (or any other Python dependency management of your choose) as:\n\n```python\npip install cloudgeass\n```\n\nYou may want to install *cloudgeass* in a [Python virtual environment](https://docs.python.org/3/library/venv.html) to get a good control of your project or application dependencies. If you don't know what this is about, feel free to take a look at this excellent [article from Real Python](https://realpython.com/python-virtual-environments-a-primer/).\n\n## Modules\n\nGetting straight to the point, each *cloudgeass* module represents an AWS service that contains at least one class and a bunch of methods built from both boto's source client and resource for that service.\n\nIn other words, some modules that you can find here are:\n\n- `cloudgeass.aws.s3` for working with S3 service\n- `cloudgeass.aws.ec2` for working with EC2 service\n- `cloudgeass.aws.secrets` for working with Secrets Manager service\n- *and some others*\n\n## Classes\n\nEach one of the aforementioned modules have at least one class that can be imported on user's application in order to provide access to all features for that given AWS service. So, we have:\n\n- `cloudgeass.aws.s3.S3Client` class with methods to operate with S3 service\n- `cloudgeass.aws.ec2.EC2Client` class with methods to operate with EC2 service\n- `cloudgeass.aws.secrets.SecretsManagerClient` class with methods to operate with Secrets Manager service\n- *and some others*\n\n## Attributes\n\nAll *cloudgeass'* service classes are initialized with a set of predefined attributes to make the work easier. Those basic attributes are:\n\n| **Service class attribute** | **Description** |\n| :-- | :-- |\n| `self.logger` | A preconfigured logger object to build and stream informative log messages |\n| `self.client` | A boto3 client for the given service |\n| `self.resource` | A boto3 resource for the given service |\n\nThe attributes can be externally accessed for all class instances created on an application. This means users can build an application using both *cloudgeass* and source boto3 code.\n\n## Methods\n\nFinally, each service class has its own set of methods that, in fact, enables the power of using *cloudgeass* to do simple tasks in an AWS environment. To mention some of them, we have:\n\n- [S3Client.get_last_date_partition()](./mkdocstrings/s3.md/#cloudgeass.aws.s3.S3Client.get_last_date_partition) to get the last date partition from a table stored in S3\n- [EC2Client.get_default_vpc_id()](./mkdocstrings/ec2.md/#cloudgeass.aws.ec2.EC2Client.get_default_vpc_id) to get the default VPC ID of an AWS account\n- [SecretsManagerClient.get_secret_string()](./mkdocstrings/secrets.md/#cloudgeass.aws.secrets.SecretsManagerClient.get_secret_string) to get a secret string given a secret ID\n\n___\n\n## Contact me\n\n- GitHub: [@ThiagoPanini](https://github.com/ThiagoPanini)\n- LinkedIn: [Thiago Panini](https://www.linkedin.com/in/thiago-panini/)\n- Hashnode: [panini-tech-lab](https://panini.hashnode.dev/)\n- DevTo: [thiagopanini](https://dev.to/thiagopanini)\n\n\n___\n\n## References\n\n**Python**\n\n- [Python - Packaging Python Projects](https://packaging.python.org/en/latest/tutorials/packaging-projects/)\n- [Stack Overflow - Reading Pandas DataFrame from S3](https://stackoverflow.com/questions/37703634/how-to-import-a-text-file-on-aws-s3-into-pandas-without-writing-to-disk)\n\n**Docs**\n\n- [NumPy docstrings](https://numpydoc.readthedocs.io/en/latest/format.html)\n- [Eduardo Mendes - Live de Python 189 - MkDocs](https://www.youtube.com/watch?v=GW6nAJ1NHUQ&t=2s&ab_channel=EduardoMendes)\n- [MkDocs](https://www.mkdocs.org/)\n- [pmdown-extensions](https://facelessuser.github.io/pymdown-extensions/)\n- [GitHub - MkDocs Themes](https://github.com/mkdocs/mkdocs/wiki/MkDocs-Themes)\n- [GitHub - Material Theme for MkDocs](https://github.com/squidfunk/mkdocs-material)\n- [Material for MkDocs - Setup](https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/)\n\n**Github**\n\n- [GitHub Actions - pypa/gh-action-pypi-publish](https://github.com/marketplace/actions/pypi-publish)\n- [Medium - Major, Minor and Patch](https://medium.com/fiverr-engineering/major-minor-patch-a5298e2e1798)\n- [Medium - Automate PyPI Releases with GitHub Actions](https://medium.com/@VersuS_/automate-pypi-releases-with-github-actions-4c5a9cfe947d)\n\n**Tests**\n\n- [Codecov - Setting Threshold](https://github.com/codecov/codecov-action/issues/554#issuecomment-1261250304)\n- [Codecov - About the Codecov YAML](https://docs.codecov.com/docs/codecov-yaml)\n- [Codecov - Status Checks](https://docs.codecov.com/docs/commit-status)\n- [Codecov - codecov.yml Reference](https://docs.codecov.com/docs/codecovyml-reference)\n- [Codecov - Ignore Paths](https://docs.codecov.com/docs/ignoring-paths)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Making your life easier on doing simple tasks in AWS via boto3",
    "version": "2.0.1",
    "project_urls": {
        "Homepage": "https://github.com/ThiagoPanini/cloudgeass"
    },
    "split_keywords": [
        "cloud",
        "aws",
        "python",
        "boto3"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e1848df50dac902b4184edac8f3c8143b3e552c99cccb94bc7be7e1fcb0752f0",
                "md5": "b8735b450fecf6081aa8b519570d93aa",
                "sha256": "7d30716a8ea452da9eacfe67d5eeb4ed623121cd9c9b1c07dc48050d9953dfa9"
            },
            "downloads": -1,
            "filename": "cloudgeass-2.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b8735b450fecf6081aa8b519570d93aa",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.0.0",
            "size": 27147,
            "upload_time": "2023-09-22T20:19:11",
            "upload_time_iso_8601": "2023-09-22T20:19:11.932247Z",
            "url": "https://files.pythonhosted.org/packages/e1/84/8df50dac902b4184edac8f3c8143b3e552c99cccb94bc7be7e1fcb0752f0/cloudgeass-2.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4f28fbb5cef549bb7bbc7f8a510ad99d397045092e7c440de6fc10c95c118c54",
                "md5": "62be6e68f6616a10e90f9c169c1f1540",
                "sha256": "e2693fc0109b9cf50c97f7a5bba98ce3257123f3d5104ff4b1f2ab5987ebcee0"
            },
            "downloads": -1,
            "filename": "cloudgeass-2.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "62be6e68f6616a10e90f9c169c1f1540",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.0.0",
            "size": 24072,
            "upload_time": "2023-09-22T20:19:13",
            "upload_time_iso_8601": "2023-09-22T20:19:13.779534Z",
            "url": "https://files.pythonhosted.org/packages/4f/28/fbb5cef549bb7bbc7f8a510ad99d397045092e7c440de6fc10c95c118c54/cloudgeass-2.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-22 20:19:13",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ThiagoPanini",
    "github_project": "cloudgeass",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "cloudgeass"
}
        
Elapsed time: 0.41244s