Xgua - Logger with saving logs to s3 storage
Save files to the vault to fix bugs and improve your product!
Quick Startup
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.
How do you create a container?
Using the navigation box on the right, navigate to "Cloud Storage" and click on the "Create Container" button
Config
Now substitute your values by key
s3 = S3Config("access_key", "secret_key", "endpoint_url", "bucket_name")
Metadata
Release files for Xgua 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Xgua-0.0.2.tar.gz | 4.1 kB | Without provenance | Details for Xgua-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Xgua-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for Xgua-0.0.2-py3-none-any.whl |
Total release size: 9.5 kB
Release files / Xgua-0.0.2.tar.gz
| Download URL | Xgua-0.0.2.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a49ffb71dc577277c71420761783ed7ce9b61b64e569e0ac825122f2322fb352
|
|
BLAKE2b-256 checksum How to use checksums |
c0b8fdb2f7f567974156686b49a0f3fee7ff83abee88975e289746965e88ba6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.11
|
Release files / Xgua-0.0.2-py3-none-any.whl
| Download URL | Xgua-0.0.2-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cfe21ca4255147090ca23f90dada9fe71c3a468248499e47357413f3b669a1df
|
|
BLAKE2b-256 checksum How to use checksums |
0983b3552d5095303ae9ebe130f7b8848fef69c2b62e5c34efc60da19acf13c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.11
|
Security for Xgua 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.