Skip to main content

A Simple yet powerful bcp wrapper

Project description

Simple BCP

Python pipeline status coverage report Latest Release Downloads tested-on-mssql

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 at 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-2.2.0.tar.gz (8.1 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-2.2.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for simple_bcp-2.2.0.tar.gz
Algorithm Hash digest
SHA256 2cf4751f916690e5dbb55f68e84caaf9b8f5b94bf8c484a0d5b53f934aa9ae47
MD5 15171647f0d511d23a9ecb246316a685
BLAKE2b-256 3eb8bdd860140b77da60b92202d637b5eccd1bb08666c8470e3414dfa0197e42

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for simple_bcp-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db0169a7fc1027099f219ba4f673a37b135336cfc65854147de6bd93961351db
MD5 7bcba014da5337fd1d809f3bdad84331
BLAKE2b-256 96f721d00b9f89a5c14b8b3826fc36f725b4b4fc1f8c40117cbb70ccc5d2cfec

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