Skip to main content

DatabaseOps


A lightweight and fast database operation module without using queries with the ease of python.

Table of Contents

Install

 pip install databaseops

Note: Above example will always fetch the latest version. To fetch a specific version, use pip install databaseops==Version Visit databseops/history to see older versions.

Dependencies

Note: You don't need to worry about dependencies as all those will install automatically at the installing databaseops. This information is just for your knowledge.

Usage

from databaseops import MySQLTable
my_sql_table = MySQLTable(host="localhost", user="root", password="1234", db_name="Test", table_name="Test_table")

Explanation and usage of different methods available to user are as follows

# Populate Table: Add data frame to database table
my_sql_table.populate_table(dataframe=pandas.DataFrame, if_exists: str = 'append')

# Update Table
my_sql_table.update_table(dataframe=pandas.DataFrame, if_exists: str = 'append')

# Set Primary Key
my_sql_table.set_primary_key(column_name= "single column name" or ["list of column names"],
 remove_duplicates=True) 

# Set Unique Keys
my_sql_table.set_unique_keys(column_name= "single column name" or ["list of column names"],
 remove_duplicates=True)

# Read Table
my_sql_table.read_table(chunksize: int = None)

# Table Filter
my_sql_table.table_filter(where: [list of condition], select= "single column name" or ["list of column names"],
 limit: int = None, chunksize: int = None)

# Remove Duplicates
my_sql_table.remove_duplicates(list_of_columns= ["list of column names"])


# Sort Table
my_sql_table.sort_table(column: str or dict, order="ascending" or "descending")

# Get Data Type
my_sql_table.get_data_type()

Roadmap

Plan for future releases is to add multi-table join and other query to MySqlOps class. After that plan is add support to multiple databases like redis, mongoDB

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

License

Released 2020 by Ankush Bhise

Project status

This project is in development mode, not completely developed yet. It will developed at slower speed.

Metadata

Release files for databaseops 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for databaseops 1.0.0
File Size Uploaded Provenance
databaseops-1.0.0.tar.gz 8.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for databaseops 1.0.0
File Interpreter ABI Platform
databaseops-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.8 kB

Release files / databaseops-1.0.0.tar.gz

Download URL databaseops-1.0.0.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
17bdc983a466c06c72244659ef148d2a862f8d1153eac1d74dc77dc42bab970c
BLAKE2b-256 checksum
How to use checksums
f1d2a3374780e687cbebd7e65d0469229c1afc7d4f0c6ddf8f8d115e1363f905
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.6

Release files / databaseops-1.0.0-py3-none-any.whl

Download URL databaseops-1.0.0-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
edc18a171a9c3c1a00dd2dd245d0b3a35818a658421e2888b6aaec714369b86d
BLAKE2b-256 checksum
How to use checksums
c916af9d81787d0a070b7053a982e71ac3b4039be25ed43c0723a298a39635a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.6

Security for databaseops 1.0.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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page