Giter VIP home page Giter VIP logo

pypi-analytics's Introduction

Better PyPI stats

Anyone can use https://pypistats.org/ to see the downloads for a given PyPI package. However, the statistics and visualizations provided by the website are limited. The purpose of this project is to provide a better alternative with Ibis, ClickHouse, and ML-powered predictive analytics.

Then entire pypi dataset is approaching a trillion rows of data. Fortunately, with the aggregated data provided by ClickHouse on a public playground instance and Ibis for transformation, we can easily process this data in an embedded dashboard application.

WARNING: work in progress

Connecting to data

import ibis

ibis.options.interactive = True

host = "clickpy-clickhouse.clickhouse.com"
port = 443
user = "play"
database = "pypi"

con = ibis.clickhouse.connect(
  host=host,
  port=port,
  user=user,
  database=database,
)

con.list_tables()

Work needed

We need to finalize on a dashboarding framework (Quarto dashboard has some issues with interactive inputs and plotly), replicate the existing PyPI stats visualizations, add new visualizations, and more.

A user should be able to input their package name and see all relevant stats, then be able to drill into specific metrics and visualizations for a given package.

ML predictions

Using IbisML and time-series forecasting frameworks, we can predict the downloads over time and show visualizations for these predictions.

pypi-analytics's People

Contributors

jitingxu1 avatar lostmygithubaccount avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.