Skip to main content

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.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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ylogging_v2-0.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ylogging_v2-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

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

Hashes for ylogging_v2-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1a2c2af0211696383380b56efb682ca2c166d3f7ba653356b47a767e0c618405
MD5 30f516f4653ee8e480ff213daa0fcb6b
BLAKE2b-256 83d35a42703892dfe4eb3d1abee545c8c0dba228f8532d72c1e6d198353aca57

See more details on using hashes here.

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

Hashes for ylogging_v2-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b9d6d088298b9306eb6937adebd4df3d6109d534a66e7eacf27d387ae27570eb
MD5 c36e683c1cddf59db8e8dad0402d2a7d
BLAKE2b-256 aa6c8deb596698f1c27c7b99896aaa2ba368d4e7b7d6f0c472c5dadc82750a97

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page