sql-athame
pgcli
sql-athame | pgcli | |
---|---|---|
2 | 9 | |
11 | 11,729 | |
- | 0.6% | |
0.0 | 7.1 | |
about 1 year ago | 2 days ago | |
Python | Python | |
MIT License | BSD 3-clause "New" or "Revised" License |
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.
sql-athame
-
Show HN: Sqlbind a Python library to compose raw SQL
I had my own take on this concept[1], though with considerably less language magic involved. I imagine there's a lot of these kind of things running around. My criteria were:
a) let me write actual SQL, not a python DSL that generates SQL
b) be placeholder-safe
c) be composable
[1] https://github.com/bdowning/sql-athame
-
Write an SQL query builder in 150 lines of Python
This is my middle-ground solution for Python: https://github.com/bdowning/sql-athame
Still fundamentally manipulating SQL text (which is a feature as I don't want to learn a full DSL), but it handles wrangling embedded placeholders while you're composing stuff and some other common compositional tasks. It's worked well for me anyway but I'm under no illusions it'd be right for everyone.
Not an original concept regardless; my original version of this was in Node: https://github.com/bdowning/sql-assassin, but a few years after I wrote that (and mostly didn't use it) I found https://github.com/gajus/slonik which was very similar and much more fleshed-out; I rolled _some_ of its concepts and patterns into sql-athame.
pgcli
-
Postgres: ERROR: column d.adsrc does not exist
Home: http://pgcli.com
- 5 Useful Database Command Line Tools
-
Visualize explain results from postgresql in pgcli
pip install git+https://github.com/dbcli/pgcli@main
-
14 Awesome CLI Tools for Modern Software Developers
pgcli is like DataGrip on your terminal.
-
Pipx: A python package consumption tool for CLI packages
If you want to know more about pgcli tool/package in Python, you can it's documentation webpage or the GitHub repository.
- Pgcli – Postgres CLI with autocompletion and syntax highlighting
- Advanced PostgreSQL/MySQL terminal clients
-
Commandline Database Clients with Autocompletion and Syntax Highlighting
In what way did it blow up? You must have hit a bug, using .pg_service should work. Would you care to open an issue on https://github.com/dbcli/pgcli/issues or just dump the error message here so we can investigate?
What are some alternatives?
PyPika - PyPika is a python SQL query builder that exposes the full richness of the SQL language using a syntax that reflects the resulting query. PyPika excels at all sorts of SQL queries but is especially useful for data analysis.
httpie - 🥧 HTTPie CLI — modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more.
sqlc - Generate type-safe code from SQL
cookiecutter - A cross-platform command-line utility that creates projects from cookiecutters (project templates), e.g. Python package projects, C projects.
postgres-typed
aws-cli - Universal Command Line Interface for Amazon Web Services
xql - SQL builder and utilities library for node.js (runs in browser as well).
HTTP Prompt - An interactive command-line HTTP and API testing client built on top of HTTPie featuring autocomplete, syntax highlighting, and more. https://twitter.com/httpie
percol - adds flavor of interactive filtering to the traditional pipe concept of UNIX shell
autopexpect - autoexpect for pexpect
thefuck - Magnificent app which corrects your previous console command.
caniusepython3 - Can I Use Python 3?