From 571bb0aa483e8327bdad32f1a0382fa87bb806ec Mon Sep 17 00:00:00 2001 From: Chamod Sahan Nethmina Date: Sun, 22 Nov 2026 19:52:04 +0530 Subject: [PATCH] Initialize VeritasAI Python project Add the Python 3.12 project configuration, uv lockfile, entrypoint, environment example, and simplified ignore rules. --- .env.example | 33 +-- .gitignore | 559 +----------------------------------------------- .python-version | 1 + main.py | 6 + pyproject.toml | 7 + uv.lock | 8 + 6 files changed, 35 insertions(+), 579 deletions(-) create mode 100644 .python-version create mode 100644 main.py create mode 100644 pyproject.toml create mode 100644 uv.lock diff --git a/.env.example b/.env.example index f123240e..7ded0f75 100644 --- a/.env.example +++ b/.env.example @@ -2,41 +2,12 @@ # Application ENVIRONMENT=development # development | production -DEBUG=true LOG_LEVEL=INFO -LOG_DIR=./logs # LLM OPENAI_API_KEY=sk-... LLM_MODEL=gpt-4o-mini -API_BASE_URL=https://api.openai.com/v1 -TEMPERATURE=0.4 - -# Database — MongoDB Atlas (NOT a local/Docker MongoDB instance) -# Get this from Atlas: Database > Connect > Drivers > Python -MONGO_URI=mongodb+srv://veritasai_app:CHANGE_ME@veritasai-cluster.xxxxx.mongodb.net/veritas_ai?retryWrites=true&w=majority&appName=VeritasAI -DATABASE_NAME=veritas_ai - -# Redis — cache, rate limiter, job queue (local/Docker) -REDIS_URL=redis://redis:6379/0 - -# Auth -GOOGLE_CLIENT_ID=your-google-client-id.apps.googleusercontent.com -GOOGLE_CLIENT_SECRET=GOCSPX-... -JWT_SECRET=change-this-to-a-long-random-string -JWT_EXPIRY_HOURS=24 -SESSION_SECRET_KEY=another-long-random-string - -# Encryption -# Generate with: python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())" -ENCRYPTION_KEY= - -# Admin -# Generate with: python -c "import secrets; print(secrets.token_urlsafe(32))" -ADMIN_SECRET= +LLM_BASE_URL=https://api.openai.com/v1 # External APIs -COURTLISTENER_API_KEY=your-courtlistener-api-key - -# CORS (comma-separated) -ALLOWED_ORIGINS=http://localhost:3000 \ No newline at end of file +COURTLISTENER_API_KEY=your-courtlistener-api-key \ No newline at end of file diff --git a/.gitignore b/.gitignore index 3b9702bd..a37dff8b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,557 +1,20 @@ -# Byte-compiled / optimized / DLL files +#python files and folders __pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -wheels/ -share/python-wheels/ -*.egg-info/ -.installed.cfg -*.egg -MANIFEST - -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.nox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*.cover -*.py,cover -.hypothesis/ +.venv/ +*.pyc .pytest_cache/ -cover/ - -# Translations -*.mo -*.pot - -# Django stuff: -*.log -local_settings.py -db.sqlite3 -db.sqlite3-journal - -# Flask stuff: -instance/ -.webassets-cache - -# Scrapy stuff: -.scrapy - -# Sphinx documentation -docs/_build/ - -# PyBuilder -.pybuilder/ -target/ - -# Jupyter Notebook -.ipynb_checkpoints - -# IPython -profile_default/ -ipython_config.py - - -# pdm -.pdm.toml - -# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm -__pypackages__/ - -# Celery stuff -celerybeat-schedule -celerybeat.pid - -# SageMath parsed files -*.sage.py - -# Environments -.env -.venv -env/ -venv/ -ENV/ -env.bak/ -venv.bak/ - -# Spyder project settings -.spyderproject -.spyproject - -# Rope project settings -.ropeproject - -# mkdocs documentation -/site - -# mypy -.mypy_cache/ -.dmypy.json -dmypy.json - -# Pyre type checker -.pyre/ - -# pytype static type analyzer -.pytype/ - -# Cython debug symbols -cython_debug/ - -# VS Code -.vscode/ - -# Node.js / React Frontend -node_modules/ -npm-debug.log* -yarn-debug.log* -yarn-error.log* -lerna-debug.log* -.pnpm-debug.log* - -# Diagnostic reports (https://nodejs.org/api/report.html) -report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage/ -*.lcov - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules/ -jspm_packages/ - -# Snowpack dependency directory (https://snowpack.dev/) -web_modules/ - -# TypeScript cache -*.tsbuildinfo - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional stylelint cache -.stylelintcache - -# Microbundle cache -.rpt2_cache/ -.rts2_cache_cjs/ -.rts2_cache_es/ -.rts2_cache_umd/ - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variable files -.env -.env.development.local -.env.test.local -.env.production.local -.env.local - -# parcel-bundler cache (https://parceljs.org/) -.cache -.parcel-cache - -# Next.js build output -.next -out - -# Nuxt.js build / generate output -.nuxt -dist - -# Gatsby files -.cache/ - - -# vuepress build output -.vuepress/dist - -# vuepress v2.x temp and cache directory -.temp -.cache - -# Docusaurus cache and generated files -.docusaurus - -# Serverless directories -.serverless/ - -# FuseBox cache -.fusebox/ - -# DynamoDB Local files -.dynamodb/ - -# TernJS port file -.tern-port - -# Stores VSCode versions used for testing VSCode extensions -.vscode-test - -# yarn v2 -.yarn/cache -.yarn/unplugged -.yarn/build-state.yml -.yarn/install-state.gz -.pnp.* +.ruff_cache/ -# React build output -build/ - -# AI/ML specific files -# Model files and embeddings -*.pkl -*.pickle -*.joblib -*.h5 -*.hdf5 -*.model -*.bin -*.safetensors -*.onnx -*.tflite -*.pb -*.pth -*.pt -*.ckpt -*.weights - -# FAISS indices -*.faiss -*.index - -# Hugging Face cache -.cache/ -huggingface/ - -# TensorBoard logs -logs/ -runs/ -tensorboard/ - -# Jupyter notebook checkpoints -.ipynb_checkpoints/ - -*.db -*.sqlite -*.sqlite3 - -# Log files -*.log -logs/ - -# Temporary files -*.tmp -*.temp -*.swp -*.swo -*~ - -# OS generated files -.DS_Store -.DS_Store? -._* -.Spotlight-V100 -.Trashes -ehthumbs.db -Thumbs.db - -# Windows -*.lnk - -# IDE files +#environment files .idea/ -*.iml -*.ipr -*.iws .vscode/ -*.sublime-project -*.sublime-workspace - -# Backup files -*.bak -*.backup -*.old - -# Archive files -*.zip -*.tar.gz -*.rar -*.7z - -# Configuration files with sensitive data -config.ini -secrets.json -.secrets -api_keys.txt - -# Docker -.dockerignore -Dockerfile.dev -docker-compose.override.yml - -# Kubernetes -*.kubeconfig - -# Terraform -*.tfstate -*.tfstate.* -.terraform/ -.terraform.lock.hcl - -# Local development -.local/ -local/ - - -# Tailwind CSS -# Generated CSS files (if using build process) -frontend/dist/ -frontend/output.css - -# Storybook build outputs -storybook-static/ - -# ESLint cache -.eslintcache - -# Prettier cache -.prettiercache - -# Stylelint cache -.stylelintcache - -# Webpack -.webpack/ - -# Rollup -.rollup.cache/ - -# Vite -dist/ -dist-ssr/ -*.local - -# Turbo -.turbo/ - -# Next.js (if migrating to Next.js later) -.next/ -out/ - -# Nuxt.js (if migrating to Nuxt.js later) -.nuxt/ -.output/ - -# Gatsby (if migrating to Gatsby later) -.cache/ -public/ -# SvelteKit (if migrating to SvelteKit later) -.svelte-kit/ - -# Angular (if migrating to Angular later) -.angular/ - -# Vue.js (if migrating to Vue.js later) -.vuepress/dist - -# Frontend testing -coverage/ -.nyc_output/ - -# Frontend environment files -frontend/.env -frontend/.env.local -frontend/.env.development.local -frontend/.env.test.local -frontend/.env.production.local - -# Frontend logs -frontend/logs/ -frontend/*.log - -# Frontend temporary files -frontend/.tmp/ -frontend/tmp/ - -# Frontend build artifacts -frontend/build/ -frontend/dist/ -frontend/.next/ -frontend/.nuxt/ -frontend/.output/ - -# Frontend package manager files -frontend/.pnpm-store/ -frontend/.yarn/ -frontend/yarn-error.log -frontend/yarn-debug.log* - -# Frontend IDE files -frontend/.vscode/ -frontend/.idea/ -frontend/*.iml -frontend/*.ipr -frontend/*.iws - -# Frontend OS files -frontend/.DS_Store -frontend/Thumbs.db -frontend/ehthumbs.db - -# Frontend backup files -frontend/*.bak -frontend/*.backup -frontend/*.old - -# Frontend temporary files -frontend/*.tmp -frontend/*.temp -frontend/*.swp -frontend/*.swo -frontend/*~ - -# Frontend source maps (optional - uncomment if you don't want to track them) -# frontend/**/*.map - -# Frontend bundle analyzer -frontend/bundle-report.html -frontend/stats.json - -# Frontend performance monitoring -frontend/.lighthouseci/ - -# Frontend PWA files (if using service workers) -frontend/sw.js -frontend/workbox-*.js - -# Frontend TypeScript (if migrating to TypeScript) -frontend/**/*.tsbuildinfo - -# Frontend Jest -frontend/coverage/ -frontend/.jest/ - -# Frontend Cypress -frontend/cypress/videos/ -frontend/cypress/screenshots/ -frontend/cypress/downloads/ - -# Frontend Playwright -frontend/test-results/ -frontend/playwright-report/ -frontend/playwright/.cache/ - -# Frontend Storybook -frontend/storybook-static/ -frontend/.storybook-out/ - -# Frontend Chromatic -frontend/.chromatic/ - -# Frontend Sentry -frontend/.sentryclirc - -# Frontend Netlify -frontend/.netlify/ - -# Frontend Vercel -frontend/.vercel/ - -# Frontend Firebase -frontend/.firebase/ -frontend/firebase-debug.log -frontend/firestore-debug.log - -# Frontend Supabase -frontend/.supabase/ - -# Frontend Docker -frontend/Dockerfile.dev -frontend/docker-compose.override.yml -frontend/.dockerignore - -# Frontend Kubernetes -frontend/k8s/ -frontend/*.kubeconfig - -# Frontend Terraform -frontend/.terraform/ -frontend/*.tfstate -frontend/*.tfstate.* -frontend/.terraform.lock.hcl -*.env -models -pre_download_models.py -start_services.py -test_frontend.py -test_atlas.py -tests/test_system.py -test_system.py +#OS related files +.DS_Store -# Ignore dependencies installed by npm or yarn +#Node js files node_modules/ +dist/ +#log files +*.log \ No newline at end of file diff --git a/.python-version b/.python-version new file mode 100644 index 00000000..e4fba218 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.12 diff --git a/main.py b/main.py new file mode 100644 index 00000000..90443e30 --- /dev/null +++ b/main.py @@ -0,0 +1,6 @@ +def main(): + print("Hello from veritasai!") + + +if __name__ == "__main__": + main() diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..0fdb0155 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,7 @@ +[project] +name = "veritasai" +version = "0.1.0" +description = "Add your description here" +readme = "README.md" +requires-python = ">=3.12" +dependencies = [] diff --git a/uv.lock b/uv.lock new file mode 100644 index 00000000..416c1c20 --- /dev/null +++ b/uv.lock @@ -0,0 +1,8 @@ +version = 1 +revision = 3 +requires-python = ">=3.12" + +[[package]] +name = "veritasai" +version = "0.1.0" +source = { virtual = "." }