MyGit

obi1kenobi/trustfall

Fork: 68 Star: 2403 (更新于 2024-11-06 05:09:09)

license: Apache-2.0

Language: Rust .

A query engine for any combination of data sources. Query your files and APIs as if they were databases!

最后发布版本: trustfall-v0.7.1 ( 2023-11-18 05:35:14)

GitHub网址

Trustfall — Engine for Querying (Almost) Everything

Trustfall is a query engine for querying any kind of data source, from APIs and databases to any kind of files on disk — and even AI models.

Try Trustfall in your browser

The Trustfall Playground supports running queries against public data sources such as:

For example, this link shows the results of the HackerNews query: "Which GitHub or Twitter users are commenting on stories about OpenAI?"

In the Playground, Trustfall is configured to run client-side as WASM, performing all aspects of query processing (parsing, compilation, and execution) within the browser. While this demo highlights Trustfall's ability to be embedded within a target application, it is of course able to be used in a more traditional client-server context as well.

10min tech talk + demo

Trustfall was featured in the "How to Query (Almost) Everything" talk talk at the HYTRADBOI 2022 conference.

Terminal recording of running cargo run --release -- query example_queries/actions_in_repos_with_min_10_hn_pts.ron in the demo-hytradboi demo project. The system returns the first 20 results of the query in 6.36 seconds."

Demo from the talk showing the execution of the cross-API query: "Which GitHub Actions are used in projects on the front page of HackerNews with >=10 points?"

The demo executes the following query across the HackerNews and GitHub APIs and over the YAML-formatted GitHub repository workflow files:

{
  HackerNewsTop(max: 200) {
    ... on HackerNewsStory {
      hn_score: score @filter(op: ">=", value: ["$min_score"]) @output

      link {
        ... on GitHubRepository {
          repo_url: url @output

          workflows {
            workflow: name @output
            workflow_path: path @output

            jobs {
              job: name @output

              step {
                ... on GitHubActionsImportedStep {
                  step: name @output
                  action: uses @output
                }
              }
            }
          }
        }
      }
    }
  }
}

Instructions for running the demo are available together with the source code in the demo-hytradboi directory: link.

Examples of querying real-world data with Trustfall

Trustfall also powers the cargo-semver-checks semantic versioning linter. More details on the role Trustfall plays in that use case are available in this blog post.

Using Trustfall over a new data source

The easiest way to plug in a new data source is by implementing the BasicAdapter trait.

Python bindings are available, and are built automatically on every change to the engine; the most recent version may be downloaded here. A getting started guide for Python is forthcoming (tracking issue); in the meantime, the best resource is the Python bindings' test suite.

Directory Registry

Copyright 2022-present Predrag Gruevski.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

The present date is determined by the timestamp of the most recent commit in the repository. By accessing, and contributing code, comments, or issues to this repository, you are agreeing that all your contributions may be used, modified, copied, and/or redistributed under any terms chosen by the original author and/or future maintainers of this project.

最近版本更新:(数据更新于 2024-08-28 06:16:28)

2023-11-18 05:35:14 trustfall-v0.7.1

2023-08-28 23:50:32 trustfall-v0.6.1

2023-07-26 04:18:09 trustfall_stubgen-v0.3.0

2023-07-26 03:46:20 trustfall-v0.6.0

2023-07-01 04:02:49 trustfall_stubgen-v0.2.1

2023-07-01 02:53:31 trustfall-v0.5.1

2023-05-30 12:04:52 trustfall-v0.5.0

2023-04-24 22:04:59 trustfall-v0.4.0

2022-07-16 07:56:27 trustfall_wasm-v0.1.0-533911d

2022-07-16 07:53:35 pytrustfall-v0.1.0-533911d

主题(topics):

javascript, python, query-language, rust, wasm

obi1kenobi/trustfall同语言 Rust最近更新仓库

2024-11-24 11:02:32 lapce/lapce

2024-11-23 21:43:05 gleam-lang/gleam

2024-11-22 05:42:56 lanyeeee/jmcomic-downloader

2024-11-22 01:44:25 surrealdb/surrealdb

2024-11-11 22:51:00 tauri-apps/tauri

2024-11-11 07:55:30 dani-garcia/vaultwarden