psycopg2
pgaudit
Our great sponsors
psycopg2 | pgaudit | |
---|---|---|
19 | 5 | |
3,205 | 1,183 | |
1.6% | 3.0% | |
7.2 | 5.0 | |
17 days ago | 10 days ago | |
C | C | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
psycopg2
-
Can I learn Python while practicing writing queries for SQL simultaneously? I've recently completed learning SQL and trying to get better at it.
You can practice both by using https://www.psycopg.org from your Python code to communicate with your database. When I wanted to practice some SQL, that's what I did (we use psycopg at work, so that's what I practiced with, making a dream journal thingy for myself that was better than just noting stuff in a notepad because I could then look up e.g. what other stuff was correlated with Y, how many times I dreamed of X, etc. etc.)
-
Installing psycopg2==2.8.6 throws an error
But seems like it should work with Django 3, which you have specified https://github.com/psycopg/psycopg2/issues/1293
-
Uploading CSVs to a SQL table using Python
If you're using Postgres for your SQL, look at the "copy' method of the psycopg module (see https://www.psycopg.org/articles/2020/11/15/psycopg3-copy/) . It's much faster than INSERTs in my experience (YMMV).
-
Underappreciated Challenges with Python Packaging
Back when I used Psycopg2, there was no -binary package, so you'd get libpq set up similarly to pg-native. Docs say:
> The binary package is a practical choice for development and testing but in production it is advised to use the package built from sources.
Relevant GitHub discussion: https://github.com/psycopg/psycopg2/issues/674
I dunno, this seems worse to me.
-
Integrate PostgreSQL Database In Python - A Hands-On Guide
Just go to the more easily readable docs here. I’m sorry, but the linked article is terrible.
-
Has anyone made the switch from developing in Windows to macOS? Any general or specific advice about the switch?
psycopg2-binary. See https://github.com/psycopg/psycopg2/issues/1286.
-
Dockerize a Django, React, and Postgres application with docker and docker-compose | by Anjal Bam
psycopg2-binary, PostgreSQL Database adapter for python.
-
My Cookiecutter Django Setup
... # psycopg2==2.9.3 # https://github.com/psycopg/psycopg2 ...
-
Why "import blescan as blescan"?
I sometimes do this in testing. For example, consider the library used to communicate with a Postgres database, psycopg.
- Engineers complaining about Docker for Mac?
pgaudit
-
Show HN: I built this Postgres logger for you guys to check out
I think pgAudit it still the best and it's not a major issue. You can try my PR that fixes this issue https://github.com/pgaudit/pgaudit/pull/219 it should work and it should handle the other types of SELECT's that need update permissions but are not actually updating anything https://pglocks.org/?pglock=RowShareLock
- PgAudit: Open-Source PostgreSQL Audit Logging
- Auditing CREATE/DROP DATABASE
-
How Postgres Audit Tables Saved Us from Taking Down Production
You can use pgaudit, it's an extension that let's you audit DDL/DML statements. It's a great auditing mechanism. I use it on all our prod postgres instances, but have only "DML" enabled, because of the potential performance overhead
-
Auditing PostgreSQL Using pgAudit
pgAudit, with all its capabilities, simplifies the process of auditing by generating the audit trail log. Though there are a few caveats, like logging of renamed objects under the same name, it is still a robust tool that provides the required functionality. However, the audit information written in logs may not be just ideal for the auditing process - the auditing process is even better when those logs can be converted to a database schema, and audit data can be loaded to the database so you can easily query the information. This is where the PostgreSQL Audit Log Analyzer (pgAudit Analyze) is helpful. For more information, refer to the github pages of pgAudit and pgAudit Analyze.
What are some alternatives?
asyncpg - A fast PostgreSQL Database Client Library for Python/asyncio.
pgaudit_analyze - PostgreSQL Audit Analyzer
queries - PostgreSQL database access simplified
debezium - Change data capture for a variety of databases. Please log issues at https://issues.redhat.com/browse/DBZ.
SQLAlchemy - The Database Toolkit for Python
temporal_tables - Temporal Tables PostgreSQL Extension
PostgreSQL - Mirror of the official PostgreSQL GIT repository. Note that this is just a *mirror* - we don't work with pull requests on github. To contribute, please see https://wiki.postgresql.org/wiki/Submitting_a_Patch
sqlite-wf - Simple visual ETL tool
txpostgres - Twisted wrapper for asynchronous PostgreSQL connections
orafce - The "orafce" project implements in Postgres some of the functions from the Oracle database that are missing (or behaving differently).Those functions were verified on Oracle 10g, and the module is useful for production work.
awesome-mysql - A curated list of awesome MySQL software, libraries, tools and resources
plv8 - V8 Engine Javascript Procedural Language add-on for PostgreSQL