No known security advisories. The current version has no OSV.dev malware reports and no critical or high-severity vulnerabilities.

psycopg2 has 49.2M monthly downloads and 4K GitHub stars. Version 2.9.12 supports Python 3.9+, first published in 2010.

It is stably maintained under a copyleft license, last released in Apr 2026.

It is used by 1,088 tracked packages, including pgcopy, synapse-s3-storage-provider and django-heroku.

GitHub topics include postgresql, database and driver.

Shared Repository
This package shares its GitHub repository (psycopg/psycopg2) with 1 other package. Stars, forks, and other GitHub metrics reflect the entire repository.
Downloads
Day
1.2M
Week
11.6M
Month
49.2M
Stars
3.6K
Forks
547
Issues
20
Version
2.9.12

Package Insights

Score breakdown - each component scores 0-100, weighted by percentage
Maintenance
80
Popularity
77
Adoption
80
Community
75
Provenance
0
How the maintenance status was determined
Last commit
76 days ago
Monthly downloads
49,220,658
Active
Activity within 30 days
Stable
Activity within 31-180 days
Minimal
Activity within 181-365 days, or no activity data
At Risk
No activity for > 365 days, but > 10,000 monthly downloads
Archived
Repository flagged as archived on GitHub
How the popularity category was determined
Monthly downloads
49,220,658
Stars
3,642
Stars per 1k downloads
0.07
Industry Standard
> 10,000,000 monthly downloads
Hidden Gem
< 0.5 stars per 1k downloads and > 100,000 monthly downloads
Community Favorite
> 5 stars per 1k downloads
Rising Star
Balanced ratio of stars to downloads
Unknown
Fewer than 1,000 monthly downloads, or no star data
How download momentum is calculated
Week daily avg
1,657,448
Month daily avg
1,640,689
Momentum
+1.0%
((week_daily_avg - month_daily_avg) / month_daily_avg) * 100
Python version support tiers
requires_python
>=3.9
Cutting Edge
Minimum supported version is 3.12 or newer
Modern
Minimum supported version is 3.9, 3.10, or 3.11
Legacy
Supports 3.8 or older (or Python 2)
Unknown
No requires_python specified or unparseable
License categories
License
LGPL with exceptions
Permissive
MIT, Apache, BSD, ISC, Unlicense, CC0, etc.
Copyleft
GPL, LGPL, AGPL, MPL, EPL, etc.
Proprietary
Commercial, all rights reserved, custom EULAs
Unknown
No license specified, or none of the above match
How the release cadence was determined
Last release
76 days ago
Total releases
58
Releases/year
3.7
Rapid
Last release within 365 days and > 12 releases/year
Regular
Last release within 365 days
Slow
Last release 366-730 days ago
Stalled
Last release > 730 days ago, or no releases
Unknown
No usable release date available
How contributor risk was determined
Contributors
126
Monthly downloads
49,220,658
High Load
≤ 2 contributors and ≥ 50,000 monthly downloads
Moderate Load
< 10 contributors and ≥ 500,000 monthly downloads
Low Load
< 25 contributors and ≥ 5,000,000 monthly downloads, or sole maintainer with ≥ 10,000 monthly downloads
Balanced
Enough contributors for the package's popularity
Unknown
No contributor data available
Engagement
86
 
Issue Burden
5.5
per 1k stars
Discussions
23.6
per 1k stars
Fork Ratio
23.0%
contrib / forks
Stale Release
No
 
PR Velocity
Quiet
 

Weekly Downloads

GitHub Stars

Not all downloads include detailed metadata. Breakdowns reflect the subset that does.

Downloads by OS

Linux 1.1M
Windows 3.2K
macOS 891

Python Versions

3.9
75.8% 779.2K
3.11
8.9% 91.4K
3.12
7.8% 80.0K
3.7
4.2% 43.5K
3.10
3.3% 34.4K

Top Countries

1. US US
958.7K
2. TW TW
26.8K
3. BR BR
16.9K
4. IE IE
12.7K
5. IN IN
11.5K
6. DE DE
8.8K
7. SG SG
7.4K
8. JP JP
7.0K
9. KZ KZ
5.8K
10. NL NL
4.3K
GitHub Topics
Tags from the package's GitHub repository describing what it does.

Package Information

License
LGPL with exceptions
First Release
September 9, 2010
Last Release
2 months ago
Last Commit
2 months ago
Latest Version
2.9.12
Total Releases
58
Contributors
126
Open PRs
6
Archived
No
Author
Federico Di Gregorio
Python Versions
3 3.9 3.10 3.11 3.12 3.13 3.14
Wheels
cp26 cp27 cp310 cp311 cp312 cp313 cp314 cp32 cp33 cp34 cp35 cp36 cp37 cp38 cp39
Tracking Since
January 6, 2026
Data Updated
July 5, 2026
Data Freshness
Fresh