Skip to main content

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 – Your commits must follow this format. This project uses semantic-release for automated versioning.

Metadata

Release files for simple-bcp 2.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simple-bcp 2.4.0
File Size Uploaded Provenance Actions
simple_bcp-2.4.0.tar.gz 9.5 kB Without provenance Details for simple_bcp-2.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for simple-bcp 2.4.0
File Interpreter ABI Platform Actions
simple_bcp-2.4.0-py3-none-any.whl Python 3 none any Details for simple_bcp-2.4.0-py3-none-any.whl

Total release size: 20.2 kB

Release files / simple_bcp-2.4.0.tar.gz

Download URL simple_bcp-2.4.0.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
adb041c1d065cb02de10de34443cf55d388356cd53b88be485e87684286899c1
BLAKE2b-256 checksum
How to use checksums
a37a4dab7ec49e0a01b5f4f73f3988a8b23f2a86065377c267442e2edd78bd6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / simple_bcp-2.4.0-py3-none-any.whl

Download URL simple_bcp-2.4.0-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22c4692a4553393f55b2bbb3d8eccfaf3bb6882c35c3d89f653d73fefbba2eda
BLAKE2b-256 checksum
How to use checksums
06498029116d1e868c02bb711560c6332a17cb2ce94223a951b44800693203cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.15.2

Security for simple-bcp 2.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.4.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page