Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gitprime/segment-queue

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Segment Queue

Wrapper for Segment's python library using Redis as the queue.

Events are queued in Redis and a CLI consumer is provider for delivery to Segment.

Installing this package

pip install segment-queue

Using this package

Create an analytics instance:

from segment import Analytics

analytics = Analytics('your write key', redis_conn)

Call identify or track on that instance, just as you would with the official library.

analytics.identify()
analytics.track()

Run the cli command to consume the queued events:

send-segment-events --redis-url redis://an-url
send-segment-events --local  # dev usage
send-segment-events  # looks for the REDIS_URL env var

About

A wrapper around Segment's library to use Redis queuing

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.