yamlscript 0.1.80__tar.gz → 0.1.82__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.
- {yamlscript-0.1.80/lib/yamlscript.egg-info → yamlscript-0.1.82}/PKG-INFO +1 -5
- {yamlscript-0.1.80 → yamlscript-0.1.82}/ReadMe.md +13 -14
- {yamlscript-0.1.80 → yamlscript-0.1.82}/lib/yamlscript/__init__.py +2 -2
- {yamlscript-0.1.80 → yamlscript-0.1.82/lib/yamlscript.egg-info}/PKG-INFO +1 -5
- {yamlscript-0.1.80 → yamlscript-0.1.82}/setup.py +1 -1
- {yamlscript-0.1.80 → yamlscript-0.1.82}/.long_description.md +0 -0
- {yamlscript-0.1.80 → yamlscript-0.1.82}/MANIFEST.in +0 -0
- {yamlscript-0.1.80 → yamlscript-0.1.82}/lib/yamlscript.egg-info/SOURCES.txt +0 -0
- {yamlscript-0.1.80 → yamlscript-0.1.82}/lib/yamlscript.egg-info/dependency_links.txt +0 -0
- {yamlscript-0.1.80 → yamlscript-0.1.82}/lib/yamlscript.egg-info/requires.txt +0 -0
- {yamlscript-0.1.80 → yamlscript-0.1.82}/lib/yamlscript.egg-info/top_level.txt +0 -0
- {yamlscript-0.1.80 → yamlscript-0.1.82}/setup.cfg +0 -0
- {yamlscript-0.1.80 → yamlscript-0.1.82}/test/test.py +0 -0
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: yamlscript
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.82
|
|
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
|
|
7
7
|
Author-email: ingy@ingy.net
|
|
8
8
|
License: MIT
|
|
9
9
|
Keywords: yaml,language
|
|
10
|
-
Platform: UNKNOWN
|
|
11
10
|
Classifier: Development Status :: 3 - Alpha
|
|
12
11
|
Classifier: Intended Audience :: Developers
|
|
13
12
|
Classifier: License :: OSI Approved :: MIT License
|
|
@@ -19,6 +18,3 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
19
18
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
19
|
Requires-Python: >=3.6, <4
|
|
21
20
|
Description-Content-Type: text/markdown
|
|
22
|
-
|
|
23
|
-
UNKNOWN
|
|
24
|
-
|
|
@@ -13,12 +13,11 @@ Load `file.yaml` with YAMLScript:
|
|
|
13
13
|
!yamlscript/v0/
|
|
14
14
|
|
|
15
15
|
# Get data from external sources:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"random-name/master/first-names.json"
|
|
16
|
+
names-url =:
|
|
17
|
+
"https://raw.githubusercontent.com/dominictarr/\
|
|
18
|
+
random-name/master/first-names.json"
|
|
20
19
|
|
|
21
|
-
|
|
20
|
+
name-list =: &first-names json/load(curl(names-url))
|
|
22
21
|
|
|
23
22
|
# Data object with literal keys and generated values:
|
|
24
23
|
name:: rand-nth(*first-names)
|
|
@@ -75,15 +74,15 @@ CLI binary `ys` to run:
|
|
|
75
74
|
|
|
76
75
|
```text
|
|
77
76
|
$ ys --compile file.ys
|
|
78
|
-
(
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
77
|
+
(let
|
|
78
|
+
[names-url "https://raw.githubusercontent.com/dominictarr/random-name/master/first-names.json"
|
|
79
|
+
name-list (_& 'first-names (json/load (curl names-url)))]
|
|
80
|
+
(%
|
|
81
|
+
"name" (rand-nth (_** 'first-names))
|
|
82
|
+
"aka" (rand-nth name-list)
|
|
83
|
+
"age" (_& 'num (mul+ 2 3 7))
|
|
84
|
+
"color" (_& 'hue (first (shuffle (qw red green blue yellow))))
|
|
85
|
+
"title" (str (_** 'num) " shades of " (_** 'hue) ".")))
|
|
87
86
|
```
|
|
88
87
|
|
|
89
88
|
|
|
@@ -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.
|
|
19
|
+
yamlscript_version = '0.1.82'
|
|
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.
|
|
43
|
+
# eg 'libyamlscript.so.0.1.82'
|
|
44
44
|
libyamlscript_name = \
|
|
45
45
|
"libyamlscript.%s.%s" % (so, yamlscript_version)
|
|
46
46
|
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: yamlscript
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.82
|
|
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
|
|
7
7
|
Author-email: ingy@ingy.net
|
|
8
8
|
License: MIT
|
|
9
9
|
Keywords: yaml,language
|
|
10
|
-
Platform: UNKNOWN
|
|
11
10
|
Classifier: Development Status :: 3 - Alpha
|
|
12
11
|
Classifier: Intended Audience :: Developers
|
|
13
12
|
Classifier: License :: OSI Approved :: MIT License
|
|
@@ -19,6 +18,3 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
19
18
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
19
|
Requires-Python: >=3.6, <4
|
|
21
20
|
Description-Content-Type: text/markdown
|
|
22
|
-
|
|
23
|
-
UNKNOWN
|
|
24
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|