Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install bugzscout-py

How to install bugzscout-py

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install bugzscout-py
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)
0.0.1 Available View build log
0.0.1 Available View build log
 
License
BSD
Dependencies
Lastest release
version 0.0.1 on Sep 20th, 2013

Python interface for the FogBugz BugzScout API.

https://travis-ci.org/thomasvandoren/bugzscout-py.png?branch=master

Installation

System Message: ERROR/3 (<string>, line 11)

Unknown directive type "code-block".

.. code-block:: bash

    pip install bugzscout-py

Supported python versions
  • 2.6, 2.7
  • 3.1, 3.2, 3.3
  • pypy

Getting Started

System Message: ERROR/3 (<string>, line 25)

Unknown directive type "code-block".

.. code-block:: pycon

    >>> import bugzscout
    >>> b = bugzscout.BugzScout('http://fogbugz/scoutSubmit.asp',
                                'fb-user',
                                'the-project',
                                'the-area')
    >>> b.submit_error('An eror occurred of type blah', extra='Extra info')

Command Line Interface

There is a command line interface for submitting errors. To simplify submitting multpile errors, the FogBugz configuration can be set in the environment.

System Message: ERROR/3 (<string>, line 40)

Unknown directive type "code-block".

.. code-block:: bash

    # (Optional) Setup the environment.
    export BUGZSCOUT_URL=http://fogbugz/scoutSubmit.asp
    export BUGZSCOUT_USER=errors
    export BUGZSCOUT_PROJECT='My Project'
    export BUGZSCOUT_AREA=Errors

    # Submit a new error.
    bugzscout --extra 'Extra data for the case...' 'The description of the error.'

Celery

The Celery extension can be used to asynchronously publish errors. This is the recommended pattern for using bugzscout in production environments.

System Message: ERROR/3 (<string>, line 58)

Unknown directive type "code-block".

.. code-block:: python

    # Import celery extension.
    import bugzscout.ext.celery_app

    # Submit errors asynchronously.
    bugzscout.ext.celery_app.submit_error.delay(
      'The description here...',
      extra='The extra information here...')

The Celery worker can use the same celery app for consuming messages.

System Message: ERROR/3 (<string>, line 72)

Unknown directive type "code-block".

.. code-block:: bash

    celery worker --app=bugzscout.ext.celery_app

A celeryconfig.py file on the PYTHONPATH can be used to configure the celery instance. For example:

System Message: ERROR/3 (<string>, line 79)

Unknown directive type "code-block".

.. code-block:: bash

    export CELERY_CONFIG_MODULE=celeryconfig
    celery worker --app=bugzscout.ext.celery_app

License

BSD

Authors

Thomas Van Doren

Subscribe to package updates

Last updated Sep 20th, 2013

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.