stixis 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- stixis/__init__.py +93 -0
- stixis/_generated/__init__.py +1 -0
- stixis/_generated/specs.py +2688 -0
- stixis/_generated/types.py +88 -0
- stixis/_generated/units.py +28 -0
- stixis/cli.py +338 -0
- stixis/errors.py +34 -0
- stixis/microsyntax/__init__.py +1 -0
- stixis/microsyntax/family_name.py +163 -0
- stixis/microsyntax/font_src.py +238 -0
- stixis/microsyntax/opentype.py +268 -0
- stixis/microsyntax/ranges.py +388 -0
- stixis/microsyntax/urange.py +241 -0
- stixis/nodes.py +864 -0
- stixis/options.py +61 -0
- stixis/primitives.py +440 -0
- stixis/py.typed +0 -0
- stixis/syntax.py +2712 -0
- stixis-0.1.0.dist-info/METADATA +118 -0
- stixis-0.1.0.dist-info/RECORD +23 -0
- stixis-0.1.0.dist-info/WHEEL +4 -0
- stixis-0.1.0.dist-info/entry_points.txt +2 -0
- stixis-0.1.0.dist-info/licenses/LICENSE +21 -0
stixis/__init__.py
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"""Stixis: Spec-driven general-purpose CSS serializer and validator for Python 3.14+."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from stixis._generated.types import (
|
|
6
|
+
FontDisplayKeyword,
|
|
7
|
+
FontFaceDescriptors,
|
|
8
|
+
FontFormatKeyword,
|
|
9
|
+
FontTechKeyword,
|
|
10
|
+
FontWidthKeyword,
|
|
11
|
+
)
|
|
12
|
+
from stixis.errors import StixisError, StixisSyntaxError, StixisValidationError
|
|
13
|
+
from stixis.microsyntax.font_src import FontSrc
|
|
14
|
+
from stixis.microsyntax.urange import (
|
|
15
|
+
compact_urange,
|
|
16
|
+
format_urange,
|
|
17
|
+
parse_urange,
|
|
18
|
+
parse_urange_codepoints,
|
|
19
|
+
)
|
|
20
|
+
from stixis.nodes import (
|
|
21
|
+
AtRule,
|
|
22
|
+
CommentNode,
|
|
23
|
+
FontFace,
|
|
24
|
+
RawDeclaration,
|
|
25
|
+
Rule,
|
|
26
|
+
StyleRule,
|
|
27
|
+
StyleSheet,
|
|
28
|
+
canonicalize,
|
|
29
|
+
dumps,
|
|
30
|
+
serialize,
|
|
31
|
+
serialize_declarations,
|
|
32
|
+
serialize_value,
|
|
33
|
+
)
|
|
34
|
+
from stixis.options import DEFAULT_OPTIONS, SerializationOptions
|
|
35
|
+
from stixis.primitives import (
|
|
36
|
+
Deg,
|
|
37
|
+
Dimension,
|
|
38
|
+
Em,
|
|
39
|
+
GenericFamily,
|
|
40
|
+
Keyword,
|
|
41
|
+
LocalFont,
|
|
42
|
+
Pct,
|
|
43
|
+
Percentage,
|
|
44
|
+
Px,
|
|
45
|
+
Rem,
|
|
46
|
+
Url,
|
|
47
|
+
generic,
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
__version__ = "0.1.0"
|
|
51
|
+
|
|
52
|
+
__all__ = [
|
|
53
|
+
"DEFAULT_OPTIONS",
|
|
54
|
+
"AtRule",
|
|
55
|
+
"CommentNode",
|
|
56
|
+
"Deg",
|
|
57
|
+
"Dimension",
|
|
58
|
+
"Em",
|
|
59
|
+
"FontDisplayKeyword",
|
|
60
|
+
"FontFace",
|
|
61
|
+
"FontFaceDescriptors",
|
|
62
|
+
"FontFormatKeyword",
|
|
63
|
+
"FontSrc",
|
|
64
|
+
"FontTechKeyword",
|
|
65
|
+
"FontWidthKeyword",
|
|
66
|
+
"GenericFamily",
|
|
67
|
+
"Keyword",
|
|
68
|
+
"LocalFont",
|
|
69
|
+
"Pct",
|
|
70
|
+
"Percentage",
|
|
71
|
+
"Px",
|
|
72
|
+
"RawDeclaration",
|
|
73
|
+
"Rem",
|
|
74
|
+
"Rule",
|
|
75
|
+
"SerializationOptions",
|
|
76
|
+
"StixisError",
|
|
77
|
+
"StixisSyntaxError",
|
|
78
|
+
"StixisValidationError",
|
|
79
|
+
"StyleRule",
|
|
80
|
+
"StyleSheet",
|
|
81
|
+
"Url",
|
|
82
|
+
"__version__",
|
|
83
|
+
"canonicalize",
|
|
84
|
+
"compact_urange",
|
|
85
|
+
"dumps",
|
|
86
|
+
"format_urange",
|
|
87
|
+
"generic",
|
|
88
|
+
"parse_urange",
|
|
89
|
+
"parse_urange_codepoints",
|
|
90
|
+
"serialize",
|
|
91
|
+
"serialize_declarations",
|
|
92
|
+
"serialize_value",
|
|
93
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Auto-generated package for W3C `@webref/css` specifications and types."""
|