Skip to main content

Lightweight pipelining with Python functions

Project description

Joblib version CI status Documentation Status Codecov coverage

The homepage of joblib with user documentation is located on:

https://joblib.readthedocs.io

Getting the latest code

To get the latest code using git, simply type:

git clone https://github.com/joblib/joblib.git

If you don’t have git installed, you can download a zip of the latest code: https://github.com/joblib/joblib/archive/refs/heads/main.zip

Installing

You can use pip to install joblib from any directory:

pip install joblib

or install it in editable mode from the source directory:

pip install -e .

Dependencies

  • Joblib has no mandatory dependencies besides Python (supported versions are 3.9+).

  • Joblib has an optional dependency on Numpy (at least version 1.6.1) for array manipulation.

  • Joblib includes its own vendored copy of loky for process management.

  • Joblib can efficiently dump and load numpy arrays but does not require numpy to be installed.

  • Joblib has an optional dependency on python-lz4 as a faster alternative to zlib and gzip for compressed serialization.

  • Joblib has an optional dependency on psutil to mitigate memory leaks in parallel worker processes.

  • Some examples require external dependencies such as pandas. See the instructions in the Building the docs section for details.

Workflow to contribute

To contribute to joblib, first create an account on github. Once this is done, fork the joblib repository to have your own repository, clone it using git clone. Make your changes in a branch of your clone, push them to your github account, test them locally, and when you are happy with them, send a pull request to the main repository.

You can use pre-commit to run code style checks before each commit:

pip install pre-commit
pre-commit install

pre-commit checks can be disabled for a single commit with:

git commit -n

Running the test suite

To run the test suite, you need the pytest (version >= 3) and coverage modules. Run the test suite using:

pytest joblib

from the root of the project.

Building the docs

To build the docs you need to have sphinx (>=1.4) and some dependencies installed:

pip install -U -r .readthedocs-requirements.txt

The docs can then be built with the following command:

make doc

The html docs are located in the doc/_build/html directory.

Making a source tarball

To create a source tarball, eg for packaging or distributing, run the following command:

pip install build
python -m build --sdist

The tarball will be created in the dist directory. This command will create the resulting tarball that can be installed with no extra dependencies than the Python standard library.

Making a release and uploading it to PyPI

This command is only run by project manager, to make a release, and upload in to PyPI:

pip install build
python -m build --sdist --wheel
twine upload dist/*

Note that the documentation should automatically get updated at each git push. If that is not the case, try building th doc locally and resolve any doc build error (in particular when running the examples).

Updating the changelog

Changes are listed in the CHANGES.rst file. They must be manually updated but, the following git command may be used to generate the lines:

git log --abbrev-commit --date=short --no-merges --sparse

Project details


Release history Release notifications | RSS feed

This version

1.5.0

Download files

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

Source Distribution

joblib-1.5.0.tar.gz (330.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

joblib-1.5.0-py3-none-any.whl (307.7 kB view details)

Uploaded Python 3

File details

Details for the file joblib-1.5.0.tar.gz.

File metadata

  • Download URL: joblib-1.5.0.tar.gz
  • Upload date:
  • Size: 330.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for joblib-1.5.0.tar.gz
Algorithm Hash digest
SHA256 d8757f955389a3dd7a23152e43bc297c2e0c2d3060056dad0feefc88a06939b5
MD5 9a0f8115ef727e5c4b960ce8b74eab19
BLAKE2b-256 30088bd4a0250247861420a040b33ccf42f43c426ac91d99405374ef117e5872

See more details on using hashes here.

Provenance

The following attestation bundles were made for joblib-1.5.0.tar.gz:

Publisher: publish-to-pypi.yml on joblib/joblib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file joblib-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: joblib-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 307.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for joblib-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 206144b320246485b712fc8cc51f017de58225fa8b414a1fe1764a7231aca491
MD5 7611f380408ecbb46525a56730c7f423
BLAKE2b-256 dad313ee227a148af1c693654932b8b0b02ed64af5e1f7406d56b088b57574cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for joblib-1.5.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on joblib/joblib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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