Skip to content

LitLyx Sender is a Python library for easily sending events to the LitLyx platform.

License

Notifications You must be signed in to change notification settings

vchaindz/litlyx-sender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LitLyx Sender

LitLyx Sender is a Python library for easily sending events to the LitLyx platform.

Installation

You can install LitLyx Sender using pip:

pip install litlyx-sender

Usage

Here's a basic example of how to use LitLyx Sender:

from litlyx_sender import LitLyxSender

# Create a sender instance
sender = LitLyxSender()

# Send a simple event
sender.send_event(name="test_event", metadata={"test": "value"})

# Use the decorator
@sender.event_decorator(name="decorated_event", metadata={"decorated": True})
def example_function():
    print("This is an example function.")

example_function()

Configuration

You can configure the LitLyxSender with custom default values:

sender = LitLyxSender(
    url="https://custom.litlyx.com/event",
    default_pid="custom_pid",
    default_name="custom_event",
    default_metadata={"custom": "metadata"},
    default_website="custom.website.com",
    default_user_agent="CustomApp/1.0"
)

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

LitLyx Sender is a Python library for easily sending events to the LitLyx platform.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages