Giter VIP home page Giter VIP logo

snap4frame's Introduction

logo

S N A P 4 F R A M E

pypi python Ruff Checked with mypy pre-commit pypi-downloads

Quality Gate Status Bugs Code Smells

Duplicated Lines (%)

License GitHub Repo stars

Instantly capture, analyze, and debug your python code, even in production

This package lets you capture detailed insights, including variables for call stack frames, at any moment or when exceptions occur, helping you trace and resolve issues more efficiently.

Getting started

snap4frame requires Python 3.8 or later. To install the latest or upgrade to the latest version of snap4frame, run the following command:

pip install snap4frame

Usage

Here's a basic example of how to use snap4frame:

import snap4frame

snap4frame.init()

Contributing

We welcome contributions to snap4frame! Please see our contributing guide for more details.

License

Snap4frame is licensed under the MIT License.

snap4frame's People

Contributors

adriancert avatar

Stargazers

 avatar

Watchers

Lucian avatar  avatar

snap4frame's Issues

Add versioning to the package

this value should be single source of truth for the package version

__version__ = "0.0.1"

# TODO: Add versioning to the package

from snap4frame.processor.base import BaseEventProcessor

# TODO: Add versioning to the package
#  this value should be single source of truth for the package version
#  __version__ = "0.0.1"
VERSION = "0.0.1"

add other badges on readme once information is available

<!-- TODO add other badges on readme once information is available -->

<div style="display: flex;justify-content: center;align-items:center; gap: 2px 10px">
    <picture>
        <source media="(prefers-color-scheme: dark)" srcset="./docs/static/logo.svg" width="250px">
        <img alt="snap4frame-logo" src="./docs/static/logo.svg">
    </picture>
    <div style="font-size: 7vh;">
        <span >S N A P 4 F R A M E</span>
    </div>
</div>


<div align="center">

[![pypi](https://img.shields.io/pypi/v/snap4frame.svg)](https://pypi.org/project/snap4frame/)
[![python](https://img.shields.io/pypi/pyversions/snap4frame.svg)](https://pypi.org/project/snap4frame/)
[![pypi-downloads](https://img.shields.io/pypi/dm/snap4frame.svg?label=PyPI%20downloads)](https://pypi.org/project/snap4frame/)

<!-- TODO add other badges on readme once information is available -->

</div>

# **snap4frame**

### creates a snapshot of the python program for later analysis

add others processors to the default list

# TODO: add others processors to the default list

class EventHandler(metaclass=Singleton):
    """Handles events and processes them using event processors."""

    handlers_dict: typing.Dict[str, typing.List[BaseEventProcessor]] = Store().handlers

    # TODO: add others processors to the default list
    #  labels: enhancement
    default_processors: typing.List[BaseEventProcessor] = [
        kit.FileSaveProcessor(filepath="snap4frame.json"),
    ]

    def lookup_processors(self, kind: str) -> typing.List[BaseEventProcessor]:
        """Lookup event processors based on the given kind.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.