Skip to main content

Standard constants for the marketplace

Project description

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:

Project details


Release history Release notifications

History Node

0.15.0

History Node

0.14.0

History Node

0.13.0

History Node

0.12.0

History Node

0.11.0

History Node

0.10.0

History Node

0.9.1

History Node

0.9.0

History Node

0.8.0

History Node

0.7.0

History Node

0.6.1

History Node

0.5.4

History Node

0.5.2

History Node

0.5.1

History Node

0.5.0

History Node

0.4.0

History Node

0.3.2

History Node

0.3.1

History Node

0.3.0

History Node

0.2.0

History Node

0.1.5

History Node

0.1.4.9

History Node

0.1.4.8

History Node

0.1.4.7

History Node

0.1.4.6

History Node

0.1.4.5

History Node

0.1.4.4

History Node

0.1.4.3

History Node

0.1.4.2

History Node

0.1.4.1

This version
History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
marketplace-constants-0.1.4.tar.gz (160.9 kB) Copy SHA256 hash SHA256 Source None Sep 2, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page