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

Contributing

We welcome contributions! Please follow these guidelines:

Merge Requests

  1. Fork the repository
  2. Create a feature branch from main
  3. Make your changes
  4. Submit a merge request to the main branch

Commit Message Format

This project uses Conventional Commits and semantic-release for automated versioning.

Your commits must follow this format:

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.3.1.tar.gz (8.6 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.3.1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple_bcp-2.3.1.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for simple_bcp-2.3.1.tar.gz
Algorithm Hash digest
SHA256 e54914f1faf9eb76e4058a21c798a0a244f7b863302fb2e0226920f4269ba96f
MD5 54694630b8c0ae2152c18709bcbf08a1
BLAKE2b-256 3a1a970be706f5445c773722a9919d2ea2c6e61f56f3ab45f4b01c032b03a55c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_bcp-2.3.1-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for simple_bcp-2.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e49c4cc83c08359a2917d9e6b1d2b8e45b78ccd763ef8c734e04e6a09453c03d
MD5 646530de6c445bdf57d3314cfc58314d
BLAKE2b-256 8a340f8eba45c7763be4e78b9d06fba52f6671c9f0732444bd0f961fd509605e

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