A Python logging package
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ylogging_v2-0.1.0.tar.gz.
File metadata
- Download URL: ylogging_v2-0.1.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a2c2af0211696383380b56efb682ca2c166d3f7ba653356b47a767e0c618405
|
|
| MD5 |
30f516f4653ee8e480ff213daa0fcb6b
|
|
| BLAKE2b-256 |
83d35a42703892dfe4eb3d1abee545c8c0dba228f8532d72c1e6d198353aca57
|
File details
Details for the file ylogging_v2-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ylogging_v2-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9d6d088298b9306eb6937adebd4df3d6109d534a66e7eacf27d387ae27570eb
|
|
| MD5 |
c36e683c1cddf59db8e8dad0402d2a7d
|
|
| BLAKE2b-256 |
aa6c8deb596698f1c27c7b99896aaa2ba368d4e7b7d6f0c472c5dadc82750a97
|