KitchenPC.Core
1.1.0
See the version list below for details.
dotnet add package KitchenPC.Core --version 1.1.0
NuGet\Install-Package KitchenPC.Core -Version 1.1.0
<PackageReference Include="KitchenPC.Core" Version="1.1.0" />
<PackageVersion Include="KitchenPC.Core" Version="1.1.0" />
<PackageReference Include="KitchenPC.Core" />
paket add KitchenPC.Core --version 1.1.0
#r "nuget: KitchenPC.Core, 1.1.0"
#:package KitchenPC.Core@1.1.0
#addin nuget:?package=KitchenPC.Core&version=1.1.0
#tool nuget:?package=KitchenPC.Core&version=1.1.0
What is KitchenPC?
KitchenPC is a free, open-source framework written in C# for working with recipes, shopping lists, and menus. It provides a standardized data model for representing normalized ingredient and recipe information, and allows ingredient usage to be aggregated across recipes automatically. The core KitchenPC framework includes:
- Base classes for describing and working with core recipe-related concepts.
- A recipe modeling engine capable of building sets of recipes that efficiently use a set of ingredients and amounts.
- A natural language parser which can convert human input ("a dozen eggs") to a normalized ingredient usage structure (whole eggs: 12)
- A categorization engine which can take recipe objects and catagorize them as breakfast, lunch, dinner or dessert. This engine can also derive nutrional information based on USDA data, a taste profile (sweet, savory, spicy, mild) based on ingredients and amounts used, dietary flags (vegetarian, gluten-free, low-calorie, etc) and other aspects of the recipe.
- An extensible framework to define how data is loaded and saved to a persistence mechanism, such as a SQL database or full-text search engine.
How To Get Started
Getting started is simple, and data can be loaded locally from an XML file for testing. Example applications and a small static data snapshot are available in the KitchenPC Samples repository.
The best way to get up and running is to read the blog post titled Getting Started with KitchenPC which includes an introduction to core concepts as well as several samples.
Building and Testing
Install the .NET 10 SDK, then restore, build, and test from the repository root:
dotnet restore src/core.slnx
dotnet build src/core.slnx --configuration Release --no-restore
dotnet test src/UnitTests/UnitTests.csproj --configuration Release --no-build --no-restore
The build includes KitchenPC.Core, KitchenPC.DB, and the unit tests.
Database Schema Naming
The PostgreSQL persistence adapter uses shoppingingredients as the physical table name for the
ingredient catalog. This legacy name is retained for compatibility with the KitchenPC website.
Public domain types and provisioning data continue to use the simpler Ingredient and
Ingredients terminology; those names describe application data rather than database tables.
DBContext.InitializeStore() recreates the KitchenPC schema and deletes existing KitchenPC data.
Use it only with a new database or when replacing all existing data is intentional. See the
KitchenPC Samples repository for a PostgreSQL initializer
and a small sample dataset.
Optional DBContext Capabilities
DBContext initializes its autocomplete index, ingredient-text parser, and recipe-modeler graph
by default. Applications that do not use every feature can select only the in-memory capabilities
they need while retaining ordinary database-backed operations:
var context = DBContext.Configure
.Adapter(/* database adapter configuration */)
.Capabilities(DBContextCapabilities.IngredientParsing)
.Identity(() => AuthIdentity.Anonymous)
.Create();
The available flags are IngredientAutocomplete, IngredientParsing, and RecipeModeler.
DBContextCapabilities.All is the default for backward compatibility. Calling an API whose
capability was not enabled throws ContextCapabilityNotEnabledException. Recipe aggregation uses
the in-memory graph when the modeler is enabled and falls back to loading recipes from the database
when it is disabled.
See DBContext capability profiles for capability requirements and sample-data startup and memory measurements.
Packages and Releases
Every push and pull request builds and tests the solution, then creates matching prerelease packages for CI validation. Version tags publish KitchenPC.Core and KitchenPC.DB to NuGet with the same version. For example:
git tag -a v1.0.0 -m "KitchenPC 1.0.0"
git push origin v1.0.0
NuGet package versions are immutable. Always increment the version for a subsequent release.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- log4net (>= 3.3.2)
- Microsoft.AspNetCore.Http (>= 2.2.2)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 5.0.0)
- System.Text.Encodings.Web (>= 4.7.2)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on KitchenPC.Core:
| Package | Downloads |
|---|---|
|
KitchenPC.DB
Database persistence adapter for the KitchenPC recipe engine |
|
|
KitchenPC.Core.AspNetCore
ASP.NET Core integration for the KitchenPC recipe engine |
GitHub repositories
This package is not used by any popular GitHub repositories.