Paranoid Logy SDK
The Paranoid Logy SDK is a Python library for logging activities and exceptions to a remote logging service. It provides a simple interface to trace application activities and exceptions with customizable tags and additional information.
Installation
Install the package using pip:
pip install paranoid_logy
Usage
To use the Paranoid Logy SDK, initialize the Logy class with a source, IP address, and service context, then call the trace_activity or trace_exception methods.
Example
from paranoid_logy import Logy, LogyServiceContext
# Configure the service context
settings = {
'id': 'my-service-id',
'baseEndpoint': 'https://my-service/v1/',
'headers': {}
}
context = LogyServiceContext(settings)
# Initialize Logy
logy = Logy(source='my-app', ip_address='192.168.1.1', context=context)
# Trace an activity
result = logy.trace_activity(
message='User logged in',
additional_info={'user_id': 123},
tags=['auth', 'info']
)
print(result.success)
# Trace an exception
try:
1 / 0
except Exception as ex:
result = logy.trace_exception(
ex=ex,
additional_info={'operation': 'division'},
tags=['error', 'math']
)
print(result.success)
Requirements
- Python 3.6 or higher
requestslibrary
License
This project is licensed under the MIT License.
Metadata
Release files for paranoid-logy 2.0.2
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 |
|---|---|---|---|---|
| paranoid_logy-2.0.2.tar.gz | 3.9 kB | Without provenance | Details for paranoid_logy-2.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| paranoid_logy-2.0.2-py3-none-any.whl | Python 3 | none | any | Details for paranoid_logy-2.0.2-py3-none-any.whl |
Total release size: 8.3 kB
Release files / paranoid_logy-2.0.2.tar.gz
| Download URL | paranoid_logy-2.0.2.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f862bb5b66bb47ec1f03278c545adfb35988d41426c10a8e61a8886765fa9288
|
|
BLAKE2b-256 checksum How to use checksums |
46d14885642794994933f7432f61eb4e46bc1fe3523122103efbf953e9a4e9af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.17
|
Release files / paranoid_logy-2.0.2-py3-none-any.whl
| Download URL | paranoid_logy-2.0.2-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ed2910de7b44aab3a9bb59bdfdb18e4bbba19e828dd5683c094cfa0af46495e8
|
|
BLAKE2b-256 checksum How to use checksums |
21c28fc8fe07dc473be7aad8a1fac586cb0617084d029eeabded4baa8edce0ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.17
|
Security for paranoid-logy 2.0.2
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.