Skip to main content

Python ETL library

Project description

Bamboo

Bamboo Logo

Build Status PyPI version Docs

Bamboo is a library intended to facilitate the process of creating extract, transform, and load (ETL) data pipelines. Bamboo includes many features such as the ability to download and cache HTTP assets, copy files from remote servers, run commands on remote servers, handle zipped archives, perform bulk database ingests and more.

Installation

pip install bamboo-lib

Additional Steps

If you will need to use the distributed locking functionality, you will need to install some additional software. Below are the instructions for macOS

Installing Sherlock on macOS.

brew install libmemcached

pip install pylibmc --install-option="--with-libmemcached=/usr/local/Cellar/libmemcached/1.0.18_2"

pip install sherlock

Running tests

To run the tests, simply run: pytest

Alternatively, if you would like to display all log/print statements run: pytest -s

Configuration

To change the default folder where Bamboo will store HTTP downloads, set the BAMBOO_DOWNLOAD_FOLDER environment variable. By default, downloads will go to /tmp.

To change the default logger settings, set BAMBOO_LOGGER_CONF to point to a logging configuration file (see example in example/logging.conf).

Troubleshooting tips

Mutli-processing issues on macOS

If you are running High Sierra or later and get an error like:

objc[30911]: +[__NSPlaceholderDate initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug

Try setting:

export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

bamboo_lib-0.0.38-py3-none-any.whl (59.6 kB view details)

Uploaded Python 3

File details

Details for the file bamboo_lib-0.0.38-py3-none-any.whl.

File metadata

  • Download URL: bamboo_lib-0.0.38-py3-none-any.whl
  • Upload date:
  • Size: 59.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for bamboo_lib-0.0.38-py3-none-any.whl
Algorithm Hash digest
SHA256 e919e0d56c9685ebdd78c3aba346075fcf68d85805d5d92b2500b0095231da2f
MD5 d402929a3f691c41908c4225edaab0da
BLAKE2b-256 820a9196028b73aac7cc79e9bc3b0d8fe57a06670c33f0e169ac80bae384f8e7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page