psincraian / pepy Goto Github PK
View Code? Open in Web Editor NEWpepy is a site to get statistics information about any Python package.
Home Page: https://pepy.tech
License: MIT License
pepy is a site to get statistics information about any Python package.
Home Page: https://pepy.tech
License: MIT License
Hi,
Is it possible to add the style option for the generated badge:
?style=social
?style=flat
?style=plastic
?style=for-the-badge
etc.
Do you think it's feasable?
Regards,
First of all, thanks a lot for this awesome and well polished website. I don't want this to feel like I'm criticizing your work.
I'm a bit unclear on why the pepy
number (122,332) for my package is so much larger than the one reported by the BigQuery dataset:
$ .../bin/pypinfo bezier
Served from cache: True
Data processed: 0.00 B
Data billed: 0.00 B
Estimated cost: $0.00
| download_count |
| -------------- |
| 14,253 |
I realize the PyPI dropped a bunch of historical data, so I assume you're cobbling together download data from multiple sources?
Hi,
as you can see the badge for this project (recently added) doesn't work:
https://github.com/fabiocaccamo/django-extra-settings
Searching for the project on the PePy
website return a 404:
https://pepy.tech/project/django-extra-settings
I have recenlty hosted my project in PYPI and when i'm trying to search project in Pepy Tech continous loading indicator is displaying
My Project: pytest-metrics
URL - https://pepy.tech/project/pytest-metrics
If we could show some no data availlable or some message that could be good for user
I have tried with many vpns. Cannot get any package result from pepy.tech/project/ endpoint.
Hello. First of all, thank you for your work with Pepy, it looks great!
I'm a maintainer of simple-icons project, which is the main provider for https://shields.io badge icons. The Alexa ranking indicator for Pepy (~600K) is approaching the minimum position that a brand requires to be included in simple-icons (500K or 5K Github stars). When included, we could generate an included logo badge of downloads showing the Pepy logo using https://shields.io.
But for this, we need an available image of the Pepy logo in vector format (SVG, EPS ...) or a raster image (like the current logo) but of higher quality. Could you provide it?
Hello, thanks for your project, recently I've changed my PyPI downloads badge from shields.io to your one, so could I change
downloads
to Downloads
?
It's looks not so cute when one of inline bars isn't capitalised : https://github.com/pbelskiy/aiojenkins
Firstly, let me just say how amazing the this project is. The is minimalistic and has all the necessary features for me! But recently I realized that the url in my downloads badge is not working.
Below is the URL:
https://pepy.tech/project/contextualspellcheck/week
Current Behavior:
404 error
Expected Behavior:
Page should load with the information. Like it used to open earlier.
Another reason for opening this bug is in my project page the /week
download still shows the same URL.
Hi,
I would like to change the color of my badge. Any way I can do that?
If you visit an HTTP version of a page, it should redirect to the HTTPS version.
For example:
As the title suggests, strip any whitespace the user may have entered before querying for the package in PyPI. Currently an error is displayed saying the package doesn’t exist.
On https://pepy.tech/project/cryptography/personalized-badge
If I enter a value with spaces for the descriptive text, then they are not URL encoded in the resulting URL.
Last two days 10, 11 april stats are not displaying for my projects
Sample project: https://pepy.tech/project/pytest-historic
I'm using a personalized badge in a github readme (here) and noticed that the badge does not update over multiple days (i.e., since it was added to the readme): At the moment, the badge shows 94k downloads, where the reported number on pepy.tech has been higher than 95k for a couple of days.
Upon closer inspection, I noticed that the caching headers for personalized badges are different from the caching headers for 'regular badges. Amongst other things, it appears the cache-control:max-age
is not set for personalized badges (set to 1 day for regular badges).
Hey Petru, I just found this bug:
I made a snapshot of the current state using the wayback machine.
I love using pepy, keep up the great work!
Hi !
Since badges are generated using shields.io
it would be great if users could also control the styling, possibly by passing the HTTP query arguments to shields.io
directly. I'm an avid fan of the flat-square style, and would love to use it with badges from pepy.tech
to display on my projects ! 😉
So that a user could programmatically fetch download counts and so on.
Eg. api.pepy.tech/project/<package_name>/total
could return the total download count and so.
Would be quite useful.
Hi,
I am trying to use pepy.tech badges on my repository - but they don't seem to be properly updating until I repaste the link into the Markdown and change the color. Is there any fix for this? (See https://github.com/vector-ai/vectorhub for an example).
The badge numbers seem to be stuck on 5.9k but upon clicking and visiting the link, they are actually 6.5K (as well as checked on the stats).
Also let me know if this is not the right place to be asking this question as I cannot seem to find a better forum so placing my question here for now.
P.S. Thanks for open-sourcing this and making adding badges to repositories easily!
Please, add an option to show top 5 most downloaded versions (not just top 3 most recent ones).
Hi Team
The downloads badge seems to be cached on github repo and is not refreshing even though the stats have change. Can you make sure you have set the cache-expiration correctly in the badges so that Github server doesn't cache the images.
Please check : github/markup#224 and fix as per guidelines
Please change this line in https://github.com/psincraian/pepy/blob/master/pepy/infrastructure/web/__init__.py#L49
return Response(badge.image, mimetype="image/svg+xml", headers={"Cache-Control": "max-age=86400"})
to
return Response(badge.image, mimetype="image/svg+xml", headers={"Cache-Control": "no-cache"})
Would be nice to visualize how the total downloads changes per day.
Hi, thanks for running and providing pepy.tech!
While preparing information for an OSS grant opportunity, we noticed that the badge for Bokeh only shows "1M" per month, while the actual details page reveals that total downloads are actually 1.4M per month. Both can be seen here: https://pepy.tech/project/bokeh
We almost listed the former (smaller) number on our grant proposal (based on the badge) until someone happened to check more carefully. For better or worse, these kinds of metrics are important for OSS projects seeking funding, and it would be helpful if the badges always showed at least two significant figures so that when evaluation committees go looking, they see the projects in the best light.
The graph for package gatenlp shows versions which do not exist:
https://pepy.tech/project/gatenlp
There is no 3.x version at all for that package and both pystats and pypi correctly show the versions that actually exist:
It is possible that the confusion arises because there was a different previous project with that name which has now be renamed. Apparently pypi and pystats correctly deal with this while pepy does not.
Thank you for this package! I manage the stumpy
Python package and I query daily downloads via:
https://api.pepy.tech/api/projects/stumpy
Today (September 19, 2020), I noticed that the total downloads count actually went down compared to yesterday:
{"id": "stumpy", "total_downloads": 36691, "downloads": {"2020-09-16": 158, "2020-09-15": 176, "2020-09-14": 90, "2020-09-13": 110, "2020-09-12": 117, "2020-09-11": 78, "2020-09-10": 79, "2020-09-09": 80, "2020-09-08": 120, "2020-09-07": 113, "2020-09-06": 113, "2020-09-05": 60, "2020-09-04": 115, "2020-09-03": 151, "2020-09-02": 235, "2020-09-01": 311, "2020-08-31": 124, "2020-08-30": 240, "2020-08-29": 92, "2020-08-28": 117, "2020-08-27": 109, "2020-08-26": 118, "2020-08-25": 206, "2020-08-24": 241, "2020-08-23": 113, "2020-08-22": 55, "2020-08-21": 86, "2020-08-20": 189}}
Yesterday (September 18, 2020), had a total download of "36801". In fact today's total download number seems to be the same as September 17 (two days ago).
Hi there ! First of all, thanks a lot for this web app, it's finally fun to search for project metadata.
Now comes the time I nitpick: as the proud owner of the fs.sshfs
, I wanted to check its metadata. Unfortunately, it does seem like PePy is storing the package using the PyPI canonical name: fs-sshfs
, and I can access to it like so.
Since there are some other packages with dots in their names on PyPI, it would be great if those were escaped as dashes when trying to query PePy for their stats !
I'm not saying you and @crflynn need to join forces or anything, but just in case you didn't know about each other...
https://pepy.tech/project/PIL says:
Error 404
Project PIL was not found. These can be the reasons:
- You made a typo and the project doesn't exist.
- If the project exists in PyPI, probably, it's a new project. The downloads are updated once a day, check our FAQ about when the downloads are updated.
If not of the above is the case please open an issue in our GitHub.
The project does exist, although last release in 2006:
Is there any way to get the package information or download counts information in json format?
I would like to use the data to correlate with openSUSE package names, which use the 'real' name supplied in setup.py, i.e. not-normalised.
I've been doing a bit of research at hugovk/top-pypi-packages#4, and the raw data from bigquery can include this, with a very small perf hit, or it can be added afterwards by doing lookups against PyPI directly, which would be a significant extra effort to build and more work for the batch jobs.
I'm putting in the effort - I want to know where I should put the effort, here or somewhere else. If here, would you prefer it coming from bigquery, or added afterwards from PyPI. The latter makes sense if there are other details from PyPI that you believe are needed in this project which cant be obtained from the bigquery dataset.
With the python package DiffPriv, I noticed that the default versions shown on the graph are not the most recent. It shows versions
v1.0.0a0
, v1.0.0b0
, and v1,0,0rc0
and not v1.0.0
which is the most recent.
Dear @psincraian,
Thank you for this website it is amazing!
I have two questions:
-I was wondering how difficult it would be to implement the same for the pypi-test repository?
-When are the counts updated? and how are they made?
Cheers,
On PYPI: https://pypi.org/project/alexflipnote.py/
Meanwhile pepy: https://pepy.tech/project/alexflipnote.py
OS: Ubuntu 17.10
I have docker compose installed. I don't know docker compose so I can not debug but here is the output
(pepy-jKDOVG7S) amirouche@ubudec:~/src/python/ii/pepy$ make start-containers
docker-compose -f infrastructure/docker-compose.yml --project-directory . up -d
Define and run multi-container applications with Docker.
Usage:
docker-compose [-f <arg>...] [options] [COMMAND] [ARGS...]
docker-compose -h|--help
Options:
-f, --file FILE Specify an alternate compose file (default: docker-compose.yml)
-p, --project-name NAME Specify an alternate project name (default: directory name)
--verbose Show more output
-v, --version Print version and exit
-H, --host HOST Daemon socket to connect to
--tls Use TLS; implied by --tlsverify
--tlscacert CA_PATH Trust certs signed only by this CA
--tlscert CLIENT_CERT_PATH Path to TLS certificate file
--tlskey TLS_KEY_PATH Path to TLS key file
--tlsverify Use TLS and verify the remote
--skip-hostname-check Don't check the daemon's hostname against the name specified
in the client certificate (for example if your docker host
is an IP address)
Commands:
build Build or rebuild services
bundle Generate a Docker bundle from the Compose file
config Validate and view the compose file
create Create services
down Stop and remove containers, networks, images, and volumes
events Receive real time events from containers
exec Execute a command in a running container
help Get help on a command
kill Kill containers
logs View output from containers
pause Pause services
port Print the public port for a port binding
ps List containers
pull Pulls service images
push Push service images
restart Restart services
rm Remove stopped containers
run Run a one-off command
scale Set number of containers for a service
start Start services
stop Stop services
unpause Unpause services
up Create and start containers
version Show the Docker-Compose version information
Makefile:8 : la recette pour la cible « start-containers » a échouée
make: *** [start-containers] Erreur 1
(pepy-jKDOVG7S) amirouche@ubudec:~/src/python/ii/pepy$ APPLICATION_ENV=dev gunicorn pepy.infrastructure.web.__init__:app
[2018-07-08 00:18:03 +0200] [30288] [INFO] Starting gunicorn 19.9.0
[2018-07-08 00:18:03 +0200] [30288] [INFO] Listening at: http://127.0.0.1:8000 (30288)
[2018-07-08 00:18:03 +0200] [30288] [INFO] Using worker: sync
[2018-07-08 00:18:03 +0200] [30291] [INFO] Booting worker with pid: 30291
^C[2018-07-08 00:19:49 +0200] [30288] [INFO] Handling signal: int
[2018-07-08 00:19:49 +0200] [30291] [INFO] Worker exiting (pid: 30291)
[2018-07-08 00:19:49 +0200] [30288] [INFO] Shutting down: Master
(pepy-jKDOVG7S) amirouche@ubudec:~/src/python/ii/pepy$ make
acceptance-tests integration-tests start tests
format-code migrations start-containers unit-tests
install remove-containers stop-containers
(pepy-jKDOVG7S) amirouche@ubudec:~/src/python/ii/pepy$ make start
start start-containers
(pepy-jKDOVG7S) amirouche@ubudec:~/src/python/ii/pepy$ make start
start start-containers
(pepy-jKDOVG7S) amirouche@ubudec:~/src/python/ii/pepy$ make start-containers
docker-compose -f infrastructure/docker-compose.yml --project-directory . up -d
Define and run multi-container applications with Docker.
Usage:
docker-compose [-f <arg>...] [options] [COMMAND] [ARGS...]
docker-compose -h|--help
Options:
-f, --file FILE Specify an alternate compose file (default: docker-compose.yml)
-p, --project-name NAME Specify an alternate project name (default: directory name)
--verbose Show more output
-v, --version Print version and exit
-H, --host HOST Daemon socket to connect to
--tls Use TLS; implied by --tlsverify
--tlscacert CA_PATH Trust certs signed only by this CA
--tlscert CLIENT_CERT_PATH Path to TLS certificate file
--tlskey TLS_KEY_PATH Path to TLS key file
--tlsverify Use TLS and verify the remote
--skip-hostname-check Don't check the daemon's hostname against the name specified
in the client certificate (for example if your docker host
is an IP address)
Commands:
build Build or rebuild services
bundle Generate a Docker bundle from the Compose file
config Validate and view the compose file
create Create services
down Stop and remove containers, networks, images, and volumes
events Receive real time events from containers
exec Execute a command in a running container
help Get help on a command
kill Kill containers
logs View output from containers
pause Pause services
port Print the public port for a port binding
ps List containers
pull Pulls service images
push Push service images
restart Restart services
rm Remove stopped containers
run Run a one-off command
scale Set number of containers for a service
start Start services
stop Stop services
unpause Unpause services
up Create and start containers
version Show the Docker-Compose version information
Makefile:8 : la recette pour la cible « start-containers » a échouée
make: *** [start-containers] Erreur 1
I'd love to see my monthly downloads. Not sure if the API allows for that though.
It looks like requests has been downloaded 1G
times! One gazillion times! That's huge! 😁
I think the units are set to bytes, which means requests is showing as being downloaded 1 Giga
times. As the shorthand for millions and Mega is both M
and they are both at the factor of 1e6
this has not been noticed. But when a number moves into the 1e9
range things are broken.
I'm sure you're aware that https://pypistats.org/ offers similar statistics as pepy.tech. There is however a large discrepancy between the data. For one project of mine it's 1k vs 3.9k downloads a month (see below). Any idea what may be causing this? Got to say I distrust the 3.9k (which is an average of 130 per day) looking at pepy's own graph below.
https://pypistats.org/packages/quadpy
https://pepy.tech/project/quadpy
Hey there. Awesome project. Is it possible to get a badge from pepy without the mirrors? For my project, the mirrors stats are much larger than the non-mirror ones because it's still a young project. I wouldn't want to be misleading with the badge on my README
References
We can save the download stats per file or version, (as mentioned by @jayvdb)[https://github.com//issues/128#issuecomment-491665411] to be able to show this to the end users.
While checking the statistics for https://pepy.tech/project/numpy the download count should show 1B, but it shows 1G
PyPI link
https://pypi.org/project/numpy
Total downloads: 1,402,942,658
Total downloads - 30 days: 78,825,979
Total downloads - 7 days: 17,972,008
Nicely done! Thank you!
I'd like to put pepy badge on GitHub README, but I can't, because HTTP resources can't be fetched from HTTPS pages.
The pepy badge shows the count for all (*
) versions, but this value is not included by default in the graphs. It is not clear that *
is a valid filter at all, either. It'd make things clearer if *
was included in the graphs by default.
Is there a hello world example, e.g. to return downloads for a given library?
I think 'last month downloads' is more relevant that overall download.
Let me know if you agree with this I will work on a patch then.
Tx again for this awesome project.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.