Xgua


NameXgua JSON
Version 0.0.2 PyPI version JSON
download
home_pagehttps://github.com/SikWeet/Xgua
SummaryLogger with saving logs to s3 storage
upload_time2024-07-06 17:57:29
maintainerNone
docs_urlNone
authorXpeawey
requires_python>=3.6
licenseNone
keywords xgua logger s3 s3logger
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Xgua - Logger with saving logs to s3 storage

## Save files to the vault to fix bugs and improve your product!

----------

### Quick Startup

```python
import asyncio
from Xgua.config import Config, S3Config
from Xgua.logger import Logger

s3 = S3Config("access_key", "secret_key", "endpoint_url", "bucket_name")
config = Config(s3)
logger = Logger(config)

async def main():
	try:
		"0" + 1
	except Exception as e:
		await logger.log(e)

asyncio.run(main())
```

----------

### Configuration

| Argument | README |
| ------ | ------ |
| access_key | Get after adding a serialized user |
| secret_key | Get after adding a serialized user |
| endpoint_url | If you haven't enabled "Virtual-Hosted Addressing", then https://s3.storage.selcloud.ru or else name-container.s3.storage.selcloud.ru |
| bucket_name | The name of the container at creation. |

#### How do I get all the parameters?

Through the side navigation block go to "Access Control" -> Next tab "Service Users" and add a new user.

[Fast open "Access Control"](https://my.selectel.ru/iam/users_management/users?type=service&create=false)

#### How do you create a container?

Using the navigation box on the right, navigate to "Cloud Storage" and click on the "Create Container" button

![View Photo](https://github.com/SikWeet/Xgua/assets/124031984/5d9a34b1-cf7c-480b-b6a7-b38051a97b92)


[Fast Open "Storage"](https://my.selectel.ru/storage)

#### Config

Now substitute your values by key

```python
s3 = S3Config("access_key", "secret_key", "endpoint_url", "bucket_name")
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/SikWeet/Xgua",
    "name": "Xgua",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "Xgua Logger S3 s3logger",
    "author": "Xpeawey",
    "author_email": "girectx@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/c0/b8/fdb2f7f567974156686b49a0f3fee7ff83abee88975e289746965e88ba6c/Xgua-0.0.2.tar.gz",
    "platform": null,
    "description": "# Xgua - Logger with saving logs to s3 storage\r\n\r\n## Save files to the vault to fix bugs and improve your product!\r\n\r\n----------\r\n\r\n### Quick Startup\r\n\r\n```python\r\nimport asyncio\r\nfrom Xgua.config import Config, S3Config\r\nfrom Xgua.logger import Logger\r\n\r\ns3 = S3Config(\"access_key\", \"secret_key\", \"endpoint_url\", \"bucket_name\")\r\nconfig = Config(s3)\r\nlogger = Logger(config)\r\n\r\nasync def main():\r\n\ttry:\r\n\t\t\"0\" + 1\r\n\texcept Exception as e:\r\n\t\tawait logger.log(e)\r\n\r\nasyncio.run(main())\r\n```\r\n\r\n----------\r\n\r\n### Configuration\r\n\r\n| Argument | README |\r\n| ------ | ------ |\r\n| access_key | Get after adding a serialized user |\r\n| secret_key | Get after adding a serialized user |\r\n| endpoint_url | If you haven't enabled \"Virtual-Hosted Addressing\", then https://s3.storage.selcloud.ru or else name-container.s3.storage.selcloud.ru |\r\n| bucket_name | The name of the container at creation. |\r\n\r\n#### How do I get all the parameters?\r\n\r\nThrough the side navigation block go to \"Access Control\" -> Next tab \"Service Users\" and add a new user.\r\n\r\n[Fast open \"Access Control\"](https://my.selectel.ru/iam/users_management/users?type=service&create=false)\r\n\r\n#### How do you create a container?\r\n\r\nUsing the navigation box on the right, navigate to \"Cloud Storage\" and click on the \"Create Container\" button\r\n\r\n![View Photo](https://github.com/SikWeet/Xgua/assets/124031984/5d9a34b1-cf7c-480b-b6a7-b38051a97b92)\r\n\r\n\r\n[Fast Open \"Storage\"](https://my.selectel.ru/storage)\r\n\r\n#### Config\r\n\r\nNow substitute your values by key\r\n\r\n```python\r\ns3 = S3Config(\"access_key\", \"secret_key\", \"endpoint_url\", \"bucket_name\")\r\n```\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Logger with saving logs to s3 storage",
    "version": "0.0.2",
    "project_urls": {
        "GitHub": "https://github.com/SikWeet/Xgua",
        "Homepage": "https://github.com/SikWeet/Xgua"
    },
    "split_keywords": [
        "xgua",
        "logger",
        "s3",
        "s3logger"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0983b3552d5095303ae9ebe130f7b8848fef69c2b62e5c34efc60da19acf13c7",
                "md5": "7710119fc12b164ca8917246536ea513",
                "sha256": "cfe21ca4255147090ca23f90dada9fe71c3a468248499e47357413f3b669a1df"
            },
            "downloads": -1,
            "filename": "Xgua-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7710119fc12b164ca8917246536ea513",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 5352,
            "upload_time": "2024-07-06T17:57:27",
            "upload_time_iso_8601": "2024-07-06T17:57:27.269210Z",
            "url": "https://files.pythonhosted.org/packages/09/83/b3552d5095303ae9ebe130f7b8848fef69c2b62e5c34efc60da19acf13c7/Xgua-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c0b8fdb2f7f567974156686b49a0f3fee7ff83abee88975e289746965e88ba6c",
                "md5": "4e0f7eeaae7608098e17816d8323f4d3",
                "sha256": "a49ffb71dc577277c71420761783ed7ce9b61b64e569e0ac825122f2322fb352"
            },
            "downloads": -1,
            "filename": "Xgua-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "4e0f7eeaae7608098e17816d8323f4d3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 4115,
            "upload_time": "2024-07-06T17:57:29",
            "upload_time_iso_8601": "2024-07-06T17:57:29.110845Z",
            "url": "https://files.pythonhosted.org/packages/c0/b8/fdb2f7f567974156686b49a0f3fee7ff83abee88975e289746965e88ba6c/Xgua-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-06 17:57:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "SikWeet",
    "github_project": "Xgua",
    "github_not_found": true,
    "lcname": "xgua"
}
        
Elapsed time: 0.25384s