{"id":23009548,"url":"https://github.com/devolutions/siquery-rs","last_synced_at":"2025-06-26T14:35:42.424Z","repository":{"id":37445047,"uuid":"130747186","full_name":"Devolutions/siquery-rs","owner":"Devolutions","description":"siquery, a Rust osquery implementation to query system information","archived":false,"fork":false,"pushed_at":"2025-06-03T20:26:15.000Z","size":631,"stargazers_count":59,"open_issues_count":2,"forks_count":7,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-06-05T20:06:00.067Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Devolutions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2018-04-23T19:35:51.000Z","updated_at":"2025-04-13T12:53:09.000Z","dependencies_parsed_at":"2023-02-02T20:31:49.311Z","dependency_job_id":null,"html_url":"https://github.com/Devolutions/siquery-rs","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/Devolutions/siquery-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devolutions%2Fsiquery-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devolutions%2Fsiquery-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devolutions%2Fsiquery-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devolutions%2Fsiquery-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Devolutions","download_url":"https://codeload.github.com/Devolutions/siquery-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devolutions%2Fsiquery-rs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262085785,"owners_count":23256515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-15T09:14:53.590Z","updated_at":"2025-06-26T14:35:42.392Z","avatar_url":"https://github.com/Devolutions.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Siquery\n\n## Introduction\n\nA rust library for system information analytics and monitoring.\n\nSiquery provides utilities to explore low level operating system data on mac, windows and linux in an efficient and intuitive way by integrating an SQLite powered interface. \nSQLite read-only statements can be used to create custom queries to be outputted into a formatted table, JSON or CSV.\n\n## Usage\n\n```\nUSAGE: \n       siquery.exe [FLAGS] [OPTIONS] [input]\n\nFLAGS:\n             --csv        Sets 'csv' output mode\n         -h, --help       Prints help information\n             --json       Sets 'json' output mode\n         -l, --list       Lists all table names\n             --pretty     Sets 'print_pretty' output mode\n         -V, --version    Prints version information\n         -v               Sets the level of verbosity\n\nOPTIONS:\n             --schema \u003cschema\u003e     Prints schema of the given table name\n         -q, --query \u003csiquery\u003e     Sqlite command\n         -a, --A \u003ctable\u003e           Selects all from table\n\nARGS:\n         \u003cinput\u003e     Sqlite query command\n```\n## Examples\n```\ncargo run -- -q \"SELECT DISTINCT process.name, env.key, process.pid FROM processes AS process JOIN process_envs AS env ON process.pid = env.pid where process.name = 'siquery' AND process.pid \u003e 38000 LIMIT 3\" \n\n+---------+----------------+-------+\n| name    | key            | pid   |\n+=========+================+=======+\n| siquery | CARGO_PKG_NAME | 38798 |\n+---------+----------------+-------+\n| siquery | SHLVL          | 38798 |\n+---------+----------------+-------+\n| siquery | PATH.          | 38798 |\n+---------+----------------+-------+\n```\n```\ncargo run -- -q \"SELECT DISTINCT process.name, process.pid FROM process_memory_map AS memory JOIN processes as process ON process.path = memory.path where process.pid \u003c 7900 limit 1\"\n\n+-----------------+------+\n| name            | pid  |\n+=================+======+\n| dptf_helper.exe | 7800 |\n+-----------------+------+\n```\n```\ncargo run -- -q \"PRAGMA table_info(process_memory_map)\"\n\n+-----+-------------+---------+---------+------------+\n| cid | name        | type    | notnull | dflt_value |\n+=====+=============+=========+=========+============+\n| 0   | pid         | INTEGER | 0       | 0          |\n+-----+-------------+---------+---------+------------+\n| 1   | start       | TEXT    | 0       | 0          |\n+-----+-------------+---------+---------+------------+\n| 2   | end         | TEXT    | 0       | 0          |\n+-----+-------------+---------+---------+------------+\n| 3   | permissions | TEXT    | 0       | 0          |\n+-----+-------------+---------+---------+------------+\n| 4   | offset      | INTEGER | 0       | 0          |\n+-----+-------------+---------+---------+------------+\n| 5   | device      | TEXT    | 0       | 0          |\n+-----+-------------+---------+---------+------------+\n| 6   | inode       | INTEGER | 0       | 0          |\n+-----+-------------+---------+---------+------------+\n| 7   | path        | TEXT    | 0       | 0          |\n+-----+-------------+---------+---------+------------+\n| 8   | pseudo      | INTEGER | 0       | 0          |\n+-----+-------------+---------+---------+------------+\n```\n```\ncargo run -- --pretty -q \"SELECT * FROM etc_hosts LIMIT 1\"\n\n+-----------+-----------+\n| address   | hostnames |\n+===========+===========+\n| 127.0.0.1 | localhost |\n+-----------+-----------+\n```\n```\ncargo run -- --json -q \"SELECT * FROM etc_hosts\"\n\n[\n  {\"address\":\"127.0.0.1\",\"hostnames\":\"localhost\"},\n  {\"address\":\"255.255.255.255\",\"hostnames\":\"broadcasthost\"},\n  {\"address\":\"::1\",\"hostnames\":\"localhost\"}\n]\n```\n```\ncargo run -- --csv -q \"SELECT * FROM etc_hosts LIMIT 1\"\n\naddress|hostnames\n127.0.0.1|localhost\n255.255.255.255|broadcasthost\n::1|localhost\n```\n\n## Implemented tables \n\nTable name | Windows | Linux | MacOS\n--- | :---: | :---: | :---: |\netc_hosts | ✔ | ✔ | ✔\netc_protocols | ✔ | ✔ | ✔\netc_services | ✔ | ✔ | ✔\ninterface_address | ✔ | ✔ |\ninterface_details | ✔ | ✔ |\nsystem_info | ✔ | ✔ | ✔\nos_version | ✔ | ✔ | ✔\nlogical_drives | ✔ |  | \nuptime | ✔ | ✔ | ✔\nprocesses | ✔ | ✔ | ✔\nprocess_open_sockets | ✔ | ✔ | \nprocess_memory_map | ✔ | ✔ | \nproducts | ✔ |  | \nproxies | ✔ | ✔ | ✔\nusers | ✔ | ✔ | ✔\nlaunchd |  |  | ✔\nlaunchd_overrides |  |  | ✔\nlogged_in_users | ✔ | ✔ | ✔\nlogon_sessions | ✔ |  | \ngroups | ✔ | ✔ | ✔\nprocess_envs |  | ✔ | ✔\nmounts |  | ✔ | ✔\nwmi_computer_info | ✔ |  | \nwmi_os_version  | ✔ |  |\nwmi_printers | ✔ |  |\nwmi_services | ✔ |  |\nwmi_hotfixes | ✔ |  |\nwmi_shares | ✔ |  |\nwmi_network_adapters | ✔ |  |\nwmi_local_accounts | ✔ |  |\nwmi_bios | ✔ |  |\nwmi_motherboard | ✔ |  |\nwmi_processor | ✔ |  |\nwmi_physical_memory | ✔ |  |\nwmi_sound | ✔ |  |\nwmi_video | ✔ |  |\nwmi_monitors | ✔ |  |\nwmi_keyboard | ✔ |  |\nwmi_pointing_device | ✔ |  |\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevolutions%2Fsiquery-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevolutions%2Fsiquery-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevolutions%2Fsiquery-rs/lists"}