semvec/pypi-packages huggingface dataset:
fastapi_vite_dara 0.4.0
Fork of fastapi-vite to support wider range of jinja2 version.
License: MIT
Requires Python: <4,>=3.8
Keywords: fastapi, starlette, vite, dara

# fastapi-vite

Integration for FastAPI and Vite JS

## what?

This package is designed to make working with javascript assets easier.

fastapi-vite enables the jinja filters required to render asset URLs to jinja templates

Inspired by `django-vite` @ [https://github.com/MrBin99/django-vite]

## installation

Install using pip

```shell
pip install fastapi-vite
```

## Usage

Configure Jinja templating for FastAPI

```python
import fastapi_vite_dara

templates = Jinja2Templates(directory='templates')
templates.env.globals['vite_hmr_client'] = fastapi_vite_dara.vite_hmr_client
templates.env.globals['vite_asset'] = fastapi_vite_dara.vite_asset

```

### Configure Vite

Here is an example used to test this plugin

```javascript
import { defineConfig } from 'vite'
import reactRefresh from '@vitejs/plugin-react-refresh'
const Dotenv = require("dotenv");
import path from "path";
Dotenv.config({ path: path.join(__dirname, ".env") });

const STATIC_URL = process.env.STATIC_URL;
// https://vitejs.dev/config/
export default defineConfig({
  base: `${STATIC_URL}`,
  clearScreen: false,
  plugins: [
    reactRefresh(),

  ],
  build: {
    target: "esnext",
    outDir: "./static/",
    emptyOutDir: true,
    assetsDir: "",
    manifest: true,
    rollupOptions: {
      input:  "./assets/javascript/main.tsx"
    },
  },

  root: ".", // You can change the root path as you wish

})

```

### Configure Static Assets

### Configure Templates

\*render_vite_hmr no-op when in production.

```html
{{ render_vite_hmr_client() }}

<script
  type="text/javascript"
  defer
  src="{{ asset_url('javascript/main.tsx') }}"
></script>
```
pinequiz 1.0.5
🍍 PineQuiz CLI - Jalankan kuis terenkripsi dari GitHub
License: MIT
Requires Python: >=3.6
Keywords: cli quiz github kuis terminal encrypted


# 🍍 PineQuiz CLI

**PineQuiz** adalah aplikasi CLI sederhana untuk menjalankan kuis atau latihan soal terenkripsi dari file `.ps` (format JSON yang sudah di-enkripsi). Soal bisa disimpan di GitHub dan diunduh secara langsung oleh pengguna. CLI ini cocok untuk pembelajaran, evaluasi, atau sekadar latihan soal.

---

## 🚀 Instalasi

```
pip install pinequiz
```

## ⚙️ Fitur Utama

>comamnd

```
pinequiz <-arghs> <-flag>
```

| Perintah | Deskripsi |
|----------|-----------|
| `-i`, `--inti` | Memulai kuis dari file soal terenkripsi |
| `-l <link>` | Link GitHub (raw URL) dari file `.ps` |
| `-x`, `--execute` | Jalankan kuis setelah file diunduh |
| `-r`, `--run` | Alias dari `--execute` |
| `-cfg <token,folder>` | Simpan GitHub token + folder ekstra opsional |
| `-v`, `--version` | Tampilkan versi CLI |
| `-h`, `--helpme` | Tampilkan bantuan lengkap |

---

## 🧪 Contoh Penggunaan

### Unduh & Jalankan Kuis dari GitHub

```bash
pinequiz -i -l "" -x
```

### Simpan Token GitHub (untuk file private)

```bash
pinequiz -cfg ghp_yourGithubToken,soal-folder
```

---

## 📦 Format Soal (.ps)

File `.ps` adalah file JSON yang dienkripsi. Contoh format sebelum enkripsi:

```json
[
  {
    "question": "Apa ibu kota Indonesia?",
    "choices": {
      "a": "Bandung",
      "b": "Surabaya",
      "c": "Jakarta",
      "d": "Yogyakarta"
    },
    "answer": "c",  // Akan di-enkripsi
    "explanation": "Jakarta adalah ibu kota Indonesia sejak tahun 1945."
  }
]
```

---

## 🔐 Sistem Enkripsi

- Jawaban soal dienkripsi menggunakan metode `xor` + salt agar tidak mudah dibaca.
- Token GitHub disimpan secara lokal dalam file `config.json` (tidak terenkripsi).

---

## 📂 Struktur Folder

```bash
pinequiz/
├── pinequiz/
│   ├── pinequiz.py        # Entry point CLI
│   ├── config_manager.py
│   ├── quiz_engine.py
│   ├── remote_loader.py
│   ├── crypto_util.py
│   ├── __init__.py
├── setup.py
├── README.md
├── LICENSE
```

---

## 📝 Lisensi

MIT License © 2025 — openpineplehubsetup.py
├── README.md
├── LICENSE
```

---

## 📝 Lisensi

MIT License © 2025 — openpineplehub