File: se.tac

package info (click to toggle)
python-cyclone 1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,388 kB
  • ctags: 1,372
  • sloc: python: 8,823; sh: 183; makefile: 13; sql: 12
file content (14 lines) | stat: -rw-r--r-- 388 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python
# coding: utf-8
# twistd -ny s3.tac
# gleicon moraes (http://zenmachine.wordpress.com | http://github.com/gleicon)

SERVER_PORT = 4000

import s3server
from twisted.application import service, internet

application = service.Application("s3")
srv = internet.TCPServer(SERVER_PORT, s3server.S3Application(root_directory="/tmp/s3"))
srv.setServiceParent(application)