From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#50686: Show number of downloads on packages on GNU ELPA/NonGNU ELPA Date: Sat, 09 Mar 2024 09:37:18 -0500 Message-ID: References: <985acef0-69f1-39c3-1354-9a49149c9df9@alphapapa.net> <1f2a10bf-c135-480d-9b79-17b64090fc7e@alphapapa.net> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4751"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 50686@debbugs.gnu.org, stefan@marxist.se, larsi@gnus.org To: Adam Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 09 15:38:53 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rixqd-00011S-Go for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Mar 2024 15:38:51 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rixqJ-0005jb-7O; Sat, 09 Mar 2024 09:38:31 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rixqI-0005jH-3s for bug-gnu-emacs@gnu.org; Sat, 09 Mar 2024 09:38:30 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rixqH-0006yH-SL for bug-gnu-emacs@gnu.org; Sat, 09 Mar 2024 09:38:29 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rixqn-00087h-SJ for bug-gnu-emacs@gnu.org; Sat, 09 Mar 2024 09:39:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Mar 2024 14:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50686 X-GNU-PR-Package: emacs Original-Received: via spool by 50686-submit@debbugs.gnu.org id=B50686.170999508531144 (code B ref 50686); Sat, 09 Mar 2024 14:39:01 +0000 Original-Received: (at 50686) by debbugs.gnu.org; 9 Mar 2024 14:38:05 +0000 Original-Received: from localhost ([127.0.0.1]:60992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rixps-00086F-IW for submit@debbugs.gnu.org; Sat, 09 Mar 2024 09:38:04 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:44146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rixpn-00085d-He for 50686@debbugs.gnu.org; Sat, 09 Mar 2024 09:38:03 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 00BC7444743; Sat, 9 Mar 2024 09:37:19 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1709995038; bh=Bop99NIriK4ceFlL8mUpg3CIiEM2xfPSD7CF22kb4cU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=e2c8EtyFKypnRJWOvR0ycJwv0ltVXlhOvQxf22wEIYdVml7E38uJ2jQckiltncWYa r0HRXeeLHNjvzkGJrDVUzUXR+sNjDtTZ+i1R+s3vYLNO0wGI623E758ttdpjS9RTCi sPlny7wqssFqL36q2CgxTLvai7jdVYWQChZaeXvPVTHZ2lZI7ifybDNEIi3lYpyrFz QtM9YvAJefQf+WbhJqCySiMdD/evkcbfqQqf+OxOW6JBUi2FcLFiYgA558uKah4TLO Tk01T4Kr76K+lShaHVYTeIZkXLD+MHvVYbHOxu9pTqlhZpAJyVy2wYf3FEFMRhTL8T T+jbsWpkjFZIg== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id A3C6B44473D; Sat, 9 Mar 2024 09:37:18 -0500 (EST) Original-Received: from pastel (69-165-153-56.dsl.teksavvy.com [69.165.153.56]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 769CB12030C; Sat, 9 Mar 2024 09:37:18 -0500 (EST) In-Reply-To: (Adam Porter's message of "Fri, 8 Mar 2024 17:20:17 -0600") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:281340 Archived-At: >> If you go to http://elpa.gnu.org/packages/ you'll now see a new column >> "Rank" which shows a percentile ranking for each package. > That's very cool. I guess it's not looking very far back in the download > data (yet?), I had the logs only for a two weeks or so (plus some old logs from many years ago, actually), indeed. > What are your plans for the stats from here? As the info is extracted from the logs it's added to a file that accumulates the counts per week per package. You can see the relevant code in the `elpa--wsl*` functions in: https://git.savannah.gnu.org/cgit/emacs/elpa.git/tree/elpa-admin.el?h=elpa-admin > e.g. it would be helpful to be able to see stats within a time period, > maybe a graph over time, Indeed. Patches welcome. > a list of downloads per version, etc. Currently I count the "interest" in the package, so I don't distinguish the version of the package, nor whether the access is for the tarball or the package's web page, or the package's readme.txt, or the package's badge. I'd like to the keep the stats database reasonably small (it's currently around 150kB, and I expect it'll take a year before it reaches 1MB), so I'd rather not segregate per version. Stefan