Skip to main content

Conda package stats CLI

Project description

PyPI Version Conda Version Python Versions CI Status Documentation Status License

A command-line tool and Python library to query download statistics for conda packages from the Anaconda public dataset.

Features

  • Query overall download counts for any conda package

  • Filter by time period (specific month or date range)

  • Group statistics by platform, Python version, package version, or data source

  • Support for multiple packages in a single query

  • Works with historical data from 2017 onwards

Installation

Using conda / mamba / pixi (recommended):

conda install -c conda-forge condastats
# or
mamba install -c conda-forge condastats
# or
pixi add condastats
# or, to install as a global tool
pixi global install condastats

Using pip / uv / pipx:

pip install condastats
# or
uv pip install condastats
# or, run without installing
uvx condastats overall pandas --month 2024-01
pipx run condastats overall pandas --month 2024-01
# or, install as a global tool
pipx install condastats

Usage

Command Line

Get overall download counts for a package:

condastats overall pandas --month 2024-01

Get downloads grouped by platform:

condastats pkg_platform numpy --month 2024-01

Get downloads grouped by data source (anaconda vs conda-forge):

condastats data_source scipy --month 2024-01

Query multiple packages:

condastats overall pandas numpy dask --month 2024-01

Python API

from condastats import overall, pkg_platform, data_source

# Get total downloads for pandas in January 2024
downloads = overall("pandas", month="2024-01")
print(downloads)

# Get downloads by platform
by_platform = pkg_platform("pandas", month="2024-01")
print(by_platform)

# Get downloads over a date range
downloads = overall("numpy", start_month="2024-01", end_month="2024-06")
print(downloads)

Documentation

Full documentation is available at https://condastats.readthedocs.io

License

  • Free software: BSD-3-Clause license

Credits

Created by Sophia Man Yang.

Maintained by the conda-incubator community.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

condastats-0.3.0.tar.gz (172.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

condastats-0.3.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file condastats-0.3.0.tar.gz.

File metadata

  • Download URL: condastats-0.3.0.tar.gz
  • Upload date:
  • Size: 172.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for condastats-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e92b69c2096c18f58a6d1d8473f514cef82620379df542971b46a7aa0e3c6bca
MD5 f4f5b96284243ee2966b197d79f37a7c
BLAKE2b-256 05b629735e5307f4e5057cee8215d7099a0c5aef232085594d52a0dfc544e7e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for condastats-0.3.0.tar.gz:

Publisher: publish-to-pypi.yml on conda-incubator/condastats

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file condastats-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: condastats-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for condastats-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b8f2cfa7e99538e0f2a4d1d775365f82ff75bb115ce338a7c7436a60b17122b5
MD5 6d82ca7d2082574d543ca558a5c9573a
BLAKE2b-256 ec50afb322ab13dfea5c5f9fd8313ee4cf32b0a8558b81930c5439bbe6ce6a2f

See more details on using hashes here.

Provenance

The following attestation bundles were made for condastats-0.3.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on conda-incubator/condastats

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page