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.
Metadata
Release files for database-connect 0.1.673
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| database_connect-0.1.673.tar.gz | 9.4 kB | Without provenance | Details for database_connect-0.1.673.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| database_connect-0.1.673-py3-none-any.whl | Python 3 | none | any | Details for database_connect-0.1.673-py3-none-any.whl |
Total release size: 18.8 kB
Release files / database_connect-0.1.673.tar.gz
| Download URL | database_connect-0.1.673.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
baf62a385dd08e702ae3b4f0636caf220a930e95697d37b2bd4a3c4cd65e1e0b
|
|
BLAKE2b-256 checksum How to use checksums |
17ef88c6699569b8a0eb93086f64778717cbe7043d74f24c2d0dad3575b46270
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / database_connect-0.1.673-py3-none-any.whl
| Download URL | database_connect-0.1.673-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5dfe942f34a54dcef3f2a64a776363d6d7f17431021606abc2cade6ca366ca9e
|
|
BLAKE2b-256 checksum How to use checksums |
af59f2e7fe289299355d94a52ff055d5e5851fe3ba1323e0b18aab5b3015837d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Security for database-connect 0.1.673
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.