Inference Logging
A package to initialize standardized logging for the inference service.
Getting Started - Usage
Install this package into your repository:
pip install inference-logging
In your code:
# ----------
# Add the logging-config to your own config.
from inference_logging import config as logging_config
from pydantic import Field
from pydantic_settings import BaseSettings
class CustomConfig(BaseSettings):
"""
Customize your config.
"""
appname: str = Field(default="your app name")
logging: logging_config.Config = Field(default_factory=logging_config.Config)
custom_config: CustomConfig = CustomConfig()
# ----------
# At the beginning of your running script, initialize the logging.
# TODO: Import your initialized config.
from inference_logging import logging
logging.init(custom_config.appname, custom_config.logging)
# ----------
# Whenever you need a new logger, use the custom logger provided by this package.
from inference_logging import logging
logger: logging.Logger = logging.get_logger(__name__)
Metadata
Release files for inference-logging 1.0.6
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 |
|---|---|---|---|---|
| inference_logging-1.0.6.tar.gz | 7.6 kB | Without provenance | Details for inference_logging-1.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| inference_logging-1.0.6-py3-none-any.whl | Python 3 | none | any | Details for inference_logging-1.0.6-py3-none-any.whl |
Total release size: 16.0 kB
Release files / inference_logging-1.0.6.tar.gz
| Download URL | inference_logging-1.0.6.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aef3748ea1f22b51cce07fb1d75de0b53251f541e4c4a46a3679a52a7fc12af6
|
|
BLAKE2b-256 checksum How to use checksums |
85fca32e7d0f9b4206d1790172f8736e3c2db24eebfcb3c224977712fbc56c45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.3 Linux/6.6.87.2-microsoft-standard-WSL2
|
Release files / inference_logging-1.0.6-py3-none-any.whl
| Download URL | inference_logging-1.0.6-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
df8679abe5a9c935baaf85d824f6eb76a8c5938709a97e068bab96ccd40a4589
|
|
BLAKE2b-256 checksum How to use checksums |
94cf73ff39eb266178cc85bdc29b4227c38a13ce661c0e731dd710fa1e8abe97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.3 Linux/6.6.87.2-microsoft-standard-WSL2
|
Security for inference-logging 1.0.6
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.