PostgreSQL CRUD CLI Tool
An interactive command-line tool to perform CRUD operations on PostgreSQL databases and generate Python CRUD scripts automatically.
Why Use This Tool
This tool is useful for developers who want to avoid writing repetitive CRUD operations and manually setting up PostgreSQL in their Python projects.
With this tool:
- The required PostgreSQL library is handled automatically
- A database can be created or selected
- A connection is established
- Tables are created dynamically
- A Python file is generated with basic CRUD operations
This helps developers save time and focus on application logic instead of setup and boilerplate code.
Features
-
Connect to PostgreSQL using username and password
-
Create a new database or use an existing one
-
Create tables dynamically
-
Perform CRUD operations:
- Insert
- Read
- Update
- Delete
-
Generate reusable Python CRUD code for your tables
-
Simple and beginner-friendly command-line interface
GitHub Repository
https://github.com/jagritiS/crud_postgres
Installation
Install from PyPI:
pip install psql-crud-tool
Usage
Run the CLI tool:
psqlcrud
Example Workflow
-
Enter PostgreSQL credentials
-
Choose whether to use an existing database or create a new one
-
Enter table name
-
Define table columns
-
Use the menu to:
- Insert data
- Read data
- Update records
- Delete records
-
Generate a reusable CRUD Python file
Generated File
The tool generates a file named:
crud_generated.py
This file includes basic functions for:
- Insert
- Read
- Update
- Delete
Disclaimer
This tool is intended for learning and development purposes. Avoid using raw input directly in production environments due to SQL injection risks.
Author
Jagriti Srivastava
License
MIT License
Contributing
Contributions are welcome. Feel free to fork the repository and submit pull requests.
Metadata
Release files for psql-crud-tool 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| psql_crud_tool-0.1.0.tar.gz | 5.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| psql_crud_tool-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.4 kB
Release files / psql_crud_tool-0.1.0.tar.gz
| Download URL | psql_crud_tool-0.1.0.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e44216283876bb7fd74992ee6cf8eca1235fadff0bcf2a6449e5c000d1392373
|
|
BLAKE2b-256 checksum How to use checksums |
bcf6e45b5ce9340a2966314cd5719c12c549644ded25e397142783a7a15a6560
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.19
|
Release files / psql_crud_tool-0.1.0-py3-none-any.whl
| Download URL | psql_crud_tool-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8351c13477cc4309bb6ebf73c0991ae6feecc98d3198cef33874da2810c4c8c1
|
|
BLAKE2b-256 checksum How to use checksums |
978b6f3dbdea6b378108a73b1bc354b1d2716ae614a3830416cec7f83e776e3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.19
|
Security for psql-crud-tool 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.