A comprehensive Django framework providing reusable apps, utilities, and third-party integrations for rapid development. Designed for hackathons and production applications.
HTK includes:
- Reusable Django Apps - Pre-built apps for accounts, organizations, payments, messaging, and more
- Third-Party Integrations - Ready-to-use connectors for 45+ external services (Stripe, Google, AWS, Slack, etc.)
- Utility Modules - Common patterns for caching, text processing, APIs, and data handling
- API Helpers - Tools for building REST APIs with DataTables support
- Form Utilities - Base form classes and validators
- Decorators - Django and function decorators for common tasks
- Models & Fields - Abstract models and custom Django fields
- Middleware - Request/response processing utilities
HTK provides pre-built Django apps that can be installed and configured in your project:
# settings.py
INSTALLED_APPS = [
'htk.apps.accounts',
'htk.apps.organizations',
'htk.apps.stripe_lib',
# ... more apps
]Caching objects:
from htk.cache.classes import CacheableObject
class UserFollowingCache(CacheableObject):
def get_cache_key_suffix(self):
return f'user_{self.user_id}_following'User authentication:
from htk.apps.accounts.backends import HtkUserTokenAuthBackend
from htk.apps.accounts.utils.auth import login_authenticated_userAPI endpoints:
from htk.api.utils import json_response_form_error, get_object_or_json_error- User registration and email verification
- Social authentication backends (OAuth2 support)
- User profiles and email management
- Token-based authentication
- Stripe integration (customers, subscriptions, charges)
- Quote/Invoice system (CPQ)
- Payment tracking and history
- Multi-org support with roles and permissions
- Org invitations and member management
- Permission-based access control
- Email notifications
- Slack integration
- Conversation/threading support
- Text processing (formatting, translation, sanitization)
- Caching decorators and schemes
- CSV/PDF generation
- QR codes
- Geolocation and distance calculations
- Timezone handling
See lib/README.md for details on 45+ integrations including:
- Cloud: AWS S3, Google Cloud
- Communication: Slack, Discord, Gmail, Twilio
- Data: Airtable, Stripe, Shopify, Zuora
- Analytics: Iterable, Mixpanel
- Location: Google Maps, Mapbox, Zillow
- Search: Elasticsearch integration patterns
htk/
├── apps/ # Pre-built Django apps
├── lib/ # Third-party service integrations
├── utils/ # Common utilities and helpers
├── models/ # Abstract models and field types
├── forms/ # Base form classes
├── api/ # REST API utilities
├── decorators/ # Function and class decorators
├── middleware/ # Request/response processing
├── cache/ # Caching framework
├── constants/ # Project-wide constants
├── extensions/ # Django extensions
├── templates/ # Reusable templates
└── templatetags/ # Custom template filters and tags
For detailed information about each module, see:
- Apps - Reusable Django application packages
- Libraries - Third-party service integrations
- Utilities - Helper functions and utilities
- API - REST API patterns and tools
- Cache - Caching framework and patterns
- Forms - Form utilities and base classes
- Decorators - Function and class decorators
- Models - Abstract models and custom fields
- Validators - Validation utilities
Hackathons: Rapidly build production-quality features with pre-built apps and integrations.
SaaS Applications: Multi-organization support, billing, and user management out of the box.
E-commerce: Stripe payments, inventory management, order processing.
Content Platforms: User accounts, organizations, messaging, notifications.
Marketplaces: Payment processing, user profiles, organization support.
HTK is designed to be extended. Create custom apps that inherit from abstract base classes and add your own business logic.