Skip to main content

A Simple yet powerful bcp wrapper

Project description

Simple BCP

A Simple yet powerful Python bcp wrapper.
bcp (bulk copy program) is a command line tool that copies data from / into MSSQL.
You can read more about bcp here

Installation

Install the package using pip:

pip install simple_bcp

Usage

import simple_bcp

bcp = simple_bcp.BCP()
database_parameters = simple_bcp.MsSqlDatabaseParameters(
    server_hostname="your-sql-server-hostname",
    username="user",
    password="pass"
)
output_file_path = bcp.download_table(table_name="your_table_name", 
                                      database_parameters=database_parameters)
print("downloaded table data is now available at ", output_file_path)
bcp.upload_into_table(table_name="dest_table_name",
                      database_parameters=database_parameters,
                      data_file_path=output_file_path)
print("the data is now copied to dest_table_name")

Requirements

Repo & Author

Developed by Noam Fisher, You can see the project in https://gitlab.com/noamfisher/simple_bcp

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

simple_bcp-0.12.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

simple_bcp-0.12.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file simple_bcp-0.12.0.tar.gz.

File metadata

  • Download URL: simple_bcp-0.12.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for simple_bcp-0.12.0.tar.gz
Algorithm Hash digest
SHA256 68fc6aa1be89bf9ba8d086ab083e516c56fc1f38f1c281fb64daadab3534df44
MD5 767645ccb6ea5ee18da6f9595563af8f
BLAKE2b-256 da33c0cbc3e00cca6241de4a85cac166dcd288ecc1f7ee672c908bd8c64d8bd0

See more details on using hashes here.

File details

Details for the file simple_bcp-0.12.0-py3-none-any.whl.

File metadata

  • Download URL: simple_bcp-0.12.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for simple_bcp-0.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3483132a0dc6045a4e51ae252558152a0dd9cb07ea4d0dcf057eacf9595b6536
MD5 5fe3d906f1f173d6332c0097d3ad9956
BLAKE2b-256 0eadf7fbb9378780038e0db95973b593a340d211221a1998ea7ccdcc72dca1bb

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