Python package for connecting and importing data from different DataBases
Project description
Database Connector Package
Overview
dbsconnector is a Python package designed to simplify data integration from various sources, including CSV, Excel, Google Sheets, and MongoDB. The package provides a unified interface to connect, load, and process data with minimal setup, making it easier for Developers and Data Scientists to work across multiple data formats.
Current Features:
- Connect to CSV files and load them into a Pandas DataFrame
- Handle Excel files with multiple sheets
- Fetch data from Google Sheets using an API key
- Interact with MongoDB collections
Future Features (Upcoming):
- Support for more databases (SQL, NoSQL)
- Cloud storage integration (AWS S3, Google Cloud, etc.)
- API-based data sources
Installation
To install the package, use pip:
pip install dbsconnector==1.1
How to use this package?
Connecting to csv
# import the module:
from dbsconnector import databases
# load the data:
df = databases.load_csv(filepath='sample.csv', delimiter=',')
# display the data:
df
Connecting to Excel
# import the module:
from dbsconnector import databases
# load the data:
df = databases.load_excelsheet(filepath='sample.xlsx', sheet_name='sample_sheet')
# display the data:
df
Connecting to gsheet
# import the module:
from dbsconnector import databases
# load the data:
df = databases.load_gsheet(gsheet_id='17r9f4BL7sjmdLBnt92OdQP3CHK5bdT3hozg6DUJXGqU',sheet_name='sample_sheet')
# display the data:
df
Connecting to MongoDB
# import the module:
from dbsconnector import databases
# load the data:
df = databases.load_mongodbdata(host='localhost', database='sample_database', collection='sample_collection')
# display the data:
df
Contributions
- Contributions are welcome! Please open an issue or submit a pull request on GitHub for adding new features, fixing bugs, or improving documentation. Open-source collaboration is highly encouraged!
License
This project is licensed under the MIT License.
Contact
For any questions or suggestions, please contact yuvaneshkm05@gmail.com
Connect
Connect with me on LinkedIn
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
Built Distribution
File details
Details for the file dbsconnector-1.1.tar.gz
.
File metadata
- Download URL: dbsconnector-1.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 100f92563f3012e35009bf41580a6e66f212525e87e76726a313551827f73b55 |
|
MD5 | a7bc161f145ba327f6522afc00b4848e |
|
BLAKE2b-256 | ad3e25a64ff1ba5280fd0dd96f0e78a096975874fa04cddc7e2ebd975918290b |
File details
Details for the file dbsconnector-1.1-py3-none-any.whl
.
File metadata
- Download URL: dbsconnector-1.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aae36e322d1b9ca3f425e6a4de79f2ae4d3e78ce0ee45dcab725faa8279303e4 |
|
MD5 | c7845de22009b958a9411ec76af0aa61 |
|
BLAKE2b-256 | ca6f5654741f867a8a4dce1a6edd1543c191f36b12319d3b09cc23094f5aff32 |