boxball
goqu
boxball | goqu | |
---|---|---|
7 | 23 | |
110 | 2,239 | |
- | - | |
5.5 | 5.6 | |
5 months ago | about 1 month ago | |
Python | Go | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
boxball
-
Importing Retrosheet to Tableau or Power BI
I haven't worked with BI tools, but I'll make the same recommendation for Retrosheet data that I always do: check out the Boxball distributions, specifically the CSV files (or the parquet files if you prefer). You can load those right in, rather than futzing with Retrosheet's event files and processing them manually, etc., just to get to the same spot.
-
Delta Aging Curve Python
The original data source is the Baseball Databank (aka "The Lahman Database"). I use the Boxball distributions, which include both retrosheet and Baseball Databank data.
- What's the current standard for getting mlb data into a database? I used to use Baseball On a Stick (which accessed the old gameday data) but that doesn't work now. I found "mlbdata" which accesses the mlb API but I can't figure out how to make it put stuff into a database. Is there a good option?
-
How do I compile a list of a team's games where event x did not happen?
You know, I thought about that after posting, that the dailies might not be available directly from retrosheet. I use the Boxball distributions, which take the retrosheet data and process it into database images. These distributions include a "daily" table with the daily logs. So apparently Boxball is generating that table.
-
Aggregate Game Logs
I used to think the same thing, and then I found the Boxball pre-built images. You still have to be a bit handy to get them working, but it's way easier than starting from scratch with raw retrosheet data. I initially used the postgres image and worked in SQL, and then switched to python/pandas and the parquet files.
-
Finding a player's stats through N games
I've always been good with data, math, Excel, etc., but decided to take it to another level during the pandemic. The most difficult thing about Retrosheet data is getting into a usable format. Luckily, the boxball project has created a number of ready-to-download images with all of the data, for different database technologies.
-
RE24 Data for wOBA Calculations
For Retrosheet data, I've been using pre-built images from Boxball, rather than going through the whole process of downloading and converting the files from retrosheet. The Boxball images are awesome. I mostly use the Parquet files for Pandas, but they have other formats (e.g., postgres Docker images, CSV, etc) there.
goqu
-
newbie here looking for a framework
For SQL, I'd probably go with goqu http://doug-martin.github.io/goqu/
- Open-sourcing SQX, a way to build flexible database models in Go
-
Best sqlc alternative for dynamic queries?
I use goqu (https://github.com/doug-martin/goqu)
-
ORM or no ORM (and which ones)?
SQL Builders (think squirrel or goqu)
-
Golang Postgres Schema Builder?
I've been looking for a package that allows me to build Postgres DDL statements in Golang. I'm currently using Goqu (https://github.com/doug-martin/goqu) for building statements and it works great, however it does not have support for building schemas. Basic things like creating tables, creating indexes. A great one in JavaScript can be found here: (https://knexjs.org/guide/schema-builder.html#essentials) I have been unable to find anything in Go, does anyone know of any packages like this?
-
GET method to get records from SQL database
Then use something like https://github.com/doug-martin/goqu to build the SQL.
-
ORM in Golang?
Try this
- Best SQL builder.
-
ORM vs SQL Builder in Go
We've been using goqu and it's super nice! although there are a ton of other query builders that could better fit your use-case.
-
escaping text in Go
If the statement is too dynamic to use query parameters I'd ideally use a dynamic query builder rather than concatenating strings. Goqu is a lib like that but I haven't yet used it personally https://github.com/doug-martin/goqu
What are some alternatives?
pybaseball - Pull current and historical baseball statistics using Python (Statcast, Baseball Reference, FanGraphs)
Squirrel - Fluent SQL generation for golang
ElectroCRUD - Database CRUD Application Built on Electron | MySQL, Postgres, SQLite
pgx - PostgreSQL driver and toolkit for Go
chadwick - Chadwick tools for manipulating baseball data
sqlc - Generate type-safe code from SQL
baseball_sql - SQL scripts for working with the baseball data from retrosheet and baseball-databank, as provided by boxball
jet - Type safe SQL builder with code generation and automatic query result data mapping
baseballr - A package written for R focused on baseball analysis. Currently in development.
chproxy - Open-Source ClickHouse http proxy and load balancer
condenser - Condenser is a database subsetting tool
sqrl - Fluent SQL generation for golang