How tzinchy/mosres works
mosres collects and tracks versioned data for Moscow renovation housing, transport auctions, and property auctions, then exposes it through an authenticated API and a React client. Users sign in, browse dashboards and listings, inspect individual items and their histories, and use favorites, comments, notifications, and exports. Scheduled or manual refreshes fetch portal data for storage and analysis. The graph preserves the documented product branches; unsampled frontend-to-API calls and some backend internals are not asserted as direct edges.
Main entry points: service.py Housing refresh and queries · api.py HTTP endpoints · torgi.py Transport lots · torgi_objects.py Property lots
Components 23
Web client
- Authenticated app
frontend/src/App.tsx - Housing pages
frontend/src/pages - Auction pages
frontend/src/pages - API client
frontend/src/lib/api.ts
API and identity
- HTTP endpoints
src/api.py - Token identity
src/auth.py - Runtime settings
src/config.py - Request and response models
src/schemas.py - Service dependencies
src/depends.py
Renovation housing
- Housing refresh and queries
src/service.py - Moskvartaly portal
- Mortgage rates
src/rates.py
Auction data
- Transport lots
src/torgi.py - Property lots
src/torgi_objects.py - torgi.mos.ru
- Plate parsing
src/plates.py
Persistence and scheduling
- Query and write layer
src/repository.py - Database models
src/models.py - Database sessions
src/database.py - PostgreSQL
- Refresh scheduler
src/scheduler.py - History mixins
src/mixins.py
Other components
- User
Connections 31
- User → Authenticated app: uses
frontend/src/App.tsx - Authenticated app → Housing pages: routes to
frontend/src/App.tsx - Authenticated app → Auction pages: routes to
frontend/src/App.tsx - Authenticated app → API client: requests data
- User → HTTP endpoints: requests data
README.md - HTTP endpoints → Token identity: validates tokens
src/api.py - HTTP endpoints → Service dependencies: resolves services
src/api.py - Service dependencies → Housing refresh and queries: provides
src/depends.py - Service dependencies → Transport lots: provides
src/depends.py - Service dependencies → Property lots: provides
src/depends.py - HTTP endpoints → Request and response models: validates responses
src/api.py - Housing refresh and queries → Moskvartaly portal: fetches
src/service.py - Transport lots → torgi.mos.ru: fetches
src/torgi.py - Property lots → torgi.mos.ru: fetches
src/torgi_objects.py - Transport lots → Plate parsing: parses plates
src/torgi.py - Housing refresh and queries → Query and write layer: queries and writes
src/service.py - Transport lots → Query and write layer: queries and writes
src/torgi.py - Property lots → Query and write layer: queries and writes
src/torgi_objects.py - Housing refresh and queries → Database sessions: opens sessions
src/service.py - Property lots → Database sessions: opens sessions
src/torgi_objects.py - Query and write layer → Database models: queries models
src/repository.py - Database models → Database sessions: uses base
src/models.py - Database sessions → PostgreSQL: connects
src/database.py - Refresh scheduler → Housing refresh and queries: schedules refresh
src/scheduler.py - Refresh scheduler → Transport lots: schedules refresh
src/scheduler.py - Refresh scheduler → Property lots: schedules refresh
src/scheduler.py - HTTP endpoints → Refresh scheduler: starts scheduler
src/api.py - Token identity → Runtime settings: reads secrets
src/auth.py - Housing refresh and queries → Runtime settings: reads settings
src/service.py - Database models → History mixins: inherits history
src/models.py - Housing refresh and queries → Mortgage rates: uses mortgage rates