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!

Fanstatic packaging of Leaflet

Project Description



This library packages the Leaflet JavaScript mapping library for fanstatic.

This requires integration between your web framework and fanstatic, and making sure that the original resources (shipped in the resources directory in js.leaflet) are published to some URL. As a bonus, this library also packages up minified versions of the original CSS resources.


The packaging is stored on GitHub at If you happen to come across a bug that corresponds to packaging, then please report it here. Pull requests are more than welcome if you’re fixing something yourself – the more help the better!

Any other bugs that relate to the library itself should be directed to the original developers.

Development of this package

This process requires installation of the package for development - the suggested method to do this is via the Buildout within this package:

cd js.leaflet

Running tests

After running the Buildout within this package, do this:


…and watch the magic unfold.

Updating this package

In order to obtain a newer version of this library, do the following (substituting the version number for the newer version):

pushd js/leaflet/resources
wget$ -O
#Overwrites older files with new ones
unzip -o
#Edit changelog, for versions, etc here
./bin/fanstatic-compile -v js
git add js
git commit -a -m "Updated for release $LEAFLET_VERSION"
git push

If you’re doing this out in your own fork of the GitHub repository, then send through a pull request so everyone can benefit from the updated library.


You can import leaflet from js.leaflet and need it where you want these resources to be included on a page:

>>> from js.leaflet import leaflet
>>> leaflet.need()


0.7.1 (2014-01-06)

  • Upgraded Leaflet to v0.7.1. [davidjb]

0.6.3 (2013-07-18)

  • Upgraded Leaflet to v0.6.3. [davidjb]

0.6.2 (2013-07-03)

  • Upgraded Leaflet to v0.6.2. [davidjb]
  • Use Fanstatic for minification of CSS. This library now requires Fanstatic 1.0a or above. [davidjb]
  • Fix typo in library name. [davidjb]
  • Add tox and Travis CI support. [davidjb]

0.5 (2013-02-04)

  • Upgraded Leaflet to v0.5. [davidjb]

0.4.5 (2013-01-07)

  • Initial release.
Release History

Release History

History Node


History Node


This version
History Node


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 (124.8 kB) Copy SHA256 Checksum SHA256 Source Jan 6, 2014

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