Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Convert stylus to css real time. Easily used by any web framwork.

Project description


Convert stylus to css real time. Easily used with any web framwork.

It depends on the Python Stylus:

And the Python Stylus depends on [Node]( and [Stylus](

So you need install nodejs and stylus node package before .


pip install live-stylus


For example , in a flask project :

from flask import Flask
from live_stylus import ConvStylus

app = Flask(__name__)

from views import *

if __name__ == "__main__":
app.debug = True

In a bottle project :

from bottle import route, run, template
from live_stylus import ConvStylus

def index(name='World'):
return template('<b>Hello {{name}}</b>!', name=name)

if __name__ == "__main__":
run(host='localhost', port=8080)

Then when you modify a .styl file , it will be converted to a same name css file immediately.
eg. css/global.styl => css/global.css

If you use other web framwork , just put the ConvStylus() before the .run() or .start() code.

If you want monitor a explicitly directoty's stylus file , you can use:


## Questions?

If you have any questions, please feel free to ask through [New Issue](

## License

python-live-stylus is available under the terms of the [MIT License](

Project details

Download files

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

Files for live_stylus, version 0.2.7
Filename, size File type Python version Upload date Hashes
Filename, size live_stylus-0.2.7.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

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