File tree Expand file tree Collapse file tree 4 files changed +12
-18
lines changed Expand file tree Collapse file tree 4 files changed +12
-18
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## [ Unreleased]
4
4
5
+ ## [ 0.2.0] - 2020-06-25
6
+
5
7
### Added
6
8
7
9
- Loading external stylesheets. [ #8 ] ( https://github.com/Stranger6667/css-inline/issues/8 )
20
22
21
23
- Initial public release
22
24
23
- [ Unreleased ] : https://github.com/Stranger6667/css-inline/compare/python-v0.1.0...HEAD
25
+ [ Unreleased ] : https://github.com/Stranger6667/css-inline/compare/python-v0.2.0...HEAD
26
+ [ 0.2.0 ] : https://github.com/Stranger6667/css-inline/compare/python-v0.1.0...python-v0.2.0
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " css-inline-python"
3
- version = " 0.1 .0"
3
+ version = " 0.2 .0"
4
4
authors = [
" Dmitry Dygalo <[email protected] >" ]
5
5
edition = " 2018"
6
6
Original file line number Diff line number Diff line change @@ -34,19 +34,10 @@ To inline CSS in a HTML document:
34
34
HTML = """ <html>
35
35
<head>
36
36
<title>Test</title>
37
- <style>
38
- h1, h2 { color:blue; }
39
- strong { text-decoration:none }
40
- p { font-size:2px }
41
- p.footer { font-size: 1px}
42
- </style>
37
+ <style>h1 { color:blue; }</style>
43
38
</head>
44
39
<body>
45
40
<h1>Big Text</h1>
46
- <p>
47
- <strong>Solid</strong>
48
- </p>
49
- <p class="footer">Foot notes</p>
50
41
</body>
51
42
</html>"""
52
43
@@ -77,18 +68,18 @@ library has good performance characteristics. In comparison with other Python pr
77
68
78
69
For inlining CSS in the html document from the ``Usage `` section above we have the following breakdown in our benchmarks:
79
70
80
- - ``css_inline 0.1 .0 `` - 24.82 us
81
- - ``premailer 3.7.0 `` - 356.59 us (**x14.37 **)
82
- - ``inlinestyler 0.2.4 `` - 2.62 ms (**x105.82 **)
83
- - ``pynliner 0.8.0 `` - 3.03 ms (**x122.44 **)
71
+ - ``css_inline 0.2 .0 `` - 24.47 us
72
+ - ``premailer 3.7.0 `` - 345.47 us (**x14.11 **)
73
+ - ``inlinestyler 0.2.4 `` - 2.47 ms (**x101.03 **)
74
+ - ``pynliner 0.8.0 `` - 2.82 ms (**x115.53 **)
84
75
85
76
You can take a look at the benchmarks' code at ``benches/bench.py `` file.
86
77
The results above were measured with ``rustc 1.46 ``, ``Python 3.8 `` on i8700K, and 32GB RAM.
87
78
88
79
Limitations
89
80
-----------
90
81
91
- Currently (as of ``0.1 .0 ``) there are the following notable limitations:
82
+ Currently (as of ``0.2 .0 ``) there are the following notable limitations:
92
83
93
84
- Inlined CSS is not minimized (`#12 <https://github.com/Stranger6667/css-inline/issues/12 >`_)
94
85
- `class ` and `id ` attributes are not removed (`#13 <https://github.com/Stranger6667/css-inline/issues/13 >`_)
Original file line number Diff line number Diff line change 20
20
def call_setup ():
21
21
setup (
22
22
name = "css_inline" ,
23
- version = "0.1 .0" ,
23
+ version = "0.2 .0" ,
24
24
description = "Fast CSS inlining written in Rust" ,
25
25
long_description = open ("README.rst" , encoding = "utf-8" ).read (),
26
26
long_description_content_type = "text/x-rst" ,
You can’t perform that action at this time.
0 commit comments