yc-aws-wrapper


Nameyc-aws-wrapper JSON
Version 0.0.6 PyPI version JSON
download
home_pagehttps://github.com/mcode-cc/python-yandex-cloud-sdk-wrapper/
Summaryyc-aws-wrapper.
upload_time2024-09-19 09:20:06
maintainerNone
docs_urlNone
authorMCode GmbH
requires_pythonNone
licenseGNU AFFERO GENERAL PUBLIC LICENSE Version 3, 29 June 2007
keywords wrapper for yandex cloud services
VCS
bugtrack_url
requirements boto3 botocore
Travis-CI No Travis.
coveralls test coverage No coveralls.
            yc-aws-wrapper
=
### About:
A little sugar for working with Yandex cloud services. May also be compatible with other AWS clones.   
The wrapper is written for your own needs and primarily for working with Yandex Cloud, ready for criticism and suggestions.

To run tests, in addition to the necessary environment variables, you need S3_BUCKET the location of your test bucket

#### ENV:  
- **REQUIRED**
  >AWS_REGION: region  
  AWS_ACCESS_KEY_ID: key id  
  AWS_SECRET_ACCESS_KEY: secret from key id  
- **SITUATIONAL**:
  > [SERVICE]_ENDPOINT_URL: endpoint for the service, example for yandex sqs: `SQS_ENDPOINT_URL=https://message-queue.api.cloud.yandex.net`    
- **ADDITIONAL**:
  - ***SQS***:   
    >SQS_TUBE_[Method_Name]: Contains the name of the queue to be accessed via a method.  
      Example: SQS_TUBE_FOO=sqs-aws-wrapper | sqs.foo.send(*args, **kwargs)  
  - ***S3***:   
    >S3_BUCKET_[Method_Name]: Contains the name of the bucket to be accessed via a method.  
      Example: S3_BUCKET_FOO=bucket-aws-wrapper | s3.foo.send(*args, **kwargs) 
  - ***SESV2***:   
    >SESV2_MAILBOX_[Method_Name]: Contains the name of the mailbox to be accessed via a method.  
      Example: SESV2_MAILBOX_FOO=mail@aws-wrapper.net | sesv2.foo.send(*args, **kwargs)   
  - ***Kinesis***:  
    >KINESIS_FOLDER:   
    KINESIS_DATABASE:  
    KINESIS_STREAM_NAME:  

#### Example:
Let's send a message to three queues, one of which is not declared in the environment variables, as a result we will get dictionaries symbolizing a successful result for "foo" and "bar", as well as none, indicating that nothing was sent, example code_1      
You can also send a message to all queues using a loop, but first you need to force load all environment variables, example code_2
envs:   
> AWS_REGION=ru.central1   
> AWS_ACCESS_KEY_ID=<KEY_ID>  
> AWS_SECRET_ACCESS_KEY=<SECRET_KEY>  
> SQS_ENDPOINT_URL=`https://message-queue.api.cloud.yandex.net`  
> SQS_TUBE_FOO=foo-aws-wrapper
> SQS_TUBE_BAR=bar-aws-wrapper

code_1:
> import from yc_aws_wrapper.s3 import SQS   
>   
> sqs = SQS()   
> response = sqs.foo.send("Hellow World")   
> type(response) is dict   
> response = sqs.bar.send("Hellow World")   
> type(response) is dict   
> response = sqs.baz.send("Hellow World")   
> type(response) is None   

