pydbhub
Project description
pydbhub
A Python library for accessing and using SQLite databases on DBHub.io. This is an early stage work in progress
What works now
- Run read-only queries (eg SELECT statements) on databases, returning the results as JSON
- Upload and download your databases
- List the databases in your account
- List the tables, views, and indexes present in a database
- List the columns in a table, view or index, along with their details
- List the branches, releases, tags, and commits for a database
- Generate diffs between two databases, or database revisions
- Download the database metadata (size, branches, commit list, etc.)
- Retrieve the web page URL of a database
Still to do
- Anything else people suggest and seems like a good idea. Please try it out, submits PRs to extend or fix things, and report any weirdness or bugs you encounter. :smile:
Pre-requisites
- Python version 3.7
- Older Python releases should NOT be OK. Newer Python releases should be OK, but only Python 3.7 has been tested (so far).
- A DBHub.io API key
- These can be generated in your Settings page, when logged in.
Installation
pip install pydbhub
Further examples
- SQL Query - Run a SQL query, return the results as JSON
- List databases - List the databases present in your account
- List tables - List the tables present in a database
- List views - List the views present in a database
- List indexes - List the indexes present in a database
- Retrieve column details - Retrieve the details of columns in a table
- List branches - List all branches of a database
- List releases - Display the releases for a database
- List tags - Display the tags for a database
- List commits - Display the commits for a database
- Generate diff between two revisions - Figure out the differences between two databases or two versions of one database
- Upload database - Upload a new database file
- Download database - Download the complete database file
- Delete database - Delete a database
- Retrieve metadata - Download the database metadata (size, branches, commit list, etc)
- Web page - Get the URL of the database file in the webUI. eg. for web browsers
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
pydbhub_bjh-0.0.9.tar.gz
(8.6 kB
view details)
Built Distribution
File details
Details for the file pydbhub_bjh-0.0.9.tar.gz
.
File metadata
- Download URL: pydbhub_bjh-0.0.9.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.8.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f045fa140d7db8c270f446a79ae57b7f4d4ab1c11a4dc9e72f72425328c404fa |
|
MD5 | e0d35007d84c199276c0ca0cbd5a33ce |
|
BLAKE2b-256 | af59bed947f1f4549be3efb50e9f068ea9241faff05120178b742897c868071f |
File details
Details for the file pydbhub_bjh-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: pydbhub_bjh-0.0.9-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.8.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbc8b6bc80705e0e8f9a7f5de865a4e430a61efb23ad0d4760c979320e9d49a8 |
|
MD5 | 36d47b853e5e0ee6930e2d33f30f73b2 |
|
BLAKE2b-256 | 3b80afcddda2c2025f69e44c46227debfc072eea5a6ffe1118f5870d371300dd |