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.9.1.tar.gz (5.7 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.9.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple_bcp-0.9.1.tar.gz
  • Upload date:
  • Size: 5.7 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.9.1.tar.gz
Algorithm Hash digest
SHA256 02eea220fac6bdfa71b8b6d5e7bba49e080a2e6164417a6803cfad1b07c4c3fe
MD5 2aa646f1ff8ba9dd07cb033069d45705
BLAKE2b-256 ba3304daa91f6664d5b2465f085d7b560cd80217d3b192cef88dd323d395225b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_bcp-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 6.8 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.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c84cc4c1eeb5aea0661661b6a71bb9cca6c99eec4fbc54f75f12d9fc68f28f3f
MD5 c137def06e8d5e6b979a9a4b7e1913e8
BLAKE2b-256 f2946c571eff09538d5b61445bdc038e2d8a99651a84687e969d0de82ce1fb6b

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