Skip to main content

Fanstatic package providing a small js library for declaring namespaces.

Project description



This library provides a small javascript library to declare namespaces, packaged for fanstatic.

Create and use a namespace

Once included, you can use namespace.declare(‘your.namespace’); to declare a namespace. Then you can bind objects to that namespace by just assigning them like your.namespace.your_funky_function = function(foo) {…};

You are then able to access these objects from anywhere, without polluting the global scope. Using dotted namespaces is a well known pattern to get a nice and tidy codebase.

How to use?

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

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


0.1 (2013-05-15)

  • Initial release.

Project details

Release history Release notifications

This version


Download files

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

Files for js.namespace, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size (9.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page