Skip to main content

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

You can install vikdatashift using pip:

pip install vikdatashift

## Usage

To use vikdatashift in your Python script:

```bash
from vikdatashift import csv_to_db, db_to_csv, db_to_db

# Import CSV to Oracle or PostgreSQL
csv_to_db("oracle")  # or csv_to_db("postgres")

# Export from Oracle or PostgreSQL to CSV
db_to_csv("oracle")  # or db_to_csv("postgres")

# Transfer data between Oracle and PostgreSQL
db_to_db("oracle", "postgres")  # or db_to_db("postgres", "oracle")

When you run these functions, you'll be prompted to enter:
1. Database connection details (if not already saved)
2. Table names
3. CSV file names (for CSV operations)
4. Actions to perform (e.g., truncate, create table)

## Requirements
- Python 3.6+
- psycopg2
- cx_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

vikdatashift-1.0.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

vikdatashift-1.0.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vikdatashift-1.0.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for vikdatashift-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7092c1ed0136a2f86a9d3d7f9a70adf48877acf17b6b548a00529466c0a13ae0
MD5 480148273f235385e4586717a1b6e85c
BLAKE2b-256 6b716336d3d791c799c5bc95fcffdd77e8e272da812ff9d5c5ea1c615062cbab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vikdatashift-1.0.0-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

Hashes for vikdatashift-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a70dcb93bae6e5160b06c63869add30596708c7e14d6685ec1e8166014b7d799
MD5 806acd38983844ec49afcc0b57783adc
BLAKE2b-256 1f42ae9fc50de52ab29b1ff7daceed644bd16f3253d72c5afb9864af90ad7e1a

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