https://github.com/icehub82/pythonnet
Razor page application dashboard calling Python scripts via HTMX.
https://github.com/icehub82/pythonnet
dotnet9 htmx matplotlib pandas python razor-pages
Last synced: about 2 months ago
JSON representation
Razor page application dashboard calling Python scripts via HTMX.
- Host: GitHub
- URL: https://github.com/icehub82/pythonnet
- Owner: iceHub82
- Created: 2024-10-19T11:41:56.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2024-10-30T20:54:10.000Z (11 months ago)
- Last Synced: 2025-04-19T16:37:46.363Z (6 months ago)
- Topics: dotnet9, htmx, matplotlib, pandas, python, razor-pages
- Language: HTML
- Homepage:
- Size: 14.6 MB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://skillicons.dev)
## Project Overview
This project demonstrates how to call Python scripts from a .NET 9 Razor Pages web application, using the recently published [CSnakes](https://github.com/tonybaloney/CSnakes) library to enable Python execution within .NET.
### Solution Details
- The application is built on .NET 9 Razor Pages and integrates with **CSnakes**, allowing seamless Python script execution within .NET.
- A minimal API endpoint is used, together with **HTMX**, to call Python scripts and return dynamically generated stock graph images (PNG format) using the **matplotlib** and **pandas** libraries in Python.### Setup Instructions
Upon initial project startup, a Python virtual environment will be created, and required packages will be installed automatically. This process may take a few moments, with progress visible in the console output.