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

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.2.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.2-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple_bcp-2.3.2.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.2.tar.gz
Algorithm Hash digest
SHA256 6b3ea9104e0c819d3cc75832ee4951f2d55680e877f1c51f6bb4142426e51c4f
MD5 c2856e52a19c1ccf51b7eccfd98bf322
BLAKE2b-256 1ddf6c07204f773f68bc1e5986aedede12e3c9eeb1c1ceb6c682f84ae71afad5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_bcp-2.3.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 afabe3209733ade3d1383368c6d86235d6210ec2d108299ecc566fea0276b41a
MD5 1c21c77e2df9360aa42739a8a19124a8
BLAKE2b-256 c8332d9bdc2970f4a47e43d421d2d29beeb592635effa2f77d7e2368de8fd09c

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