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.5.2.tar.gz (4.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.5.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple_bcp-0.5.2.tar.gz
  • Upload date:
  • Size: 4.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.5.2.tar.gz
Algorithm Hash digest
SHA256 4b3fa96bfc50759a020b81d5f8ef8f38e9e4131d16a622efcbbf9f3f2003c2e0
MD5 2b727e828b29ac84cf1dcfddbfe5a2a4
BLAKE2b-256 7514821d4b367c7e1216db166cc37dd509ae3c97d03f931b0a2de40b9573e80b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_bcp-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 5.6 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.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a3154a87af2fd0bad59201b19ba437d564014ba467f5502a1f39ea482a37f975
MD5 350b8f138cd631f8f95d7b9c44f3ea8c
BLAKE2b-256 13ef9779cdea4b24478a934229a8248ab4633af9bf525efd2e36174a2c12a1d5

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