Hi,
I was curious how much usage does pytest and it's plugins get. Of course
that's quite impossible to find out. The only very loosely related thing is
a statistics of downloads from PyPi .
I tried to pick download counts of releases older than 15 days but the
script might have had a bug anyway. The results seem quite plausible so
here you go.
The top results:
[image: Inline image 1]
Later version of the script, printing CSV:
import datetime
from xmlrpclib import ServerProxy
now = datetime.datetime.now()
package_stats = []
client = ServerProxy('https://pypi.python.org/pypi', use_datetime=True)
for package in client.search({'name': 'pytest'}):
name = package['name']
if name.startswith('pytest'):
days_ago = 0
downloads = 0
release = None
for release in client.package_releases(name):
for url in client.release_urls(name, release):
days_ago = round((now -
url['upload_time']).total_seconds()/3600/24, 1)
downloads += url['downloads']
break
package_stats.append([name, release, days_ago, downloads])
for stat in package_stats:
print(",".join([str(s) for s in stat]))
---
Tibor
_______________________________________________
pytest-dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pytest-dev