No project description provided
Project description
vikdatashift
vikdatashift is a Python package designed to facilitate data migration between CSV files and databases (Oracle and PostgreSQL), as well as between different database systems.
Version 1.0 Features
- Import data from CSV files to Oracle or PostgreSQL databases.
- Export data from Oracle or PostgreSQL databases to CSV files.
- Transfer data between Oracle and PostgreSQL databases.
- Create tables in the target database based on source structure.
- Truncate existing tables before data insertion (optional).
- Efficient data loading using chunked processing.
Installation
Install vikdatashift using pip:
pip install vikdatashift
Usage
To use vikdatashift in your Python script:
from vikdatashift import csv_to_db, db_to_csv, db_to_db
# Import CSV to Oracle or PostgreSQL
db_type = "oracle" # or "postgres"
csv_to_db(db_type)
# Export from Oracle or PostgreSQL to CSV
db_to_csv(db_type)
# Transfer data between Oracle and PostgreSQL
db_to_db("oracle", "postgres") # or db_to_db("postgres", "oracle")
Inputs Required:
When you run these functions, you'll be prompted to enter:
- Database connection details (if not already saved).
- Table names.
- CSV file names (for CSV operations).
- Actions to perform (e.g., truncate, create table).
Requirements
- Python 3.6+
psycopg2cx_Oracle
Configuration
The package uses a db_config.json file to store database connection details. You'll be prompted to enter these details if they're not already saved.
Features in Detail
CSV to Database
- Import data from CSV files to Oracle or PostgreSQL.
- Create new tables based on CSV structure.
- Option to truncate existing tables before insertion.
Database to CSV
- Export data from Oracle or PostgreSQL tables to CSV files.
- Handles large datasets efficiently.
Database to Database
- Transfer data between Oracle and PostgreSQL databases.
- Option to create new tables in the target database.
- Option to truncate existing tables before transfer.
- Efficient data transfer using chunked processing.
Contributing
Contributions to vikdatashift are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License.
Author
Satvik Jain
Support
If you encounter any problems or have any questions, please open an issue on the GitHub repository.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vikdatashift-1.0.1.tar.gz.
File metadata
- Download URL: vikdatashift-1.0.1.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a638b347aec6f4c05a4ba1482ff4f10b6429fb16abae0c8e9bea2efa6925946b
|
|
| MD5 |
730a8ababbcca8cb28186ace9e730de4
|
|
| BLAKE2b-256 |
c4a59c31912c78e010e2290786917cc0720210624580651d206c05de6a0bf02f
|
File details
Details for the file vikdatashift-1.0.1-py3-none-any.whl.
File metadata
- Download URL: vikdatashift-1.0.1-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5eec6770cb9c0c02742dd14ec9daae261c69aeb7627a013c3d17f023692979d
|
|
| MD5 |
5c7386cc8034c698bdbea96e63834e09
|
|
| BLAKE2b-256 |
bf2d5b498330786b8bb78c3c01237f0ecb2fba8f1916a2693266eab1e592c746
|