Swiftpack.co - sharpfive/oliva as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by sharpfive.
sharpfive/oliva 0.0.3
Sample app for generating baseball game data using Publish
⭐️ 2
🕓 2 years ago
.package(url: "https://github.com/sharpfive/oliva.git", from: "0.0.3")

Oliva

Library and Sample app for generating HTML baseball game data using Publish.

Why would you do this?

I got mad when I drafted a fantasy baseball team and couldn't see them play because the pandemic shut down Major League Baseball. So I wrote a baseball simulator so I could see how the team I drafted would fare in a head-to-head game.

This repo is how I convert the results to a static HTML site. I'm definitely pushing the limits of what John Sundell had in mind for his Publish library, but that's how I roll.

What does the output look like?

My League's HTML Output

Sample Stub Data Output

Where did the name Oliva come from?

Tony Oliva was an outfielder for the Minnesota Twins. He should be in the Hall of Fame. He's not, but Mr. Oliva might take some solace knowing there is an open source Swift library named after him. I sat next to him at a Twins game once. That was awesome.

Update 12/5/2021:

Tony Oliva was elected to the Major League Baseball Hall of Fame! Welcome to the Hall, Tony O.

Targets

LeagueResultsSite

This is a sample implementation that shows how to use SimulationLeagueSiteGenerator to create a HTML site from a json file of Oliva LeagueData. If no json file is specified, an HTML site using StubData will be used.

OlivaDomain

All of the data models needed to create a baseball simulation website.

GitHub

link
Stars: 2
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics