{"id":17867104,"url":"https://github.com/cdhunt/pselect","last_synced_at":"2025-03-21T09:31:14.025Z","repository":{"id":66743255,"uuid":"64093799","full_name":"cdhunt/PSelect","owner":"cdhunt","description":"PowerShell DSL for aggregating data","archived":false,"fork":false,"pushed_at":"2016-08-30T15:42:52.000Z","size":39,"stargazers_count":29,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-17T23:41:44.565Z","etag":null,"topics":["data-analysis","dsl","powershell","powershell-module"],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cdhunt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-25T01:17:09.000Z","updated_at":"2023-03-15T12:18:50.000Z","dependencies_parsed_at":"2023-06-27T04:23:13.094Z","dependency_job_id":null,"html_url":"https://github.com/cdhunt/PSelect","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdhunt%2FPSelect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdhunt%2FPSelect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdhunt%2FPSelect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdhunt%2FPSelect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdhunt","download_url":"https://codeload.github.com/cdhunt/PSelect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244771646,"owners_count":20507840,"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":["data-analysis","dsl","powershell","powershell-module"],"created_at":"2024-10-28T09:43:56.052Z","updated_at":"2025-03-21T09:31:14.019Z","avatar_url":"https://github.com/cdhunt.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PSelect\n\nA SQL-ish DSL in PowerShell to assist in aggregating collections of data.\n\n\n### Example - FromPipeline\n\n```powershell\nGet-Process | PSelect {\n    Field ProcessName\n    Field WorkingSet -as Count -Count\n    Field WorkingSet -Sum\n    \n    GroupBy ProcessName\n\n    SortData\n}\n\nProcessName                           Count WorkingSet\n-----------                           ----- ----------\nApplicationFrameHost                      1   27492352\nAppVShNotify                              1    7405568\narmsvc                                    1    5464064\naudiodg                                   1   18952192\nBleServicesCtrl                           1    9011200\nbmservice                                 1   46051328\nchrome                                   25 1875648512\nCode                                      7  357859328\nCodeHelper                                1   13967360\nconhost                                   7   38752256\ncsrss                                     2   16859136\ndasHost                                   1   10018816\nDataExchangeHost                          1   12623872\ndllhost                                   3   26742784\n...\n```\n\n### Example - FromCsv\n\n```powershell\nPSelect {\n    Field category\n    Field raisedAmt -as AvgRaisedAmt -Average -Unit Currency\n    Field raisedAmt -as TotalRaisedAmt -Sum -Unit Currency\n    Field raisedAmt -as MaxRaisedAmt -Maximum -Format \"{0:N}\"\n    Field raisedAmt -as MinRaisedAmt -Min -Format \"{0,13:C}\"\n    Field raisedAmt -as SDRaisedAmd -StdDev -Format \"{0:f}\"\n    Field raisedAmt -as Rounds -Count\n    \n    GroupBy category\n    \n    FromCsv TechCrunchcontinentalUSA.csv\n\n    SortData\n\n} | Format-Table -AutoSize\n\ncategory   AvgRaisedAmt   TotalRaisedAmt     MaxRaisedAmt   MinRaisedAmt  SDRaisedAmd Rounds\n--------   ------------   --------------     ------------   ------------  ----------- ------\n           $15,554,166.67 $373,300,000.00    150,000,000.00   $900,000.00 29888793.60     24\nbiotech    $19,312,500.00 $77,250,000.00     37,000,000.00    $250,000.00 13920954.30      4\ncleantech  $18,492,857.14 $258,900,000.00    57,000,000.00  $1,000,000.00 14340525.21     14\nconsulting $6,427,000.00  $32,135,000.00     13,000,000.00     $10,000.00 5576451.92       5\nhardware   $21,141,025.64 $824,500,000.00    130,000,000.00   $100,000.00 25244059.65     39\nmobile     $6,729,583.33  $323,020,000.00    25,000,000.00     $20,000.00 5752943.80      48\nother      $7,490,625.00  $119,850,000.00    29,000,000.00    $300,000.00 6911092.05      16\nsoftware   $9,979,823.53  $1,017,942,000.00  60,000,000.00     $10,000.00 10046611.33    102\nweb        $9,739,300.29  $11,765,074,750.00 300,000,000.00     $6,000.00 19034496.45   1208\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdhunt%2Fpselect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdhunt%2Fpselect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdhunt%2Fpselect/lists"}