A Python library for sending events to LitLyx
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file litlyx_sender-0.1.0.tar.gz.
File metadata
- Download URL: litlyx_sender-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22e6a74d6e4583e27053f600b406e82263ad264f5d471d1adcba88fcc6964e15
|
|
| MD5 |
ac7a1ff6ae77c28aa65a7a3afac65906
|
|
| BLAKE2b-256 |
90908e567a965fae6f6d5d7dd5e65e9aa7afdff20b3df5efe646be64af421b43
|
File details
Details for the file litlyx_sender-0.1.0-py3-none-any.whl.
File metadata
- Download URL: litlyx_sender-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0caf8ad1c92f06f2a17435660e6137c53b8379a24c4ea7c67507ae59a340584
|
|
| MD5 |
96f54c0b20d8d915361d690131658fac
|
|
| BLAKE2b-256 |
8f8af65e1020c176946dcddd72db2024871ec49cf8e6e49347cb3957b5190ec1
|