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 scrivener

How to install scrivener

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install scrivener
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.2 Available View build log
Windows (64-bit)
0.2 Available View build log
Mac OS X (10.5+)
0.2 Available View build log
Linux (32-bit)
0.2 Available View build log
Linux (64-bit)
0.2 Available View build log
 
Author
License
APL2
Depended by
Lastest release
version 0.2 on Nov 20th, 2012

scrivener is a Scribe client/server framework for use with Twisted applications.

Client API

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

Unknown directive type "code-block".

.. code-block:: python

    from twisted.internet import reactor
    from twisted.internet.endpoints import TCP4ClientEndpoint
    from scrivener import ScribeClient


    def main():
        client = ScribeClient(TCP4ClientEndpoint(reactor, '127.0.0.1', 1234))
        client.log('category', 'message1')
        client.log('category', 'message2')

    if __name__ == '__main__':
        reactor.callWhenRunning(main)
        reactor.run()


Server API

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

Unknown directive type "code-block".

.. code-block:: python

    import sys
    from twisted.internet import reactor
    from twisted.internet.endpoints import TCP4ServerEndpoint
    from twisted.python.log import startLogging

    from scrivener import ScribeServerService
    from scrivener.handlers import TwistedLogHandler


    def main():
        service = ScribeServerService(
            TCP4ServerEndpoint(reactor, 1234),
            TwistedLogHandler())
        service.startService()

    if __name__ == '__main__':
        startLogging(sys.stdout)
        reactor.callWhenRunning(main)
        reactor.run()


Server Plugin

> twistd -n scrivener --help
Usage: twistd [options] scrivener [scrivener options]
Options:
  -p, --port=            Port to listen on for scribe service. [default: tcp:0]
  -H, --handlerFactory=  Fully Qualified Name of a callable that returns an
                         ILogHandler
      --version          Display Twisted version and exit.
      --help             Display this help and exit.

> twistd -n scrivener -p 1234 -H example.MyLogHandler

License

Copyright (C) 2012 Rackspace Hosting, Inc

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Subscribe to package updates

Last updated Nov 20th, 2012

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.