Skip to content

Commit f4a67e7

Browse files
author
TNFR AI Agent
committed
Deep repository cleanup - Phase 3 complete
- Eliminated 1000+ obsolete files from docs/Primos/ - Removed redundant notebooks and experimental tools - Cleaned up duplicate documentation and benchmarks - Reduced root elements from 70+ to 32 essential files - Maintained 100% functionality (all tests passing) - Optimized structure for advanced TNFR research - Ready for new release with ultra-clean codebase
0 parents  commit f4a67e7

File tree

1,352 files changed

+335064
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,352 files changed

+335064
-0
lines changed

.env.example

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# TNFR Engine Environment Configuration
2+
# Copy this file to .env and fill in your actual values
3+
# NEVER commit .env files with real credentials to version control
4+
5+
# ============================================================================
6+
# Development Configuration
7+
# ============================================================================
8+
9+
# PyPI Publishing Configuration (for release scripts)
10+
# Use API tokens for enhanced security: https://pypi.org/help/#apitoken
11+
PYPI_USERNAME=__token__
12+
PYPI_PASSWORD=pypi-XXXXXXXXXXXXXXXXXXXXXXXX # Your PyPI API token
13+
PYPI_API_TOKEN=pypi-XXXXXXXXXXXXXXXXXXXXXXXX # Alternative name
14+
TWINE_USERNAME=__token__
15+
TWINE_PASSWORD=pypi-XXXXXXXXXXXXXXXXXXXXXXXX # Your PyPI API token
16+
PYPI_REPOSITORY=pypi # or 'testpypi' for testing
17+
18+
# GitHub Configuration (for security dashboard and CI scripts)
19+
GITHUB_TOKEN=ghp_XXXXXXXXXXXXXXXXXXXXXXXX # GitHub Personal Access Token
20+
GITHUB_REPOSITORY=fermga/TNFR-Python-Engine # Format: owner/repo
21+
22+
# Redis Configuration (for RedisCacheLayer with authentication)
23+
REDIS_HOST=localhost
24+
REDIS_PORT=6379
25+
REDIS_PASSWORD=your-redis-password-here
26+
REDIS_DB=0
27+
REDIS_USE_TLS=false
28+
29+
# Cache Signing Configuration (for hardened cache security)
30+
# Generate a strong random secret: python -c "import secrets; print(secrets.token_hex(32))"
31+
TNFR_CACHE_SECRET= # 64-character hex string recommended
32+
33+
# ============================================================================
34+
# TNFR Engine Configuration
35+
# ============================================================================
36+
37+
# Logging Configuration
38+
TNFR_LOG_LEVEL=INFO # DEBUG, INFO, WARNING, ERROR, CRITICAL
39+
40+
# Reproducibility Configuration
41+
TNFR_RANDOM_SEED=42 # For deterministic simulations
42+
43+
# Performance Configuration
44+
TNFR_BACKEND=numpy # numpy, jax, or torch
45+
TNFR_CACHE_ENABLED=true
46+
47+
# ============================================================================
48+
# Security Best Practices
49+
# ============================================================================
50+
#
51+
# 1. NEVER commit this file with real credentials
52+
# 2. Use API tokens instead of passwords where possible
53+
# 3. Rotate credentials regularly
54+
# 4. Use different credentials for development, staging, and production
55+
# 5. Store production secrets in secure secret management systems
56+
# 6. Grant minimal necessary permissions to all tokens
57+
# 7. Revoke tokens immediately if compromised
58+
#
59+
# For more information, see SECURITY.md

0 commit comments

Comments
 (0)