This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

T-Service is a tiny Python tool for starting a local static file server using Tornado. I use it for previewing sites before pushing them to GitHub Pages.


T-Service is on PyPI, install it with: pip install tservice.


T-Service installs a command line utility called tserve. tserve has one required parameter: the directory from which to serve files. For example, to start the server from a directory called build that’s in your current directory, use this command:

tserve build

The server starts on port 8000 by default, so you can look for your site at http://localhost:8000.

Specifying a Port

If port 8000 is in use, or you want to use a different port, use the -p/--port flag:

tserve --port 7654 build

Specifying a Prefix

If you need to run the server so that it serves the files from some prefix use the -f/--prefix flag:

tserve --prefix myusername build

That will cause the files to be served from http://localhost:8000/myusername/. (You may need to do this so that the local site matches where your site will be deployed, e.g. GitHub Pages or a university server.)

Stopping the Server

Type control-C at the command line to stop the server.

Why Not Use Python’s Server?

I’ve found I sometimes need to serve files with a prefix on the URL, and I don’t know how to do that with Python’s builtin server.

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
tservice-1.0.0-py2.py3-none-any.whl (5.3 kB) Copy SHA256 Checksum SHA256 any Wheel Mar 8, 2015
tservice-1.0.0.tar.gz (6.7 kB) Copy SHA256 Checksum SHA256 Source Mar 8, 2015 (10.7 kB) Copy SHA256 Checksum SHA256 Source Mar 8, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting