skip to navigation
skip to content

Not Logged In

marketplace-constants 0.1.4

Standard constants for the marketplace

Latest Version: 0.7.0

Global constants for the Firefox Marketplace, available in both JS and Python.

Python

Example:

>>> from mpconstants import payments
>>> payments.PAYMENT_STATUSES
{1: 'passed', 2: 'failed'}

Node

Example:

> var c = require('./mpconstants.js')
> c('payments')['PAYMENT_STATUSES']
  { '1': 'passed',
    '2': 'failed' }

The content of these files are generated from multiple sources:

  • Python code copied out of the various marketplace repositories
  • JSON code pulled from the Mozilla SVN servers

If you want to update any constants from SVN, or add in any new constants, then run the generate script to build out the new files. Compare the differences, add or remove any files from git and commit. To run the generate script:

python generate.py

This package is on:

 
File Type Py Version Uploaded on Size
marketplace-constants-0.1.4.tar.gz (md5) Source 2014-09-02 157KB
  • Downloads (All Versions):
  • 46 downloads in the last day
  • 707 downloads in the last week
  • 2580 downloads in the last month