smartinspect-py


Namesmartinspect-py JSON
Version 4.0.4 PyPI version JSON
download
home_pageNone
SummaryClient library to integrate SmartInspect logging into Python applications.
upload_time2024-09-17 20:58:12
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseMIT License
keywords smartinspect logging
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            SmartInspect Python Library
===========================

.. image:: https://code-partners.com/wp-content/uploads/2020/11/smartinspect_logo_red_82x82_optim.png
    :target: https://code-partners.com/offerings/smartinspect/
    :alt: SmartInspect


``smartinspect-py`` is a client library to integrate SmartInspect logging into Python applications.
It also has a SmartInspect Handler which can be used to dispatch Python ``logging`` log records to
the destination defined by SmartInspect.

SmartInspect is an advanced logging tool for debugging and monitoring software applications.
It helps you identify bugs, find solutions to user-reported issues and gives you a precise picture of how
your software performs in different environments. Whether you need logging in the development phase, on production
systems or at customer sites, SmartInspect is the perfect choice.

Visit `SmartInspect website <https://code-partners.com/offerings/smartinspect/>`_.

Installation
============

You can install ``smartinspect-py`` with:

.. code-block:: console

    $ pip install smartinspect-py

Usage
=====

You can start using ``smartinspect-py`` like this:

.. code-block:: pycon

    from smartinspect import SiAuto

    # Enable SiAuto and it will be automatically ready to log via
    # named pipe on Windows or tcp on Linux/MacOs
    SiAuto.si.set_enabled(True)
    # Log simple messages, warnings and exceptions
    SiAuto.main.log_message("Processing Order 48843")
    SiAuto.main.log_warning("Connection refused")
    SiAuto.main.log_exception(e)

    # Log variable values, SQL cursor data or any other object
    SiAuto.main.log_int("index", index)
    SiAuto.main.log_object_value("order", order)
    SiAuto.main.log_cursor_data("Cursor data", cursor)
    SiAuto.si.dispose()

More Python examples available at `Code-Partners Github repository <https://github.com/Code-Partners/smartinspect-examples/tree/main/python>`_.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "smartinspect-py",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "Sergey Zhukov <sergey@code-partners.com>",
    "keywords": "smartinspect, logging",
    "author": null,
    "author_email": "Sergey Udachin <sergey.udachin@code-partners.com>",
    "download_url": "https://files.pythonhosted.org/packages/2c/4d/09565fab317d32a4fd9417c2e8fbeda81297f12ee07a6598be0e37b9489e/smartinspect_py-4.0.4.tar.gz",
    "platform": null,
    "description": "SmartInspect Python Library\n===========================\n\n.. image:: https://code-partners.com/wp-content/uploads/2020/11/smartinspect_logo_red_82x82_optim.png\n    :target: https://code-partners.com/offerings/smartinspect/\n    :alt: SmartInspect\n\n\n``smartinspect-py`` is a client library to integrate SmartInspect logging into Python applications.\nIt also has a SmartInspect Handler which can be used to dispatch Python ``logging`` log records to\nthe destination defined by SmartInspect.\n\nSmartInspect is an advanced logging tool for debugging and monitoring software applications.\nIt helps you identify bugs, find solutions to user-reported issues and gives you a precise picture of how\nyour software performs in different environments. Whether you need logging in the development phase, on production\nsystems or at customer sites, SmartInspect is the perfect choice.\n\nVisit `SmartInspect website <https://code-partners.com/offerings/smartinspect/>`_.\n\nInstallation\n============\n\nYou can install ``smartinspect-py`` with:\n\n.. code-block:: console\n\n    $ pip install smartinspect-py\n\nUsage\n=====\n\nYou can start using ``smartinspect-py`` like this:\n\n.. code-block:: pycon\n\n    from smartinspect import SiAuto\n\n    # Enable SiAuto and it will be automatically ready to log via\n    # named pipe on Windows or tcp on Linux/MacOs\n    SiAuto.si.set_enabled(True)\n    # Log simple messages, warnings and exceptions\n    SiAuto.main.log_message(\"Processing Order 48843\")\n    SiAuto.main.log_warning(\"Connection refused\")\n    SiAuto.main.log_exception(e)\n\n    # Log variable values, SQL cursor data or any other object\n    SiAuto.main.log_int(\"index\", index)\n    SiAuto.main.log_object_value(\"order\", order)\n    SiAuto.main.log_cursor_data(\"Cursor data\", cursor)\n    SiAuto.si.dispose()\n\nMore Python examples available at `Code-Partners Github repository <https://github.com/Code-Partners/smartinspect-examples/tree/main/python>`_.\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Client library to integrate SmartInspect logging into Python applications.",
    "version": "4.0.4",
    "project_urls": {
        "Homepage": "https://code-partners.com/offerings/smartinspect/",
        "Issues": "https://github.com/Code-Partners/smartinspect-python-library/issues"
    },
    "split_keywords": [
        "smartinspect",
        " logging"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "33f240846f2c90ab9732aed14850074d9f1f941e98c2c115306b5dc81b881420",
                "md5": "5ae3424f58df60271cb07ceb013bcc9c",
                "sha256": "c8bef16013b1174790c09b4bb5590fbdf14e7c9646f95c7519be179621555bdb"
            },
            "downloads": -1,
            "filename": "smartinspect_py-4.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5ae3424f58df60271cb07ceb013bcc9c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 160855,
            "upload_time": "2024-09-17T20:58:10",
            "upload_time_iso_8601": "2024-09-17T20:58:10.987214Z",
            "url": "https://files.pythonhosted.org/packages/33/f2/40846f2c90ab9732aed14850074d9f1f941e98c2c115306b5dc81b881420/smartinspect_py-4.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2c4d09565fab317d32a4fd9417c2e8fbeda81297f12ee07a6598be0e37b9489e",
                "md5": "6634fea16125c9e6193f6f6faf1ac700",
                "sha256": "0e3bc56307836a89d04c1da65af89e530d5396f09eece41d01f5262187bee49f"
            },
            "downloads": -1,
            "filename": "smartinspect_py-4.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "6634fea16125c9e6193f6f6faf1ac700",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 116120,
            "upload_time": "2024-09-17T20:58:12",
            "upload_time_iso_8601": "2024-09-17T20:58:12.928432Z",
            "url": "https://files.pythonhosted.org/packages/2c/4d/09565fab317d32a4fd9417c2e8fbeda81297f12ee07a6598be0e37b9489e/smartinspect_py-4.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-17 20:58:12",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Code-Partners",
    "github_project": "smartinspect-python-library",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "smartinspect-py"
}
        
Elapsed time: 0.31283s