Skip to main content

DataElevate is a Python library designed to simplify and enhance data management and analysis workflows. It offers tools for seamless data access, transformation, and integration with external services like Google Drive, ensuring security and ease of use.

Project description

DataElevate

DataElevate is a Python library designed to streamline the process of downloading, loading, and extracting data from various sources such as Google Drive, Kaggle, and local archives. It simplifies working with data files, enabling developers and analysts to focus on their data analysis tasks.


Features

  • Download Data:
    • Easily download files from Google Drive and Kaggle.
  • Load Data:
    • Load data directly from CSV, Excel, text, or other supported file formats.
  • Extract Archives:
    • Extract files from compressed archives (e.g., .zip, .tar, .gz).

Installation

Install the package using pip:

pip install DataElevate

Quickstart

Here's how to get started with DataElevate:

1. Import the Library

from DataElevate import Download_data, Load_data, Extractor

2. Download Data

GoogleDrive

Downloads a files/ folders from Google Drive.

File download

Download_data.GoogleDrive.download_file(url/ file_id: str, destination: str) #destination: Optional

Folder download

Download_data.GoogleDrive.download_folder(url/ file_id: str, destination: str) #destination: Optional

Check FileName

Download_data.GoogleDrive.check_filename(url/ file_id: str)

Get Id of file

Download_data.GoogleDrive.get_file_id(url : str)

Kaggle

# Provide Kaggle dataset path and destination
Download_data.Kaggle.from_kaggle(dataset="kaggle-dataset-URL", destination="path/to/save") #destination: Optional

3. Load Data

From Local (CSV, Text, Excel)

data = Load_data.from_local("path/to/your_file")

From Kaggle

data = Load_data.from_kaggle(url = "kaggle-dataset-URL")

From Drive (Under Maintenance)

data = Load_data.from_drive(url = "dataset url from drive")

From Database (Under Maintenance)

Supported Databases

The following databases are supported:

  • PostgreSQL
  • MySQL
  • Microsoft SQL Server (MSSQL)
  • Oracle
  • SQLite
  • MariaDB
  • Amazon RDS
  • Azure SQL

Usage Examples

Loading Data from PostgreSQL (Under Maintenance)

To load data from a PostgreSQL database, use the from_postgresql method:

data = Load_data.Database.from_postgresql(
    db_name='your_database_name',
    table_name='your_table_name',
    username='your_username',
    password='your_password',
    host='your_host',
    port='your_port'
)

Loading Data from SQLite (Under Maintenance)

To load data from an SQLite database, use the sqlite method:

data = Load_data.Database.sqlite(
    db_name='your_database_name',
    table_name='your_table_name'
)

Generalized Syntax for Other Databases (Under Maintenance)

data = Load_data.Database.DataBase_Type(
    db_name='your_database_name',
    table_name='your_table_name',
    username='your_username',
    password='your_password',
    host='your_host',
    port='your_port'
)

Example

data = Load_data.Database.from_mysql(
    db_name='your_database_name',
    table_name='your_table_name',
    username='your_username',
    password='your_password',
    host='your_host',
    port='your_port'
)

4. Extract Archives

Extractor.extract_archive("path/to/your_archive.zip", destination="path/to/extract") destination: Optional

Contributing

Contributions are welcome! Feel free to submit a pull request or raise issues for any bugs or feature requests.


License

This project is licensed under the Apache License 2.0. See the LICENSE file for more details.


Author

Name: Moanl Bhiwgade Email: 3051monal@gmail.com
Version: 1.0.0

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

dataelevate-1.0.0.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

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

DataElevate-1.0.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file dataelevate-1.0.0.tar.gz.

File metadata

  • Download URL: dataelevate-1.0.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.0

File hashes

Hashes for dataelevate-1.0.0.tar.gz
Algorithm Hash digest
SHA256 598db74692d22dcb7dd52bd87f0e09d90224725ef620483d050e68f2e25dc053
MD5 d5be8b0f12c869bb951a8de55239fce1
BLAKE2b-256 d7c94e280b822da20cba7af23fc32ad3d10625de47a31a25c3ac8a1b73bfc040

See more details on using hashes here.

File details

Details for the file DataElevate-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: DataElevate-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.0

File hashes

Hashes for DataElevate-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe3561d6365be17634a20b6480af1cf88116e2b705cf9803dbfb0af81c49f0e8
MD5 5108e3def04a862620ce44fa34213d5a
BLAKE2b-256 d3c13e9630ec0a3960cc83a6c9e9d2743320efb36a2722eabfc07c9af98748f4

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