Skip to main content

DOI Documentation Status GitHub tag (latest SemVer) LICENSE

1. Cartorio

A wrapper on the logging module for Python that provides a simple and easy-to-use interface for logging.

2. Contents

3. Installation

pip install cartorio

4. Documentation

https://cartorio.readthedocs.io/en/stable/

5. Usage

Consider that your project consists of two scripts:

parent.py
child/
└──  child.py

An example of these scripts are:

# parent.py

from pathlib import Path
from cartorio import make_logger, log

from child.child import multiply

@log
def main()
    multiply(10, 1)

if __name__ == "__main__":
    # Instantiation of log file
    logger, _ = make_logger(filename=Path(__file__).resolve().stem, logs_path=Path(__file__).resolve().parent)
    # where,
    # filename (str, Path): Log file.
    # logs_path (Path): Path where the log file is saved to.
    main()
# child.py

from cartorio import fun, log

@log
def multiply(num1, num2):
    return num1 * num2

The log filename will be parent_<timestamp>.log and it will contain the information in the form

<timestamp> || root || 30664 || INFO || parent.py || parent || <line_number> || Enter || multiply
<timestamp> || root || 30664 || INFO || parent.py || parent || <line_number> || Leave || multiply || Elapsed: 0:00:00.001708

Metadata

Release files for cartorio 3.0.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 cartorio 3.0.0
File Size Uploaded Provenance Actions
cartorio-3.0.0.tar.gz 4.2 kB Without provenance Details for cartorio-3.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cartorio 3.0.0
File Interpreter ABI Platform Actions
cartorio-3.0.0-py3-none-any.whl Python 3 none any Details for cartorio-3.0.0-py3-none-any.whl

Total release size: 9.7 kB

Release files / cartorio-3.0.0.tar.gz

Download URL cartorio-3.0.0.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
61718fb67a67e654f494c2f360ad28368cea8e91938e04261ebed81a0801c534
BLAKE2b-256 checksum
How to use checksums
556a7e51ae687b4c3d280faf2a2adefe7c2e654a4093d18ed2a8aceed1140fb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Release files / cartorio-3.0.0-py3-none-any.whl

Download URL cartorio-3.0.0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d686a8e6ab057c944ca696caaf8c546ad3dca5a3af197b9d62c94dd913fc077
BLAKE2b-256 checksum
How to use checksums
7f341d579fe2b36e3de67afea496c3da9d4fa6838066c5060f536bdc20726cbf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Security for cartorio 3.0.0

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.

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