code_2:
> import from yc_aws_wrapper.s3 import SQS   
>   
> sqs = SQS()   
> sqs.load_all_clients()   
> for el in sqs:   
>   el.send("Hellow World")

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/mcode-cc/python-yandex-cloud-sdk-wrapper/",
    "name": "yc-aws-wrapper",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "Wrapper for yandex cloud services",
    "author": "MCode GmbH",
    "author_email": "python-yandex-cloud-sdk-wrapper@mcode.cc",
    "download_url": "https://files.pythonhosted.org/packages/7e/63/8977c6f4973368ca18a813fc6a1a11dc912b53bf6295f12d34ff14a92af6/yc_aws_wrapper-0.0.6.tar.gz",
    "platform": "Any",
    "description": "yc-aws-wrapper\n=\n### About:\nA little sugar for working with Yandex cloud services. May also be compatible with other AWS clones.   \nThe wrapper is written for your own needs and primarily for working with Yandex Cloud, ready for criticism and suggestions.\n\nTo run tests, in addition to the necessary environment variables, you need S3_BUCKET the location of your test bucket\n\n#### ENV:  \n- **REQUIRED**\n  >AWS_REGION: region  \n  AWS_ACCESS_KEY_ID: key id  \n  AWS_SECRET_ACCESS_KEY: secret from key id  \n- **SITUATIONAL**:\n  > [SERVICE]_ENDPOINT_URL: endpoint for the service, example for yandex sqs: `SQS_ENDPOINT_URL=https://message-queue.api.cloud.yandex.net`    \n- **ADDITIONAL**:\n  - ***SQS***:   \n    >SQS_TUBE_[Method_Name]: Contains the name of the queue to be accessed via a method.  \n      Example: SQS_TUBE_FOO=sqs-aws-wrapper | sqs.foo.send(*args, **kwargs)  \n  - ***S3***:   \n    >S3_BUCKET_[Method_Name]: Contains the name of the bucket to be accessed via a method.  \n      Example: S3_BUCKET_FOO=bucket-aws-wrapper | s3.foo.send(*args, **kwargs) \n  - ***SESV2***:   \n    >SESV2_MAILBOX_[Method_Name]: Contains the name of the mailbox to be accessed via a method.  \n      Example: SESV2_MAILBOX_FOO=mail@aws-wrapper.net | sesv2.foo.send(*args, **kwargs)   \n  - ***Kinesis***:  \n    >KINESIS_FOLDER:   \n    KINESIS_DATABASE:  \n    KINESIS_STREAM_NAME:  \n\n#### Example:\nLet's send a message to three queues, one of which is not declared in the environment variables, as a result we will get dictionaries symbolizing a successful result for \"foo\" and \"bar\", as well as none, indicating that nothing was sent, example code_1      \nYou can also send a message to all queues using a loop, but first you need to force load all environment variables, example code_2\nenvs:   \n> AWS_REGION=ru.central1   \n> AWS_ACCESS_KEY_ID=<KEY_ID>  \n> AWS_SECRET_ACCESS_KEY=<SECRET_KEY>  \n> SQS_ENDPOINT_URL=`https://message-queue.api.cloud.yandex.net`  \n> SQS_TUBE_FOO=foo-aws-wrapper\n> SQS_TUBE_BAR=bar-aws-wrapper\n\ncode_1:\n> import from yc_aws_wrapper.s3 import SQS   \n>   \n> sqs = SQS()   \n> response = sqs.foo.send(\"Hellow World\")   \n> type(response) is dict   \n> response = sqs.bar.send(\"Hellow World\")   \n> type(response) is dict   \n> response = sqs.baz.send(\"Hellow World\")   \n> type(response) is None   \n\ncode_2:\n> import from yc_aws_wrapper.s3 import SQS   \n>   \n> sqs = SQS()   \n> sqs.load_all_clients()   \n> for el in sqs:   \n>   el.send(\"Hellow World\")\n",
    "bugtrack_url": null,
    "license": "GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 29 June 2007",
    "summary": "yc-aws-wrapper.",
    "version": "0.0.6",
    "project_urls": {
        "Bug Tracker": "https://github.com/mcode-cc/python-yandex-cloud-sdk-wrapper/issues",
        "Homepage": "https://github.com/mcode-cc/python-yandex-cloud-sdk-wrapper/"
    },
    "split_keywords": [
        "wrapper",
        "for",
        "yandex",
        "cloud",
        "services"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5006b8dab204d6f266dba3a2feffe5f06e318530d72d720b7fd096a5b96c819b",
                "md5": "06290188d321e1a0aa6b41c229780aa9",
                "sha256": "05ab5fb3a6c25f6e553dca487d20fbdb8e2a743272831b8b81bdee6d433069ba"
            },
            "downloads": -1,
            "filename": "yc_aws_wrapper-0.0.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "06290188d321e1a0aa6b41c229780aa9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 34894,
            "upload_time": "2024-09-19T09:20:05",
            "upload_time_iso_8601": "2024-09-19T09:20:05.646940Z",
            "url": "https://files.pythonhosted.org/packages/50/06/b8dab204d6f266dba3a2feffe5f06e318530d72d720b7fd096a5b96c819b/yc_aws_wrapper-0.0.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7e638977c6f4973368ca18a813fc6a1a11dc912b53bf6295f12d34ff14a92af6",
                "md5": "99fe1a9918e210a83d6ecf30411e4849",
                "sha256": "8d4a1ba4e9b97dfe400d86b8391bfe9fecaa2a9124863a4b0d0ec8cc03bfca2d"
            },
            "downloads": -1,
            "filename": "yc_aws_wrapper-0.0.6.tar.gz",
            "has_sig": false,
            "md5_digest": "99fe1a9918e210a83d6ecf30411e4849",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 23166,
            "upload_time": "2024-09-19T09:20:06",
            "upload_time_iso_8601": "2024-09-19T09:20:06.665107Z",
            "url": "https://files.pythonhosted.org/packages/7e/63/8977c6f4973368ca18a813fc6a1a11dc912b53bf6295f12d34ff14a92af6/yc_aws_wrapper-0.0.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-19 09:20:06",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mcode-cc",
    "github_project": "python-yandex-cloud-sdk-wrapper",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "boto3",
            "specs": [
                [
                    "==",
                    "1.27.1"
                ]
            ]
        },
        {
            "name": "botocore",
            "specs": [
                [
                    "==",
                    "1.30.1"
                ]
            ]
        }
    ],
    "lcname": "yc-aws-wrapper"
}
        
Elapsed time: 0.31616s