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

why?

who?

marianoguerra

how?

first of all download, compile and install libsass:

git clone https://github.com/hcatlin/libsass.git
cd libsass
./configure
make
sudo make install

then you can play with this project in two ways

command line

if no options provided read from stdin:

➜  src  ./sass.py
table.hl td.ln {
  text-align: right;
}

table.hl td.ln {
  text-align: right; }

from a file:

➜  src  ./sass.py -f ../examples/simple.scss

.content-navigation {
  border-color: #3bbfce;
  color: darken(#3bbfce, 9%); }

.border {
  padding: 8px;
  margin: 8px;
  border-color: #3bbfce; }

from a folder:

# I think it doesn't work, never used sass before and don't know what
# this means :)
➜  src  ./sass.py -d ../examples/

you can’t chew gum and walk at the same time:

➜  src  ./sass.py -f ../examples/simple.scss -d ~
usage: sass.py [-h] [-f FILE_PATH | -d DIR_PATH]
sass.py: error: argument -d/--dir: not allowed with argument -f/--file

code

from a string:

Python 2.7.3 (default, Apr 20 2012, 22:44:07)

>>> import sass
>>> STYLE = """
... table.hl td.ln {
...   text-align: right;
... }
... """

>>> ok, style = sass.compile(STYLE)

>>> ok
True

>>> print style
table.hl td.ln {
  text-align: right; }

from a file:

>>> ok, style = sass.compile_path("../examples/simple.scss")

>>> ok
True

>>> print style
.content-navigation {
  border-color: #3bbfce;
  color: darken(#3bbfce, 9%); }

.border {
  padding: 8px;
  margin: 8px;
  border-color: #3bbfce; }

from a folder:

>>> ok, style = sass.compile_folder("../examples/")

# ???
# Profit!

how to install?

from sources

python 2:

sudo python2 setup.py install

python 3:

sudo python3 setup.py install

using pip

sudo pip install SassPython

license?

MIT + optional beer for the creator

what’s left to do?

  • make the folder stuff work
  • add command line options to specify option styles
  • see what the return value of the compile_* means and use it if needed
Release History

Release History

0.2.1

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

0.2.0

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

0.1.0

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
SassPython-0.2.1.linux-i686.tar.gz (816.4 kB) Copy SHA256 Checksum SHA256 2.7 Dumb Binary Aug 8, 2012
SassPython-0.2.1.tar.gz (5.6 kB) Copy SHA256 Checksum SHA256 Source Aug 8, 2012

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