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.
@@ -1,13 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: yamlscript
3
- Version: 0.1.80
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
- names-url =:
18
- "https://raw.githubusercontent.com/dominictarr/" +
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
- name-list =: &first-names json/load(curl(names-url))
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
- (def names-url
79
- (+_ "https://raw.githubusercontent.com/dominictarr/"
80
- "random-name/master/first-names.json"))
81
- (def name-list (_& 'first-names (json/load (curl names-url))))
82
- {"age" (_& 'num (*_ 2 3 7)),
83
- "aka" (_-> name-list (list rand-nth)),
84
- "color" (_& 'hue (_-> (qw red green blue yellow) (list shuffle) (list first))),
85
- "name" (rand-nth (_** 'first-names)),
86
- "title" (str (_** 'num) " shades of " (_** 'hue) ".")}
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.80'
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.80'
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.80
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
-
@@ -1,4 +1,4 @@
1
- version = '0.1.80'
1
+ version = '0.1.82'
2
2
 
3
3
  from setuptools import setup
4
4
  import pathlib
File without changes
File without changes
File without changes