analytics-python

The hassle-free way to integrate analytics into any python application.

https://github.com/segmentio/analytics-python

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    2 of 66 committers (3.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.0%) to scientific vocabulary

Keywords from Contributors

closember unit-testing distributed packaging parallel templates serializer pallets static-analysis jinja
Last synced: 10 months ago · JSON representation

Repository

The hassle-free way to integrate analytics into any python application.

Basic Info
Statistics
  • Stars: 251
  • Watchers: 47
  • Forks: 155
  • Open Issues: 11
  • Releases: 0
Created almost 14 years ago · Last pushed about 1 year ago
Metadata Files
Readme Changelog License

README.md

analytics-python

======= Run Python Tests

.github/workflows/tests.yml

analytics-python is a python client for Segment

⚠️ Maintenance ⚠️

This library is in maintenance mode. It will send data as intended, but receive no new feature support and only critical maintenance updates from Segment.

You can't fix what you can't measure

Analytics helps you measure your users, product, and business. It unlocks insights into your app's funnel, core business metrics, and whether you have a product-market fit.

🚀 How to get started

  1. Collect analytics data from your app(s).
    • The top 200 Segment companies collect data from 5+ source types (web, mobile, server, CRM, etc.).
  2. Send the data to analytics tools (for example, Google Analytics, Amplitude, Mixpanel).
    • Over 250+ Segment companies send data to eight categories of destinations such as analytics tools, warehouses, email marketing, and remarketing systems, session recording, and more.
  3. Explore your data by creating metrics (for example, new signups, retention cohorts, and revenue generation).
    • The best Segment companies use retention cohorts to measure product-market fit. Netflix has 70% paid retention after 12 months, 30% after 7 years.

Segment collects analytics data and allows you to send it to more than 250 apps (such as Google Analytics, Mixpanel, Optimizely, Facebook Ads, Slack, Sentry) just by flipping a switch. You only need one Segment code snippet, and you can turn integrations on and off at will, with no additional code. Sign up with Segment today.

🤔 Why?

  1. Power all your analytics apps with the same data. Instead of writing code to integrate all of your tools individually, send data to Segment, once.

  2. Install tracking for the last time. We're the last integration you'll ever need to write. You only need to instrument Segment once. Reduce all of your tracking code and advertising tags into a single set of API calls.

  3. Send data from anywhere. Send Segment data from any device, and we'll transform and send it on to any tool.

  4. Query your data in SQL. Slice, dice, and analyze your data in detail with Segment SQL. We'll transform and load your customer behavioral data directly from your apps into Amazon Redshift, Google BigQuery, or Postgres. Save weeks of engineering time by not having to invent your data warehouse and ETL pipeline.

    For example, you can capture data on any app: python analytics.track('Order Completed', { price: 99.84 }) Then, query the resulting data in SQL: sql select * from app.order_completed order by price desc

👨‍💻 Getting Started

Install segment-analytics-python using pip:

bash pip3 install segment-analytics-python

or you can clone this repo: ```bash git clone https://github.com/segmentio/analytics-python.git

cd analytics-python

sudo python3 setup.py install ```

Now inside your app, you'll want to set your write_key before making any analytics calls:

```python import segment.analytics as analytics

analytics.writekey = 'YOURWRITEKEY' `` **Note** If you need to send data to multiple Segment sources, you can initialize a new Client for eachwritekey`

🚀 Startup Program

If you are part of a new startup (<$5M raised, <2 years since founding), we just launched a new startup program for you. You can get a Segment Team plan (up to $25,000 value in Segment credits) for free up to 2 years — apply here!

Documentation

Documentation is available at https://segment.com/libraries/python.

License

