-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated README with better and more examples; support negative indices
- Loading branch information
1 parent
384613e
commit 870864d
Showing
13 changed files
with
431 additions
and
201 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Feature implementation status | ||
|
||
### Interpretations | ||
|
||
| *Feature* | *Readable* | *Writeble* | | ||
|------------|------------|------------| | ||
| url | yes | yes | | ||
| path | yes | yes | | ||
| fs | yes | yes | | ||
| http | yes | yes | | ||
| json | yes | yes | | ||
| yaml | yes | yes | | ||
| toml | yes | yes | | ||
| xml | yes | yes | | ||
| rust | yes | | | ||
| | | | | ||
| git | | | | ||
| database | | | | ||
| ical | | | | ||
| zip | | | | ||
| | | | | ||
| plain text | | | | ||
| markdown | | | | ||
| | | | | ||
| python | | | | ||
| javascript | | | | ||
| go | | | | ||
|------------|------------|------------| | ||
|
||
|
||
### Language bindings | ||
|
||
| *Feature* | *Support* | | ||
|-----------------|-----------| | ||
| C interop | | | ||
| Python interop | | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# List of potential use cases | ||
|
||
This list of potential use cases should drive the development of the library. | ||
|
||
See also the "### What can it do?" section in the README.md file. | ||
|
||
### Functions | ||
|
||
Special: path(cell path), label, value, serial | ||
General: sort, unique, filter, map, reduce, grouping | ||
Text: concat, regex, len, casing, substrings, split, join, replace, trim, padding, ends_with, starts_with | ||
Aggregation: count, sum, avg, min, max | ||
Math: round, abs | ||
Date: parse, format, add, subtract, diff, duration | ||
|
||
``` | ||
/question[count(/answer_entities/*)==0] | ||
``` | ||
|
||
### Python requirements | ||
|
||
Update a python module version in a requirements.txt file: | ||
|
||
```bash | ||
# change the version of the requests module to 1.2.3 | ||
hial './requirements.txt^python.reqs/*[/[0]=="requests"] = "1.2.3"' | ||
|
||
# increment the minor version of the requests module | ||
hial 'x = ./requirements.txt^python.requirements/*[/[0]=="requests"]; $x/[2]^version/:minor += 1' | ||
``` | ||
|
||
|
||
### Search with results structured into a tree | ||
|
||
Unclear: what is the accepted language? | ||
``` | ||
x = './**/*[.name=='config.yaml'] (as composefile)]^yaml/services/*/image[^string^http@status/code!=200] | ||
tree 'result' / [composefile] / image | ||
``` | ||
|
||
### Transform one format to another | ||
|
||
Transform a json file to an xml file and vice versa. | ||
|
||
### Structured diff between two files in different formats | ||
|
||
``` | ||
hial 'diff x y' | ||
``` | ||
|
||
|
||
### - Extract the general structure of a rust file | ||
|
||
Get the struct/enum/type definitions (just the name and the type) and the function definitions (just the name and the signature). Get all implementations of traits and the functions inside them, as a tree. | ||
|
||
``` | ||
hial 'item = ./src/tests/rust.rs^rust/**[:struct_item|:enum_item|:type_item|:function_item]; item/' | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.