Skip to main content

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.create
  • logging.logEntries.create

This means you need a GCP project with these APIs enabled:

  • Error Reporting
  • Google Cloud Logging

Development

Building the Package

  1. Install build dependencies:
python3 -m venv venv && source venv/bin/activate && pip install --upgrade -r requirements.txt
pip install build twine
  1. Build the package:
python -m build

This creates distribution files in the dist/ directory.

Deploying to PyPI

  1. Create an account at pypi.org

  2. Upload to PyPI:

twine upload dist/*

Using API Tokens (Recommended)

For better security, use API tokens instead of username/password:

  1. Generate an API token in your PyPI account settings
  2. Create ~/.pypirc:
[distutils]
index-servers = pypi

[pypi]
username = __token__
password = pypi-your-api-token-here
  1. 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)

Source distribution for ylogging-v2 0.1.0
File Size Uploaded
ylogging_v2-0.1.0.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ylogging-v2 0.1.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page