Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

The interface between FastJet and NumPy

Project Description

pyjet allows you to perform jet clustering with FastJet on NumPy arrays.

By default pyjet only depends on NumPy and internally uses FastJet’s standalone fjcore release.

Standalone Installation

To simply use the built-in FastJet source:

pip install --user pyjet

And you’re good to go!

Get and run it:

curl -O
jet#          pT        eta        phi       mass  #constit.
0        983.280     -0.868      2.905     36.457         34
1        901.745      0.221     -0.252     51.850         34
2         67.994     -1.194     -0.200     11.984         32
3         12.465      0.433      0.673      5.461         13
4          6.568     -2.629      1.133      2.099          9
5          6.498     -1.828     -2.248      3.309          6

Using an External FastJet Installation

To take advantage of the full FastJet library and optimized O(NlnN) kt and anti-kt algorithms, first install FastJet and then install pyjet with the --external-fastjet flag.

First install CGAL and GMP:

On a Debian-based system (Ubuntu):

sudo apt-get install libcgal-dev libcgal11v5 libgmp-dev libgmp10

On an RPM-based system (Fedora):

sudo dnf install gmp.x86_64 gmp-devel.x86_64 CGAL.x86_64 CGAL-devel.x86_64

On Mac OS:

brew install cgal gmp wget

Then run pyjet’s script:

curl -O
chmod +x
sudo ./

Now install pyjet like:

pip install --user pyjet --install-option="--external-fastjet"

pyjet will now use the external FastJet installation on your system.

Release History

Release History

History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


This version
History Node


History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pyjet-0.0.4.tar.gz (150.4 kB) Copy SHA256 Checksum SHA256 Source May 24, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting