yamlscript 0.1.91__tar.gz → 0.1.93__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: yamlscript
3
- Version: 0.1.91
3
+ Version: 0.1.93
4
4
  Summary: Program in YAML — Code is Data
5
5
  Home-page: https://github.com/ingydotnet/yamlscript
6
6
  Author: Ingy döt Net
@@ -1,16 +1,16 @@
1
1
  <!-- DO NOT EDIT — THIS FILE WAS GENERATED -->
2
2
 
3
- YAMLScript
4
- ==========
3
+ YS / YAMLScript
4
+ ===============
5
5
 
6
6
  Add Logic to Your YAML Files
7
7
 
8
8
 
9
9
  ## Synopsis
10
10
 
11
- Load `file.yaml` with YAMLScript:
11
+ Load `file.yaml` with YS:
12
12
  ```yaml
13
- !YS v0:
13
+ !YS-v0:
14
14
 
15
15
  # Get data from external sources:
16
16
  names-url =:
@@ -43,33 +43,31 @@ and get:
43
43
 
44
44
  ## Description
45
45
 
46
- [YAMLScript](https://yamlscript.org) is a functional programming language with a
47
- clean YAML syntax.
46
+ [YS](https://yamlscript.org) is a functional programming language with a clean
47
+ YAML syntax.
48
48
 
49
- YAMLScript can be used for enhancing ordinary [YAML](https://yaml.org) files
50
- with functional operations, such as:
49
+ YS can be used for enhancing ordinary [YAML](https://yaml.org) files with
50
+ functional operations, such as:
51
51
 
52
52
  * Import (parts of) other YAML files to any node
53
53
  * String interpolation including function calls
54
54
  * Data transforms including ones defined by you
55
55
 
56
- This YAMLScript library should be a drop-in replacement for your current YAML
57
- loader!
56
+ This YS library should be a drop-in replacement for your current YAML loader!
58
57
 
59
- Most existing YAML files are already valid YAMLScript files.
60
- This means that YAMLScript works as a normal YAML loader, but can also evaluate
58
+ Most existing YAML files are already valid YS files.
59
+ This means that YS works as a normal YAML loader, but can also evaluate
61
60
  functional expressions if asked to.
62
61
 
63
- Under the hood, YAMLScript code compiles to the Clojure programming language.
64
- This makes YAMLScript a complete functional programming language right out of
65
- the box.
62
+ Under the hood, YS code compiles to the Clojure programming language.
63
+ This makes YS a complete functional programming language right out of the box.
66
64
 
67
- Even though YAMLScript compiles to Clojure, and Clojure compiles to Java, there
68
- is no dependency on Java or the JVM.
69
- YAMLScript is compiled to a native shared library (`libyamlscript.so`) that can
70
- be used by any programming language that can load shared libraries.
65
+ Even though YS compiles to Clojure, and Clojure compiles to Java, there is no
66
+ dependency on Java or the JVM.
67
+ YS is compiled to a native shared library (`libyamlscript.so`) that can be used
68
+ by any programming language that can load shared libraries.
71
69
 
72
- To see the Clojure code that YAMLScript compiles to, you can use the YAMLScript
70
+ To see the Clojure code that YS compiles to, you can use the YS
73
71
  CLI binary `ys` to run:
74
72
 
75
73
  ```text
@@ -85,7 +83,6 @@ $ ys --compile file.ys
85
83
  "title" (str (_** 'num) " shades of " (_** 'hue) ".")))
86
84
  ```
87
85
 
88
-
89
86
  ## Python Usage
90
87
 
91
88
  File `prog.py`:
@@ -101,14 +98,13 @@ print(data)
101
98
  File `file.ys`:
102
99
 
103
100
  ```yaml
104
- !yamlscript/v0
101
+ !YS-v0:
105
102
 
106
103
  name =: "World"
107
104
 
108
- =>::
109
- foo: [1, 2, ! inc(41)]
110
- bar:: load("other.yaml")
111
- baz:: "Hello, $name!"
105
+ foo: [1, 2, ! inc(41)]
106
+ bar:: load("other.yaml")
107
+ baz:: "Hello, $name!"
112
108
  ```
113
109
 
114
110
  File `other.yaml`:
@@ -147,24 +143,21 @@ command line utility, `ys`, and the shared library, `libyamlscript.so`, into
147
143
 
148
144
  See https://github.com/yaml/yamlscript?#installing-yamlscript for more info.
149
145
 
150
-
151
146
  ## See Also
152
147
 
153
- * [YAMLScript Web Site](https://yamlscript.org)
154
- * [YAMLScript Blog](https://yamlscript.org/blog)
155
- * [YAMLScript Source Code](https://github.com/yaml/yamlscript)
156
- * [YAMLScript Samples](https://github.com/yaml/yamlscript/tree/main/sample)
157
- * [YAMLScript Programs](https://rosettacode.org/wiki/Category:YAMLScript)
148
+ * [YS Web Site](https://yamlscript.org)
149
+ * [YS Blog](https://yamlscript.org/blog)
150
+ * [YS Source Code](https://github.com/yaml/yamlscript)
151
+ * [YS Samples](https://github.com/yaml/yamlscript/tree/main/sample)
152
+ * [YS Programs](https://rosettacode.org/wiki/Category:YAMLScript)
158
153
  * [YAML](https://yaml.org)
159
154
  * [Clojure](https://clojure.org)
160
155
 
161
156
 
162
157
  ## Authors
163
158
 
164
-
165
159
  * [Ingy döt Net](https://github.com/ingydotnet)
166
160
 
167
-
168
161
  ## License & Copyright
169
162
 
170
163
  Copyright 2022-2025 Ingy döt Net <ingy@ingy.net>
@@ -16,7 +16,7 @@ object that the YAMLScript code evaluates to.
16
16
  # This value is automatically updated by 'make bump'.
17
17
  # The version number is used to find the correct shared library file.
18
18
  # We currently only support binding to an exact version of libyamlscript.
19
- yamlscript_version = '0.1.91'
19
+ yamlscript_version = '0.1.93'
20
20
 
21
21
  import os, sys
22
22
  import ctypes
@@ -40,7 +40,7 @@ def find_libyamlscript_path():
40
40
  "Unsupported platform '%s' for yamlscript." % sys.platform)
41
41
 
42
42
  # We currently bind to an exact version of libyamlscript.
43
- # eg 'libyamlscript.so.0.1.91'
43
+ # eg 'libyamlscript.so.0.1.93'
44
44
  libyamlscript_name = \
45
45
  "libyamlscript.%s.%s" % (so, yamlscript_version)
46
46
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: yamlscript
3
- Version: 0.1.91
3
+ Version: 0.1.93
4
4
  Summary: Program in YAML — Code is Data
5
5
  Home-page: https://github.com/ingydotnet/yamlscript
6
6
  Author: Ingy döt Net
@@ -1,4 +1,4 @@
1
- version = '0.1.91'
1
+ version = '0.1.93'
2
2
 
3
3
  from setuptools import setup
4
4
  import pathlib
File without changes
File without changes
File without changes