Skip to main content

A Simple yet powerful bcp wrapper

Project description

Simple BCP

Python pipeline status coverage report Latest Release Downloads

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-0.15.0.tar.gz (6.5 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.15.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple_bcp-0.15.0.tar.gz
  • Upload date:
  • Size: 6.5 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.15.0.tar.gz
Algorithm Hash digest
SHA256 21037c14ae97d7dc3c21a5ccb5f0f06c5def80d7662e0b332ab78e042a528860
MD5 b3005e7d8bacc67c1cac716cbd554045
BLAKE2b-256 8491abf06c99893a1f12963b42cccf87da054ae58611efe9063a530102a980ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_bcp-0.15.0-py3-none-any.whl
  • Upload date:
  • Size: 8.1 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.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b11c701405b4e35651a1b134a8fe0689a6886f67a08e73fab86d5a53192f159d
MD5 19dc0cc60601bde7b0afd3874915d348
BLAKE2b-256 ea59ed37c3004880a2ecb149692f5460f3dcaa4a77956973d7051959dd3824fc

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