Skip to content

Commit f0b5ddc

Browse files
committed
use verbatim text
1 parent e91708f commit f0b5ddc

11 files changed

Lines changed: 1366 additions & 1 deletion

File tree

.dockerignore

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Python
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
*.so
6+
.Python
7+
build/
8+
develop-eggs/
9+
dist/
10+
downloads/
11+
eggs/
12+
.eggs/
13+
lib/
14+
lib64/
15+
parts/
16+
sdist/
17+
var/
18+
wheels/
19+
*.egg-info/
20+
.installed.cfg
21+
*.egg
22+
MANIFEST
23+
24+
# Virtual environments
25+
venv/
26+
ENV/
27+
env/
28+
.venv
29+
30+
# IDE
31+
.vscode/
32+
.idea/
33+
*.swp
34+
*.swo
35+
*~
36+
.DS_Store
37+
38+
# Git
39+
.git/
40+
.gitignore
41+
.gitattributes
42+
43+
# CI/CD
44+
.github/
45+
46+
# Documentation
47+
*.md
48+
!README.md
49+
docs/
50+
51+
# Test files
52+
test_*.py
53+
*_test.py
54+
tests/
55+
56+
# Local config
57+
.env
58+
.env.local
59+
*.local
60+
61+
# Logs
62+
*.log
63+
64+
# Docker
65+
Dockerfile
66+
.dockerignore
67+
docker-compose.yml
68+
docker-compose.*.yml
69+
70+
# Scripts
71+
scripts/
72+
*.sh
73+
!llms.sh
74+
75+
# Publishing
76+
publish.py
77+
PUBLISHING.md
78+

.env.example

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# llms-py Environment Variables
2+
# Copy this file to .env and fill in your API keys
3+
4+
# OpenRouter (Free tier available)
5+
OPENROUTER_API_KEY=
6+
7+
# Groq (Free tier available)
8+
GROQ_API_KEY=
9+
10+
# Google Free API (Free tier available)
11+
GOOGLE_FREE_API_KEY=
12+
13+
# Codestral (Free tier available)
14+
CODESTRAL_API_KEY=
15+
16+
# Google Gemini API
17+
GOOGLE_API_KEY=
18+
19+
# Anthropic Claude API
20+
ANTHROPIC_API_KEY=
21+
22+
# OpenAI API
23+
OPENAI_API_KEY=
24+
25+
# Grok (X.AI) API
26+
GROK_API_KEY=
27+
28+
# Qwen (Alibaba DashScope) API
29+
DASHSCOPE_API_KEY=
30+
31+
# Z.ai API
32+
ZAI_API_KEY=
33+
34+
# Mistral API
35+
MISTRAL_API_KEY=
36+
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: Build and Publish Docker Image
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- 'v*'
9+
pull_request:
10+
branches:
11+
- main
12+
workflow_dispatch:
13+
14+
env:
15+
REGISTRY: ghcr.io
16+
IMAGE_NAME: ${{ github.repository }}
17+
18+
jobs:
19+
build-and-push:
20+
runs-on: ubuntu-latest
21+
permissions:
22+
contents: read
23+
packages: write
24+
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@v4
28+
29+
- name: Set up Docker Buildx
30+
uses: docker/setup-buildx-action@v3
31+
32+
- name: Log in to GitHub Container Registry
33+
if: github.event_name != 'pull_request'
34+
uses: docker/login-action@v3
35+
with:
36+
registry: ${{ env.REGISTRY }}
37+
username: ${{ github.actor }}
38+
password: ${{ secrets.GITHUB_TOKEN }}
39+
40+
- name: Extract metadata (tags, labels) for Docker
41+
id: meta
42+
uses: docker/metadata-action@v5
43+
with:
44+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
45+
tags: |
46+
type=ref,event=branch
47+
type=ref,event=pr
48+
type=semver,pattern={{version}}
49+
type=semver,pattern={{major}}.{{minor}}
50+
type=semver,pattern={{major}}
51+
type=raw,value=latest,enable={{is_default_branch}}
52+
53+
- name: Build and push Docker image
54+
id: build
55+
uses: docker/build-push-action@v5
56+
with:
57+
context: .
58+
push: ${{ github.event_name != 'pull_request' }}
59+
tags: ${{ steps.meta.outputs.tags }}
60+
labels: ${{ steps.meta.outputs.labels }}
61+
cache-from: type=gha
62+
cache-to: type=gha,mode=max
63+
platforms: linux/amd64,linux/arm64
64+
65+
- name: Generate artifact attestation
66+
if: github.event_name != 'pull_request'
67+
uses: actions/attest-build-provenance@v1
68+
with:
69+
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
70+
subject-digest: ${{ steps.build.outputs.digest }}
71+
push-to-registry: true
72+

0 commit comments

Comments
 (0)