Skip to main content

DBeaver integration plugin for Hestia data platform

Project description

Hestia DBeaver Connector

A plugin for the Hestia data platform that provides seamless integration with DBeaver database management tool.

Features

  • Automatic DBeaver Detection: Finds DBeaver installation across Windows, macOS, and Linux
  • Database Connection Management: Configure and manage multiple database connections
  • Hestia Integration: Export and import data between Hestia and DBeaver
  • Cross-Platform Support: Works on Windows, macOS, and Linux
  • Secure Configuration: Stores credentials and settings securely

Installation

Prerequisites

  • Python 3.7 or higher
  • PyQt5
  • DBeaver installed on your system

Install the Plugin

pip install hestia-dbeaver-connector

Development Installation

git clone https://github.com/hestia/dbeaver-connector.git
cd dbeaver-connector
pip install -e .

Usage

Integration with Hestia

The plugin integrates automatically with Hestia's setup wizard. When you run Hestia:

  1. Setup Wizard: Choose "DBeaver" from the available integrations
  2. Configuration: The plugin will detect your DBeaver installation
  3. Database Setup: Configure your database connections
  4. Testing: Verify the connection works properly

Manual Configuration

You can also configure the plugin manually:

from hestia_dbeaver_connector import register_with_hestia

# Launch the configuration dialog
result = register_with_hestia()
if result:
    print("Configuration saved successfully!")

Configuration Options

The plugin provides several configuration options:

Basic Configuration

  • DBeaver Path: Automatic detection or manual selection
  • Connection Testing: Verify DBeaver installation and connectivity

Database Connections

  • Multiple Databases: Configure connections to PostgreSQL, MySQL, SQLite, etc.
  • Connection Management: Add, edit, and remove database connections
  • Connection Testing: Test each connection before saving

Advanced Settings

  • Auto-Detection: Automatically detect DBeaver on startup
  • Auto-Connect: Automatically connect to known databases
  • Export/Import: Enable data exchange with Hestia

Supported Databases

The plugin supports all databases that DBeaver supports:

  • PostgreSQL
  • MySQL/MariaDB
  • SQLite
  • Oracle
  • SQL Server
  • MongoDB
  • And many more...

Configuration Storage

The plugin stores configuration in:

  • Windows: %APPDATA%\hestia\plugins\dbeaver\dbeaver_config.json
  • macOS/Linux: ~/.config/hestia/plugins/dbeaver/dbeaver_config.json

Development

Project Structure

hestia_dbeaver_package/
├── hestia_dbeaver_connector/
│   ├── __init__.py
│   └── dbeaver_plugin.py
├── setup.py
├── README.md
└── tests/

Running Tests

pip install -e .[dev]
pytest tests/

Building for Distribution

python setup.py sdist bdist_wheel

Troubleshooting

DBeaver Not Found

If the plugin cannot find DBeaver:

  1. Verify Installation: Make sure DBeaver is installed
  2. Manual Path: Use the "Browse" button to locate the executable
  3. Common Locations:
    • Windows: C:\Program Files\DBeaver\dbeaver.exe
    • macOS: /Applications/DBeaver.app/Contents/MacOS/dbeaver
    • Linux: /usr/bin/dbeaver

Connection Issues

If database connections fail:

  1. Check Credentials: Verify username, password, and database name
  2. Network Access: Ensure the database server is accessible
  3. Firewall: Check if firewall is blocking the connection
  4. DBeaver Test: Try connecting directly in DBeaver first

Plugin Not Loading

If Hestia doesn't detect the plugin:

  1. Verify Installation: pip list | grep hestia-dbeaver-connector
  2. Check Python Path: Ensure the package is in your Python environment
  3. Restart Hestia: Restart the Hestia application
  4. Manual Import: Try importing the package manually

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests for new functionality
  5. Submit a pull request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

For support and questions:

  • Issues: Create an issue on GitHub
  • Documentation: Check the Hestia documentation
  • Community: Join the Hestia community forum

Changelog

Version 0.1.0

  • Initial release
  • Basic DBeaver integration
  • Configuration dialog
  • Cross-platform support
  • Automatic DBeaver detection

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hestia_dbeaver_connector-0.1.0.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hestia_dbeaver_connector-0.1.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file hestia_dbeaver_connector-0.1.0.tar.gz.

File metadata

File hashes

Hashes for hestia_dbeaver_connector-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4e93bad80660420f3cd7c09f4eac82bc8bae4c0ee2bc14aaa9d9abcf2179acf1
MD5 1abb73482fb3e888d974b6c1eeec827c
BLAKE2b-256 52a287ed539e898b17e2deef6d53eceb19ecf92280c75f4e946a8415c4bdc273

See more details on using hashes here.

File details

Details for the file hestia_dbeaver_connector-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for hestia_dbeaver_connector-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 84a6f0b25ad0e3b1bbe59adc6137290bcc8b0aefc210b3fb09fc2f247a6c0c59
MD5 eb08058060266faaac3e8b7b2f8e64d9
BLAKE2b-256 7c9213ff50f5a30c7c47250e28d8c93bfcd4b936d75c1846bec91f821fc0e4c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page