{"id":26612301,"url":"https://github.com/ximilsoft/postgresql-manager","last_synced_at":"2026-05-07T13:10:12.739Z","repository":{"id":283920258,"uuid":"953260086","full_name":"ximilsoft/postgresql-manager","owner":"ximilsoft","description":"A simple PostgreSQL management package for handling databases, tables, columns, and rows with ease.","archived":false,"fork":false,"pushed_at":"2025-03-25T07:37:21.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-03T15:49:54.856Z","etag":null,"topics":["database","postgresql","postgresql-database"],"latest_commit_sha":null,"homepage":"https://postgresql-manager.ximilsoft.com","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ximilsoft.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-03-22T23:44:01.000Z","updated_at":"2025-03-25T07:37:26.000Z","dependencies_parsed_at":"2025-03-23T03:25:32.139Z","dependency_job_id":"378ff30c-5a9d-4e2c-b78b-084b34a5f7e5","html_url":"https://github.com/ximilsoft/postgresql-manager","commit_stats":null,"previous_names":["ximilsoft/postgresql-manager"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ximilsoft/postgresql-manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ximilsoft%2Fpostgresql-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ximilsoft%2Fpostgresql-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ximilsoft%2Fpostgresql-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ximilsoft%2Fpostgresql-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ximilsoft","download_url":"https://codeload.github.com/ximilsoft/postgresql-manager/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ximilsoft%2Fpostgresql-manager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32739002,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["database","postgresql","postgresql-database"],"created_at":"2025-03-24T03:17:31.082Z","updated_at":"2026-05-07T13:10:12.724Z","avatar_url":"https://github.com/ximilsoft.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostgreSQL Manager\n\nA simple PostgreSQL management package for handling databases, tables, columns, and rows with ease.\n\n## Features\n\n- Create and manage PostgreSQL databases\n- Create and modify tables\n- Add, update, and delete columns\n- Insert and manage rows\n- Easy-to-use API for database operations\n\n## Installation\n\n### Install the Package\n\nInstall the package using pip:\n\n```bash\npip install postgresql_manager\n```\n\n### Import the Package\n\n```python\nfrom postgresql_manager import Manager, Databases, Tables, Columns, Rows\n```\n\n### Configure the Database\n\n```python\n# Configure the database connection\nsuccess = Manager.config(\n    db_name=\"my_database\",\n    user_name=\"test_user\",\n    password=\"test_password\",\n    host=\"127.0.0.1\",\n    port=\"5432\"\n)\n\n# Check if configuration was successful\nif success:\n    print(\"Configuration set successfully.\")\nelse:\n    print(\"Failed to set configuration.\")\n```\n\n## Usage\n\n### Databases\n\n#### Check if a Database Exists\n\n```python\ndatabase_exists = Databases.exists(\"my_database\")\nprint(f\"Database exists: {database_exists}\") # True or False\n```\n\n#### Create a Database\n\n```python\ndatabase_created = Databases.create(\"my_database\")\nprint(f\"Database created: {database_created}\") # True or False\n```\n\n#### Delete a Database\n\n```python\ndatabase_deleted = Databases.delete(\"my_database\")\nprint(f\"Database deleted: {database_deleted}\") # True or False\n```\n\n### Tables\n\n#### Check if a Table Exists\n\n```python\ntable_exists = Tables.exists(\"my_database\", \"users\")\nprint(f\"Table exists: {table_exists}\") # True or False\n```\n\n#### Create a Table\n\n```python\ntable_created = Tables.create(\"my_database\", \"users\")\nprint(f\"Table created: {table_created}\") # True or False\n```\n\n#### Delete a Table\n\n```python\ntable_deleted = Tables.delete(\"my_database\", \"users\")\nprint(f\"Table deleted: {table_deleted}\") # True or False\n```\n\n### Columns\n\n#### Check If a Column Exists\n\n```python\ncolumn_exists = Columns.exists(\"my_database\", \"users\", \"name\")\nprint(f\"Column exists: {column_exists}\") # True or False\n```\n\n#### Create a Column\n\n```python\ncolumns_to_add = [\n    {\"name\": \"id\", \"type\": \"INT\", \"is_not_null\": False, \"is_primary\": True},\n    {\"name\": \"first_name\", \"type\": \"VARCHAR\", \"is_not_null\": True},\n    {\"name\": \"last_name\", \"type\": \"VARCHAR\", \"is_not_null\": True, \"comment\": \"User's last name\"}\n]\ncolumns = Columns.create(\"my_database\", \"users\", columns_to_add)\nprint(f\"Columns: {columns}\") # True or False\n```\n\n#### Delete a Column\n\n```python\ncolumn_deleted = Columns.delete(\"my_database\", \"users\", \"token\")\nprint(f\"Column deleted: {column_deleted}\") # True or False\n```\n\n### Rows\n\n#### Check If a Row Exists\n\n```python\nrow_exists = Rows.exists(\"my_database\", \"users\", 1)\nprint(f\"Row exists: {row_exists}\") # True or False\n```\n\n#### Create a Row\n\n```python\nrows_to_add = [\n    {\"id\": 1, \"first_name\": \"Alice\", \"last_name\": \"Smith\"},\n    {\"id\": 2, \"first_name\": \"Bob\", \"last_name\": \"Johnson\"},\n    {\"id\": 3, \"first_name\": \"Charlie\", \"last_name\": \"Brown\"},\n]\nrow_created = Rows.create(\"my_database\", \"users\", rows_to_add)\nprint(f\"Row created: {row_created}\") # True or False\n```\n\n#### Delete a Row\n\n```python\nrow_deleted = Rows.delete(\"my_database\", \"users\", 1)\nprint(f\"Row deleted: {row_deleted}\") # True or False\n```\n\n## Getting Help\n\nIf you have any questions or need assistance, feel free to [open an issue](https://github.com/ximilsoft/postgresql-manager/issues).\n\n## Contributing\n\nWe welcome contributions, If you’d like to improve this project, follow these steps:\n\n#### 1. Fork the Repository\n\nClick the \"Fork\" button on GitHub and clone your copy:\n\n```bash\ngit clone https://github.com/ximilsoft/postgresql_manager.git\ncd postgresql_manager\n```\n\n#### 2. Create a New Branch\n\nCreate a feature branch for your work:\n\n```bash\ngit checkout -b feature-new-functionality\n```\n\n#### 3. Make Changes \u0026 Test\n\nModify the code and test locally.\n\n#### 4. Commit \u0026 Push\n\n```bash\ngit add .\ngit commit -m \"Added a new feature\"\ngit push origin feature-new-functionality\n```\n\n#### 5. Submit a Pull Request\n\nGo to GitHub, open a pull request (PR), and describe your changes.\n\n## 📅 Roadmap\n\n- [x] Add database configuration.\n- [ ] Support for multiple databases.\n- [ ] Implement additional database operations.\n- [ ] Enhance scalability and performance optimization.\n\n## 📜 License\n\nThis project is licensed under the MIT License.\n\n## Support\n\nIf you find this project helpful, show your support by starring the repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fximilsoft%2Fpostgresql-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fximilsoft%2Fpostgresql-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fximilsoft%2Fpostgresql-manager/lists"}