ylogging-v2
A Python logging package that is designed to log stuff both on the GCP and to local stdout/stderr.
Installation
pip install ylogging-v2
GCP integration
You'll need GOOGLE_APPLICATION_CREDENTIALS env var filled if you want to use the GCP loggers and error reporting client. And whatever authenticated abstraction using these objects need to have the following permissions:
errorreporting.errorEvents.createlogging.logEntries.create
This means you need a GCP project with these APIs enabled:
- Error Reporting
- Google Cloud Logging
Development
Building the Package
- Install build dependencies:
python3 -m venv venv && source venv/bin/activate && pip install --upgrade -r requirements.txt
pip install build twine
- Build the package:
python -m build
This creates distribution files in the dist/ directory.
Deploying to PyPI
-
Create an account at pypi.org
-
Upload to PyPI:
twine upload dist/*
Using API Tokens (Recommended)
For better security, use API tokens instead of username/password:
- Generate an API token in your PyPI account settings
- Create
~/.pypirc:
[distutils]
index-servers = pypi
[pypi]
username = __token__
password = pypi-your-api-token-here
- Upload without entering credentials:
twine upload dist/*
License
MIT
Release files for ylogging-v2 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ylogging_v2-0.1.0.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ylogging_v2-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.9 kB
Release files / ylogging_v2-0.1.0.tar.gz
| Download URL | ylogging_v2-0.1.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a2c2af0211696383380b56efb682ca2c166d3f7ba653356b47a767e0c618405
|
|
BLAKE2b-256 checksum How to use checksums |
83d35a42703892dfe4eb3d1abee545c8c0dba228f8532d72c1e6d198353aca57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / ylogging_v2-0.1.0-py3-none-any.whl
| Download URL | ylogging_v2-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b9d6d088298b9306eb6937adebd4df3d6109d534a66e7eacf27d387ae27570eb
|
|
BLAKE2b-256 checksum How to use checksums |
aa6c8deb596698f1c27c7b99896aaa2ba368d4e7b7d6f0c472c5dadc82750a97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|