WWWWWW||WWWWWW W W W||W W W || ( OO )__________ / | \ /o o| MIT \ \___/||_||__||_|| * || || || || _||_|| _||_|| (__|__|(__|__|

(The MIT License)

Copyright (c) 2013 Segment Inc. friends@segment.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

forthebadge

Owner

  • Name: Segment
  • Login: segmentio
  • Kind: organization
  • Email: friends@segment.com
  • Location: San Francisco, CA

GitHub Events

Total
  • Issues event: 7
  • Watch event: 11
  • Delete event: 14
  • Issue comment event: 33
  • Push event: 21
  • Pull request review comment event: 8
  • Pull request review event: 16
  • Pull request event: 33
  • Fork event: 1
  • Create event: 17
Last Year
  • Issues event: 7
  • Watch event: 11
  • Delete event: 14
  • Issue comment event: 33
  • Push event: 21
  • Pull request review comment event: 8
  • Pull request review event: 16
  • Pull request event: 33
  • Fork event: 1
  • Create event: 17

Committers

Last synced: 11 months ago

All Time
  • Total Commits: 389
  • Total Committers: 66
  • Avg Commits per committer: 5.894
  • Development Distribution Score (DDS): 0.853
Past Year
  • Commits: 14
  • Committers: 5
  • Avg Commits per committer: 2.8
  • Development Distribution Score (DDS): 0.643
Top Committers
Name Email Commits
Ilya Volodarsky i****o@m****u 57
Shane Duvall s****l@m****m 51
Nhi Nguyen n****n@s****m 37
dependabot[bot] 4****] 33
Pablo Berganza p****a@a****m 24
pho3nix h****r@g****m 23
Michael Grosse Huelsewiesche m****e@t****m 17
Calvin French-Owen c****n@c****o 14
Calvin French-Owen c****n@s****o 11
Joe Gershenson j****e@s****m 10
Prateek Srivastava f****k@g****m 7
Daniel Jackins d****s@g****m 7
nhi-nguyen n****n 6
Samuel Dion-Girardeau s****u@g****m 6
Pooya Jaferian p****j@g****m 6
Paul Kuruvilla r****k@g****m 6
Thomas Grainger t****n@g****m 5
Peter Reinhardt p****r@s****o 4
kevingilliard k****5@g****m 4
David Pal d****l@i****m 4
Kelly Lu l****d@g****m 3
Samantha Hughes s****k@g****m 3
Hadrien David h****n@e****m 3
Devin Fee d****e@g****m 2
Alex Louden a****x@l****m 2
Andrew Sherepa a****a@g****m 2
Paul Oswald p****d@g****m 2
Stefan Wojcik w****n@g****m 2
Andy Freeland a****y@a****t 1
Amir Abushareb y****s@i****m 1
and 36 more...

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 69
  • Total pull requests: 305
  • Average time to close issues: 6 months
  • Average time to close pull requests: 28 days
  • Total issue authors: 53
  • Total pull request authors: 36
  • Average comments per issue: 1.84
  • Average comments per pull request: 1.54
  • Merged pull requests: 89
  • Bot issues: 0
  • Bot pull requests: 228
Past Year
  • Issues: 5
  • Pull requests: 43
  • Average time to close issues: 4 months
  • Average time to close pull requests: 28 days
  • Issue authors: 5
  • Pull request authors: 8
  • Average comments per issue: 0.6
  • Average comments per pull request: 1.26
  • Merged pull requests: 17
  • Bot issues: 0
  • Bot pull requests: 25
Top Authors
Issue Authors
  • nd4p90x (10)
  • samueldg (5)
  • shughes-uk (2)
  • joetheone (2)
  • MichaelGHSeg (2)
  • hobbestigrou (1)
  • sushruta (1)
  • jklukas (1)
  • jprafael (1)
  • EvanFarrell (1)
  • jdevera (1)
  • dependabot[bot] (1)
  • kairichard (1)
  • pecheneff (1)
  • LukGerman (1)
Pull Request Authors
  • dependabot[bot] (293)
  • nd4p90x (25)
  • MichaelGHSeg (16)
  • heitorsampaio (6)
  • samueldg (2)
  • DavidPal (2)
  • aldev12 (2)
  • k4nar (2)
  • shughes-uk (2)
  • kim5566 (2)
  • pcorpet (2)
  • lerela (1)
  • Natim (1)
  • sugatoray (1)
  • anoonan (1)
Top Labels
Issue Labels
support (6) improvement (6) docs (1) jira (1) dependencies (1)
Pull Request Labels
dependencies (293) improvement (6) python (6) support (2) docs (2)

Packages

  • Total packages: 4
  • Total downloads:
    • pypi 5,575,442 last-month
  • Total docker downloads: 37,444,559
  • Total dependent packages: 50
    (may contain duplicates)
  • Total dependent repositories: 677
    (may contain duplicates)
  • Total versions: 55
  • Total maintainers: 3
pypi.org: analytics-python

The hassle-free way to integrate analytics into any python application.

  • Versions: 42
  • Dependent Packages: 26
  • Dependent Repositories: 659
  • Downloads: 2,930,709 Last month
  • Docker Downloads: 13,011,112
Rankings
Downloads: 0.2%
Dependent packages count: 0.4%
Dependent repos count: 0.5%
Docker downloads count: 0.6%
Average: 1.6%
Forks count: 3.8%
Stargazers count: 4.3%
Maintainers (2)
Last synced: 10 months ago
pypi.org: segment-analytics-python

The hassle-free way to integrate analytics into any python application.

  • Versions: 9
  • Dependent Packages: 22
  • Dependent Repositories: 8
  • Downloads: 2,643,184 Last month
  • Docker Downloads: 24,433,447
Rankings
Downloads: 0.4%
Docker downloads count: 0.7%
Dependent packages count: 1.1%
Average: 2.6%
Forks count: 3.8%
Stargazers count: 4.3%
Dependent repos count: 5.3%
Maintainers (1)
Last synced: 11 months ago
pypi.org: segment

The hassle-free way to integrate analytics into any python application.

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 10
  • Downloads: 1,549 Last month
Rankings
Forks count: 3.8%
Stargazers count: 4.3%
Dependent repos count: 4.7%
Average: 5.1%
Downloads: 5.3%
Dependent packages count: 7.3%
Maintainers (1)
Last synced: 10 months ago
conda-forge.org: analytics-python

analytics-python is a python client for [Segment](https://segment.com) <div align="center"> <img src="https://user-images.githubusercontent.com/16131737/53616895-a1142d80-3b99-11e9-8e0e-594c0b0dcdc9.png"/> <p><b><i>You can't fix what you can't measure</i></b></p> </div> Analytics helps you measure your users, product, and business. It unlocks insights into your app's funnel, core business metrics, and whether you have a product-market fit. PyPI: [https://pypi.org/project/analytics-python](https://pypi.org/project/analytics-python)

  • Versions: 2
  • Dependent Packages: 2
  • Dependent Repositories: 0
Rankings
Forks count: 14.2%
Dependent packages count: 19.5%
Average: 22.7%
Stargazers count: 22.9%
Dependent repos count: 34.0%
Last synced: 11 months ago

Dependencies

setup.py pypi
  • backoff >=1.10,<3.0
  • monotonic *
  • python-dateutil *
  • requests *
.github/workflows/main.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v3 composite
.github/workflows/tests.yml actions
  • ./ * composite
  • actions/checkout v3 composite
requirements.txt pypi
  • Cerberus ==1.3.4
  • Jinja2 ==3.0.1
  • MarkupSafe ==2.0.1
  • Pygments ==2.11.2
  • aiohttp ==3.7.4.post0
  • appdirs ==1.4.4
  • astroid ==1.6.6
  • async-timeout ==3.0.1
  • attrs ==21.2.0
  • backoff ==1.10.0
  • bleach ==4.1.0
  • botocore ==1.29.40
  • certifi ==2021.5.30
  • chardet ==4.0.0
  • charset-normalizer ==2.0.6
  • colorama ==0.4.4
  • dephell ==0.8.3
  • dephell-archive ==0.1.7
  • dephell-argparse ==0.1.3
  • dephell-changelogs ==0.0.1
  • dephell-discover ==0.2.10
  • dephell-licenses ==0.1.7
  • dephell-links ==0.1.5
  • dephell-markers ==1.0.3
  • dephell-pythons ==0.1.15
  • dephell-setuptools ==0.2.4
  • dephell-shells ==0.1.5
  • dephell-specifier ==0.2.2
  • dephell-venvs ==0.1.18
  • dephell-versioning ==0.1.2
  • docutils ==0.17.1
  • entrypoints ==0.3
  • flake8 ==3.7.9
  • git-remote-codecommit ==1.16
  • idna ==3.2
  • importlib-metadata ==4.11.2
  • isort ==5.9.3
  • jmespath ==1.0.1
  • keyring ==23.5.0
  • lazy-object-proxy ==1.6.0
  • m2r ==0.2.1
  • mccabe ==0.6.1
  • mistune ==0.8.4
  • mock ==2.0.0
  • monotonic ==1.6
  • multidict ==5.1.0
  • packaging ==21.0
  • pbr ==5.6.0
  • pexpect ==4.8.0
  • pkginfo ==1.8.2
  • protobuf ==3.15.7
  • ptyprocess ==0.7.0
  • pycodestyle ==2.5.0
  • pyflakes ==2.1.1
  • pylint ==1.9.3
  • pyparsing ==2.4.7
  • python-dateutil ==2.8.2
  • readme-renderer ==32.0
  • requests ==2.26.0
  • requests-toolbelt ==0.9.1
  • rfc3986 ==2.0.0
  • ruamel.yaml ==0.17.16
  • ruamel.yaml.clib ==0.2.6
  • shellingham ==1.4.0
  • six ==1.15.0
  • termcolor ==1.1.0
  • tomlkit ==0.7.2
  • tqdm ==4.63.0
  • twine ==3.8.0
  • typing-extensions ==3.10.0.2
  • urllib3 ==1.26.6
  • webencodings ==0.5.1
  • wrapt ==1.12.1
  • yarl ==1.6.3
  • yaspin ==2.1.0
  • zipp ==3.7.0