Code Monkey home page Code Monkey logo

Comments (3)

crflynn avatar crflynn commented on August 17, 2024 10

The with_mirrors and without_mirrors are not mutually exclusive sets of download counts like the other segmentations provided. In fact, the without_mirrors downloads are a subset of the downloads in with_mirrors.

Some entities will create a mirror, or clone, of the PyPI repository using a tool like bandersnatch for the sake of security or availability. This means that their mirror repository regularly syncs with PyPI by downloading all of the python packages available. Those downloads are recorded by PyPI with bandersnatch as the user-agent. pypistats.org filters downloads from known mirrors from the version and system segmentations on the website. You will see also that on days in which you release a new version of your package there will be many more downloads from mirrors, as active mirrors will sync with PyPI by downloading those new releases.

The existence of mirrors means that the downloads provided by PyPI and BigQuery add uncertainty to the actual usage of python packages. One might expect that mirrors will mask end-user downloads for more commonly used packages while simultaneously inflating the download counts of less common ones. We can't really be sure because the mirrors don't report subsequent downloads back to PyPI.

Downloads by mirrors are intentionally excluded from download breakdowns on pypistats.org because they do not represent end-users of the software. Instead, they serve as an alternative provider to other end-users on a separate (sometimes private) network.

We can, however, assume that PyPI serves a significant proportion of the python community's packaging downloads. Hopefully significant enough that the quantities provided here are relevant to package maintainers and representative of their users. There are other distributors like conda which also serve python packages, but their download data is not available like PyPI's as far as I'm aware, and thus are not incorporated in this website.

If you prefer to have download counts that include mirrors, I'm pretty sure that @hugovk 's pypistats package can provide that information.

from pypistats.org.

hugovk avatar hugovk commented on August 17, 2024

In some cases mirrors account for a large number of downloads. See here, which is using the same source data:

ofek/pypinfo#4 (comment)

ofek/pypinfo#4 (comment)

If you sum the with (a+b) and without (a) figures, you count the without figures twice (a+b+a).

from pypistats.org.

funilrys avatar funilrys commented on August 17, 2024

Thanks for the clear statements @hugovk @crflynn.

Closing.

from pypistats.org.

Related Issues (20)

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.