why?
the guy on this talk asqued for it: http://www.confreaks.com/videos/859-railsconf2012-the-future-of-sass
I wanted to play with ctypes
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
Metadata
Release files for SassPython 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| SassPython-0.2.1.tar.gz | 5.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| SassPython-0.2.1.linux-i686.tar.gz | Details |
Total release size: 822.0 kB
Release files / SassPython-0.2.1.tar.gz
| Download URL | SassPython-0.2.1.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a3d9d5a2ac4ad809ec6ae70bbcfa3aa1b2e47052aa17bfc7f83c498ee0aeb70
|
|
BLAKE2b-256 checksum How to use checksums |
5b395c8114b333de15bef4766af1b24b21b2f2a077e4e3da5da7b885b18a7d80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / SassPython-0.2.1.linux-i686.tar.gz
| Download URL | SassPython-0.2.1.linux-i686.tar.gz |
|---|---|
| Size | 816.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
029e38e4c63277232dadfc96be463e6efebea887ff51a11e3000005e10a5b48f
|
|
BLAKE2b-256 checksum How to use checksums |
2ec1e478d1dde227153c9e83461147cca7d984e3fa35c279a857d40a217bb038
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for SassPython 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.