{"id":34021342,"url":"https://github.com/kevinqz/pylogu","last_synced_at":"2026-04-06T02:31:34.096Z","repository":{"id":213634299,"uuid":"734570708","full_name":"kevinqz/pylogu","owner":"kevinqz","description":"The pylogu library offers a powerful yet intuitive interface for integrating Logu's real-time monitoring and analytics capabilities into your Python applications.","archived":false,"fork":false,"pushed_at":"2023-12-31T01:36:34.000Z","size":2509,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-15T04:59:28.709Z","etag":null,"topics":["logu","notification","notification-api","notification-center","notification-service","notification-system","notifications"],"latest_commit_sha":null,"homepage":"https://www.logu.app","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kevinqz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-22T03:06:13.000Z","updated_at":"2024-09-01T11:24:46.000Z","dependencies_parsed_at":"2023-12-22T05:28:03.743Z","dependency_job_id":"5d77418f-d52b-4040-9019-07d9f5ab30b7","html_url":"https://github.com/kevinqz/pylogu","commit_stats":null,"previous_names":["kevinqz/py-logu","kevinqz/pylogu"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kevinqz/pylogu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinqz%2Fpylogu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinqz%2Fpylogu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinqz%2Fpylogu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinqz%2Fpylogu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevinqz","download_url":"https://codeload.github.com/kevinqz/pylogu/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinqz%2Fpylogu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31457515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["logu","notification","notification-api","notification-center","notification-service","notification-system","notifications"],"created_at":"2025-12-13T15:53:09.984Z","updated_at":"2026-04-06T02:31:34.091Z","avatar_url":"https://github.com/kevinqz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Logu - Python SDK\n\nThe `pylogu` library offers a powerful yet intuitive interface for integrating Logu's real-time monitoring and analytics capabilities into your Python applications. Designed with an emphasis on Developer Experience, it provides easy-to-use functionalities for logging events, identifying users, and gaining insights, all with real-time updates and custom notifications.\n\n## Key Features\n- **Developer-Friendly**: Straightforward setup and easy integration.\n- **Customizable Logging**: Tailor log details to your project's needs.\n- **User Identification**: Easily track and manage user data.\n- **Insightful Analytics**: Gain valuable insights with minimal setup.\n- **Real-Time Updates**: Stay up-to-date with the latest data.\n\n## About Logu\n\nRevolutionize your business with Logu – the epitome of simplicity and efficiency. Enjoy an unparalleled Developer Experience, an intuitive log interface, and customized notifications. Stay ahead with real-time insights. Logu isn't just a tool; it's your pathway to smarter, faster business decisions.\n\nStart using at: www.logu.app\n\nAfter creating your account, an API Key, a Project and a Channel, you can start using this: [Logu Example Usage Template](https://replit.com/@kevinqz/Logu-Example-Usage-Template) hosted in a Replit Repl\n\n---\n\n# Setup\n## 0️⃣Install pylogu\n\n### Using pip\n```python\npip install pylogu\n```\n\n### Using poetry\n```python\npoetry add pylogu\n```\n\n---\n\n# Simple Usage\n## 1️⃣ Import Logu Client\n```python\nfrom pylogu import Logu\n```\n\n## 2️⃣ Initialize the Logu client\n```python\nlogu = Logu(LOGU_API_KEY, LOGU_PROJECT, LOGU_CHANNEL)\n```\n\n## 3️⃣ Using the 'log' function\n```python\nlogu.log(LOGU_EVENT, LOGU_ICON)\n# logu.log(LOGU_PROJECT, LOGU_CHANNEL, LOGU_EVENT, LOGU_ICON)\n```\n\n## 🙋 Using the 'identify' function\n```python\nlogu.identify(LOGU_USER_ID, LOGU_USER_PROPERTIES)\n# logu.identify(LOGU_PROJECT, LOGU_USER_ID, LOGU_USER_PROPERTIES)\n```\n\n## 💡 Using the 'insight' function\n```python\nlogu.insight(LOGU_INSIGHT, LOGU_ICON, LOGU_INSIGHT_VALUE)\n# logu.insight(LOGU_PROJECT, LOGU_INSIGHT, LOGU_ICON, LOGU_INSIGHT_VALUE)\n```\n\n---\n\n# Usage Example\n## 1️⃣ Import Logu Client\n```python\nfrom pylogu import Logu\n```\n\n## 2️⃣ Initialize the Logu client\n```python\nlogu = Logu(\n    key=LOGU_API_KEY,\n    project=LOGU_PROJECT,\n    channel=LOGU_CHANNEL # channel is optional\n)\n```\n\n## 3️⃣ Using the 'log' function\n```python\nlog_response = logu.log(\n    # project=LOGU_PROJECT || None,\n    # project is required, but optional if you initiated the client with a project\n    # channel=LOGU_CHANNEL || None,\n    # channel is required, but optional, even if you didn't initiate the client with a channel\n    event=LOGU_EVENT,\n    icon=LOGU_ICON\n)\nprint(\"Log Response:\", log_response)\n```\n\n## 🙋 Using the 'identify' function\n```python\nidentify_response = logu.identify(\n    # project=LOGU_PROJECT || None,\n    # project is required, but optional if you initiated the client with a project\n    user_id=LOGU_USER_ID,\n    properties=LOGU_USER_PROPERTIES\n)\nprint(\"Identify Response:\", identify_response)\n```\n\n## 💡 Using the 'insight' function\n```python\ninsight_response = logu.insight(\n  # project=LOGU_PROJECT || None,\n    # project is required, but optional if you initiated the client with a project\n    insight=LOGU_INSIGHT, \n    icon=LOGU_ICON, \n    value=LOGU_INSIGHT_VALUE\n)\nprint(\"Insight Response:\", insight_response)\n```\n\n---\n\n# ⚠️ For Test Purposes Only ⚠️\n\n```python\nfrom example_config import * # This file have some example configs that you can adjust according to your needs or set the variables directly in the code\n```\n\n## 1️⃣ Import Logu Client\n```python\nfrom pylogu import Logu\n```\n\n## 2️⃣ Initialize the Logu client\n```python\nlogu = Logu(\n    key=LOGU_API_KEY,\n    project=LOGU_PROJECT,\n    channel=LOGU_CHANNEL # channel is optional\n)\n```\n\n## 3️⃣ Using the 'log' function\n```python\nlog_response = logu.log(\n    project=random.choice([LOGU_PROJECT, None]),\n    # project is required, but optional if you initiated the client with a project\n    channel=random.choice([LOGU_CHANNEL, None]),\n    # channel is required, but optional, even if you didn't initiate the client with a channel\n    event=LOGU_EVENT,\n    icon=LOGU_ICON\n)\nprint(\"Log Response:\", log_response)\n```\n\n## 🙋 Using the 'identify' function\n```python\nidentify_response = logu.identify(\n    # project=LOGU_PROJECT,\n    # project is required, but optional if you initiated the client with a project\n    user_id=LOGU_USER_ID + random.choice([\"1\", \"2\"]),\n    properties=LOGU_USER_PROPERTIES\n)\nprint(\"Identify Response:\", identify_response)\n```\n\n## 💡 Using the 'insight' function\n```python\ninsight_response = logu.insight(\n    # project=LOGU_PROJECT,\n    # project is required, but optional if you initiated the client with a project\n    insight=LOGU_INSIGHT, \n    icon=LOGU_ICON, \n    value=LOGU_INSIGHT_VALUE\n)\nprint(\"Insight Response:\", insight_response)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinqz%2Fpylogu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevinqz%2Fpylogu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinqz%2Fpylogu/lists"}