A single Package for all the database connectivities ( E.g : MySQL, MongoDb, Cassandra)
Project description
database-connect
A single Package for all the database connectivities ( E.g : MySQL, MongoDb, Cassandra)
Release Note - version 0.1.6.1
Support for Mongodb and Cassandra(Datastax Astra) are available. Features available:
- Create database/tables
- Read tables
- Update tables
- Delete records
- Csv/excel data insertion to the available databases.
Upcoming Plan - version 0.1.7
Support for Mysql
How to Use
- in jupyter notebook -
!pip install database-connect
- in command prompt -
pip install database-connect
Database Operations
- import database_connect module
import database_connect as connection
Let's Do The Operations
- For MongoDb Operations
import database_connect as connection
#create the parameters
client_url = 'paste_your_mongodb_connection_url' #should be a string
database = 'your_database_name' #should be a string
collection_name = 'your_collection_name' #should be a string
#let's create the mongo object
mongo = connection.mongo_operation(client_url=client_url,
database=database,
collection_name=collection_name)
- For Cassandra Operations
import database_connect as connection
zip_path = 'paste_the_zip_path' #should be a string
client_id = 'paste_the_client_id' #should be a string
client_secret = 'paste_the_client_secret' #should be a string
keyspace = 'paste_the_keyspace name' #should be a string #note: keyspace should be created manually in datastax cassandra. Keyspaces are not allowed to create from backend.
table_name = 'paste_the_table_name'
cassandra = connection.cassandra_operations(zip_path,
client_id,
client_secret,
keyspace,
table_name)
-
Detailed Documentation: Check Here
-
Creator - Hrisikesh Neogi
For any suggestion, contact me on hrisikesh.neogi@gmail.com.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Close
Hashes for database_connect-0.1.64-py3.10.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78edef46236e7869ac38a45839febeda6ef70e258da186df66cb260da1a25ea2 |
|
MD5 | 789ce1fe22a4cd81315d1fb2da25a516 |
|
BLAKE2b-256 | f0d9886d7deb5ce09d05eaa4130a74af3fb4c1b329280ad249dacf4ebbe3afab |
Close
Hashes for database_connect-0.1.64-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee39aaa23190a57d4a32b1141552e88deb04811990eef540de6580647d2e80c8 |
|
MD5 | 69d60d07b5a9a3ed005803a00f6d36a5 |
|
BLAKE2b-256 | bdf593a22ac8e1f784e3b0a52c8658cf67175042688ab16c2074cd242a8f1090 |