{"id":15051166,"url":"https://github.com/venthur/python-popcon","last_synced_at":"2025-04-10T02:41:15.803Z","repository":{"id":1016503,"uuid":"844019","full_name":"venthur/python-popcon","owner":"venthur","description":"Query Debian's Popcon Database with Python","archived":false,"fork":false,"pushed_at":"2023-08-23T06:26:57.000Z","size":93,"stargazers_count":4,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-01T22:00:28.238Z","etag":null,"topics":["cli","debian","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/venthur.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2010-08-17T16:02:17.000Z","updated_at":"2023-06-20T14:00:25.000Z","dependencies_parsed_at":"2024-09-24T21:31:27.476Z","dependency_job_id":null,"html_url":"https://github.com/venthur/python-popcon","commit_stats":{"total_commits":107,"total_committers":5,"mean_commits":21.4,"dds":"0.26168224299065423","last_synced_commit":"8f3835ccbb6fa9d8084d38ad4ce16c0e6e3fed4d"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venthur%2Fpython-popcon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venthur%2Fpython-popcon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venthur%2Fpython-popcon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venthur%2Fpython-popcon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/venthur","download_url":"https://codeload.github.com/venthur/python-popcon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248144912,"owners_count":21055008,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","debian","python"],"created_at":"2024-09-24T21:31:23.170Z","updated_at":"2025-04-10T02:41:15.775Z","avatar_url":"https://github.com/venthur.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# python-popcon\n\nGet Debian [popularity contest](https://popcon.debian.org/) values for given\npackages.\n\n\n## Installation\n\n```bash\n$ pip install popcon\n```\n\n\n## Usage\n\nThe usage of this module is easy:\n\n```python\n\u003e\u003e\u003e import popcon\n\u003e\u003e\u003e popcon.packages(['reportbug-ng'])\n{'reportbug-ng': 323}\n\u003e\u003e\u003e popcon.packages(['reportbug-ng', 'reportbug'])\n{'reportbug-ng': 323, 'reportbug': 75065}\n```\n\nThe raw data (vote, old, recent, no-file) is also available, the sum of the raw\nnumbers is the number of installations as reported by `popcon.package`.\n\n```python\n\u003e\u003e\u003e popcon.packages_raw(['reportbug-ng', 'reportbug'])\n{'reportbug-ng': Package(vote=50, old=187, recent=86, no_files=0),\n 'reportbug': Package(vote=5279, old=59652, recent=10118, no_files=16)}\n```\n\nBehind the scene popcon will try to use cached information saved in a file in\nthe ~/.cache/popcon directory. If the relevant file is not available, or older\nthan `EXPIRY` seconds (default is 7 days) it will download fresh data and save\nthat.\n\nThe cached data will be kept in memory unless `KEEP_DATA` is set to False.\n\n\n## Command Line Interface\n\n```\npopcon reportbug python\n             PACKAGE VALUE\n           reportbug 180558\n              python 110709\n```\n\nit also supports a more verbose mode on the command line:\n\n```\npopcon --verbose reportbug python\n             PACKAGE VOTE       OLD        RECENT     NO FILES\n           reportbug 5929       149243     25315      71\n              python 3985       103591     3066       67\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fventhur%2Fpython-popcon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fventhur%2Fpython-popcon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fventhur%2Fpython-popcon/lists"}