Giter VIP home page Giter VIP logo

pepy's People

Contributors

dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar gitbib avatar github-actions[bot] avatar hugovk avatar mightbesimon avatar miweiss avatar nidhaloff avatar oliver-zehentleitner avatar peterdemin avatar psincraian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pepy's Issues

Add a bit of documentation on where data comes from

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?

[enh] start graphing from the release date on

The pepy graph shows all versions as if they had existed forever:

screenshot

It'd be more instructive if the stats for each version started showing only from its release date on. This way, one could see if software had 0 downloads for a while after its release.

Vectorized or greater quality Pepy logo

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?

Badge with week in url path not working

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.

Strip leading/trailing whitespace

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.

Caching of Personalized Badges

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).

[Feature] Allow passing arguments to `shields.io` badges

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 ! 😉

[Feature] Possible API Endpoints

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.

Badge Not Updating Daily

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!

Downloads Badge Cached | Not refreshing

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"})

Additional sig figs in badges

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.

Total downloads rounded in badge ?

Hi Team,

I can see for my library that the total downloads are 1.3K but the badge shows 1K isn't it quite misleading because for the visitors, the numbers have not moved at all in the last 3 days.

Shouldn't there be atleast one decimal of precision ?

Downloads

Odd non-existing default versions shown in graph

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.

Shorten badge version

I discovered your project today, very nice one.

I am able to obtain the following badge: Downloads

However, I would like to be able to shorten it to 73k and not 73.44 thousands which takes a lot of place.
Is there any way to do this ?

Total Downloads Decreasing

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).

Handle package name escaping

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 !

Project PIL was not found, but project exists on PyPI

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:

download counts in json

Is there any way to get the package information or download counts information in json format?

Non-normalised package name

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.

Not showing most recent release on package diffpriv

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.

Pypi test

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,

Make start-container doesn't work

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

downloads per user

I'd love to see my monthly downloads. Not sure if the API allows for that though.

Wrong units for badges

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.

image

sum vs total?

I've looked at pepy.tech for the first time, and the numbers appeared too high to me. In the statistics, I see the two numbers sum and total

screenshot

and it's unclear to me what total is.

What is downloads=1G ?

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

image

Add HTTPS support

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.

show [*] (all versions) by default

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.

Question

Is there a hello world example, e.g. to return downloads for a given library?

Add badge with last month downloads

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.

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.