Skip to main content

Coraline Database Manager Package

Project description

Coraline Database Manager Package

Now, only SQL DB is supported

-How to use-

  1. Initial database object by specify host, username and password

    from coralinedb import SQLDB

    sql_db = SQLDB(host, username, password)

  2. Load a table or multiple tables

    new_table = sql_db.load_table(“database_name”, “table_name”)


    table1, table2 = sql_db.load_table(“database_name”, [“table_name1”, “table_name2”])

  3. Save a dataframe to a table

    sql_db.save_table(df, “database_name”, “table_name”)

  4. Get number of rows of a table

    n_rows = sql_db.get_count(“database_name”, “table_name”)

  5. Run other SQL statement on host (with or without database name)

    table = sql_db.query(“show databases;”)

    table = sql_db.query(“SELECT * FROM …”, “database_name”)

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

coralinedb-1.0.1.tar.gz (3.5 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page