From 12598b88ccfc367d19627b2e03df5c3c005d91c4 Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Thu, 9 May 2024 19:43:59 +0200 Subject: [PATCH] Rename project to Trainvel --- manage.py | 2 +- sncf-station/public/robots.txt | 3 - sncfgtfs/requirements.txt | 6 - {sncf-station => trainvel-front}/.gitignore | 0 {sncf-station => trainvel-front}/README.md | 0 .../package-lock.json | 4 +- {sncf-station => trainvel-front}/package.json | 2 +- .../public/bus.svg | 0 .../public/eurostar.svg | 0 .../public/eurostar_mini.svg | 0 .../public/favicon.ico | Bin .../public/frecciarossa.svg | 0 .../public/ice.svg | 0 .../public/index.html | 2 +- .../public/logo192.png | Bin .../public/logo512.png | Bin .../public/lyria.svg | 0 .../public/manifest.json | 0 .../public/nightjet.svg | 0 .../public/ouigo.svg | 0 .../public/renfe.svg | 0 .../public/ter.svg | 0 .../public/tgv_inoui.svg | 0 .../public/trenitalia.svg | 0 {sncf-station => trainvel-front}/src/App.css | 0 {sncf-station => trainvel-front}/src/App.js | 2 +- .../src/AutocompleteStop.jsx | 0 {sncf-station => trainvel-front}/src/Home.js | 4 +- .../src/Station.js | 4 +- .../src/Station.test.js | 0 .../src/TrainsTable.js | 0 .../src/index.css | 0 {sncf-station => trainvel-front}/src/index.js | 0 {sncf-station => trainvel-front}/src/logo.svg | 0 .../src/reportWebVitals.js | 0 .../src/setupTests.js | 0 {sncf => trainvel}/__init__.py | 0 {sncf => trainvel}/api/__init__.py | 0 {sncf => trainvel}/api/apps.py | 2 +- {sncf => trainvel}/api/serializers.py | 2 +- {sncf => trainvel}/api/tests.py | 0 {sncf => trainvel}/api/views.py | 4 +- {sncf => trainvel}/asgi.py | 4 +- {sncfgtfs => trainvel/gtfs}/__init__.py | 0 {sncfgtfs => trainvel/gtfs}/admin.py | 2 +- {sncfgtfs => trainvel/gtfs}/apps.py | 4 +- .../gtfs}/fixtures/gtfs_feeds.json | 18 +- .../gtfs}/gtfs-realtime.proto | 0 .../gtfs}/gtfs_realtime_pb2.py | 0 .../gtfs}/gtfs_realtime_pb2.pyi | 0 .../gtfs}/locale/fr/LC_MESSAGES/django.po | 392 +++++++++--------- .../gtfs/management}/__init__.py | 0 trainvel/gtfs/management/commands/__init__.py | 0 .../management/commands/update_sncf_gtfs.py | 4 +- .../commands/update_sncf_gtfs_rt.py | 7 +- .../gtfs}/migrations/0001_initial.py | 74 ++-- trainvel/gtfs/migrations/__init__.py | 0 {sncfgtfs => trainvel/gtfs}/models.py | 0 {sncfgtfs => trainvel/gtfs}/tests.py | 0 {sncf => trainvel}/settings.py | 10 +- {sncf => trainvel}/settings_local_example.py | 4 +- {sncf => trainvel}/urls.py | 4 +- {sncf => trainvel}/wsgi.py | 4 +- 63 files changed, 278 insertions(+), 286 deletions(-) delete mode 100644 sncf-station/public/robots.txt delete mode 100644 sncfgtfs/requirements.txt rename {sncf-station => trainvel-front}/.gitignore (100%) rename {sncf-station => trainvel-front}/README.md (100%) rename {sncf-station => trainvel-front}/package-lock.json (99%) rename {sncf-station => trainvel-front}/package.json (97%) rename {sncf-station => trainvel-front}/public/bus.svg (100%) rename {sncf-station => trainvel-front}/public/eurostar.svg (100%) rename {sncf-station => trainvel-front}/public/eurostar_mini.svg (100%) rename {sncf-station => trainvel-front}/public/favicon.ico (100%) rename {sncf-station => trainvel-front}/public/frecciarossa.svg (100%) rename {sncf-station => trainvel-front}/public/ice.svg (100%) rename {sncf-station => trainvel-front}/public/index.html (97%) rename {sncf-station => trainvel-front}/public/logo192.png (100%) rename {sncf-station => trainvel-front}/public/logo512.png (100%) rename {sncf-station => trainvel-front}/public/lyria.svg (100%) rename {sncf-station => trainvel-front}/public/manifest.json (100%) rename {sncf-station => trainvel-front}/public/nightjet.svg (100%) rename {sncf-station => trainvel-front}/public/ouigo.svg (100%) rename {sncf-station => trainvel-front}/public/renfe.svg (100%) rename {sncf-station => trainvel-front}/public/ter.svg (100%) rename {sncf-station => trainvel-front}/public/tgv_inoui.svg (100%) rename {sncf-station => trainvel-front}/public/trenitalia.svg (100%) rename {sncf-station => trainvel-front}/src/App.css (100%) rename {sncf-station => trainvel-front}/src/App.js (97%) rename {sncf-station => trainvel-front}/src/AutocompleteStop.jsx (100%) rename {sncf-station => trainvel-front}/src/Home.js (80%) rename {sncf-station => trainvel-front}/src/Station.js (97%) rename {sncf-station => trainvel-front}/src/Station.test.js (100%) rename {sncf-station => trainvel-front}/src/TrainsTable.js (100%) rename {sncf-station => trainvel-front}/src/index.css (100%) rename {sncf-station => trainvel-front}/src/index.js (100%) rename {sncf-station => trainvel-front}/src/logo.svg (100%) rename {sncf-station => trainvel-front}/src/reportWebVitals.js (100%) rename {sncf-station => trainvel-front}/src/setupTests.js (100%) rename {sncf => trainvel}/__init__.py (100%) rename {sncf => trainvel}/api/__init__.py (100%) rename {sncf => trainvel}/api/apps.py (82%) rename {sncf => trainvel}/api/serializers.py (94%) rename {sncf => trainvel}/api/tests.py (100%) rename {sncf => trainvel}/api/views.py (98%) rename {sncf => trainvel}/asgi.py (73%) rename {sncfgtfs => trainvel/gtfs}/__init__.py (100%) rename {sncfgtfs => trainvel/gtfs}/admin.py (98%) rename {sncfgtfs => trainvel/gtfs}/apps.py (59%) rename {sncfgtfs => trainvel/gtfs}/fixtures/gtfs_feeds.json (88%) rename {sncfgtfs => trainvel/gtfs}/gtfs-realtime.proto (100%) rename {sncfgtfs => trainvel/gtfs}/gtfs_realtime_pb2.py (100%) rename {sncfgtfs => trainvel/gtfs}/gtfs_realtime_pb2.pyi (100%) rename {sncfgtfs => trainvel/gtfs}/locale/fr/LC_MESSAGES/django.po (59%) rename {sncfgtfs/migrations => trainvel/gtfs/management}/__init__.py (100%) create mode 100644 trainvel/gtfs/management/commands/__init__.py rename {sncfgtfs => trainvel/gtfs}/management/commands/update_sncf_gtfs.py (99%) rename {sncfgtfs => trainvel/gtfs}/management/commands/update_sncf_gtfs_rt.py (97%) rename {sncfgtfs => trainvel/gtfs}/migrations/0001_initial.py (93%) create mode 100644 trainvel/gtfs/migrations/__init__.py rename {sncfgtfs => trainvel/gtfs}/models.py (100%) rename {sncfgtfs => trainvel/gtfs}/tests.py (100%) rename {sncf => trainvel}/settings.py (95%) rename {sncf => trainvel}/settings_local_example.py (84%) rename {sncf => trainvel}/urls.py (92%) rename {sncf => trainvel}/wsgi.py (73%) diff --git a/manage.py b/manage.py index 896e315..764ca67 100755 --- a/manage.py +++ b/manage.py @@ -6,7 +6,7 @@ import sys def main(): """Run administrative tasks.""" - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "sncf.settings") + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "trainvel.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: diff --git a/sncf-station/public/robots.txt b/sncf-station/public/robots.txt deleted file mode 100644 index e9e57dc..0000000 --- a/sncf-station/public/robots.txt +++ /dev/null @@ -1,3 +0,0 @@ -# https://www.robotstxt.org/robotstxt.html -User-agent: * -Disallow: diff --git a/sncfgtfs/requirements.txt b/sncfgtfs/requirements.txt deleted file mode 100644 index 19f8dc8..0000000 --- a/sncfgtfs/requirements.txt +++ /dev/null @@ -1,6 +0,0 @@ -Django>=5.0,<6.0 -django-cors-headers -django-filter -djangorestframework -protobuf -requests diff --git a/sncf-station/.gitignore b/trainvel-front/.gitignore similarity index 100% rename from sncf-station/.gitignore rename to trainvel-front/.gitignore diff --git a/sncf-station/README.md b/trainvel-front/README.md similarity index 100% rename from sncf-station/README.md rename to trainvel-front/README.md diff --git a/sncf-station/package-lock.json b/trainvel-front/package-lock.json similarity index 99% rename from sncf-station/package-lock.json rename to trainvel-front/package-lock.json index cae68ec..1823fd6 100644 --- a/sncf-station/package-lock.json +++ b/trainvel-front/package-lock.json @@ -1,11 +1,11 @@ { - "name": "sncf-station", + "name": "trainvel-front", "version": "0.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "sncf-station", + "name": "trainvel-front", "version": "0.1.0", "dependencies": { "@emotion/react": "^11.11.3", diff --git a/sncf-station/package.json b/trainvel-front/package.json similarity index 97% rename from sncf-station/package.json rename to trainvel-front/package.json index 06deeb8..1297d19 100644 --- a/sncf-station/package.json +++ b/trainvel-front/package.json @@ -1,5 +1,5 @@ { - "name": "sncf-station", + "name": "trainvel-front", "version": "0.1.0", "private": true, "dependencies": { diff --git a/sncf-station/public/bus.svg b/trainvel-front/public/bus.svg similarity index 100% rename from sncf-station/public/bus.svg rename to trainvel-front/public/bus.svg diff --git a/sncf-station/public/eurostar.svg b/trainvel-front/public/eurostar.svg similarity index 100% rename from sncf-station/public/eurostar.svg rename to trainvel-front/public/eurostar.svg diff --git a/sncf-station/public/eurostar_mini.svg b/trainvel-front/public/eurostar_mini.svg similarity index 100% rename from sncf-station/public/eurostar_mini.svg rename to trainvel-front/public/eurostar_mini.svg diff --git a/sncf-station/public/favicon.ico b/trainvel-front/public/favicon.ico similarity index 100% rename from sncf-station/public/favicon.ico rename to trainvel-front/public/favicon.ico diff --git a/sncf-station/public/frecciarossa.svg b/trainvel-front/public/frecciarossa.svg similarity index 100% rename from sncf-station/public/frecciarossa.svg rename to trainvel-front/public/frecciarossa.svg diff --git a/sncf-station/public/ice.svg b/trainvel-front/public/ice.svg similarity index 100% rename from sncf-station/public/ice.svg rename to trainvel-front/public/ice.svg diff --git a/sncf-station/public/index.html b/trainvel-front/public/index.html similarity index 97% rename from sncf-station/public/index.html rename to trainvel-front/public/index.html index 8009beb..90909b4 100644 --- a/sncf-station/public/index.html +++ b/trainvel-front/public/index.html @@ -7,7 +7,7 @@ diff --git a/sncf-station/public/logo192.png b/trainvel-front/public/logo192.png similarity index 100% rename from sncf-station/public/logo192.png rename to trainvel-front/public/logo192.png diff --git a/sncf-station/public/logo512.png b/trainvel-front/public/logo512.png similarity index 100% rename from sncf-station/public/logo512.png rename to trainvel-front/public/logo512.png diff --git a/sncf-station/public/lyria.svg b/trainvel-front/public/lyria.svg similarity index 100% rename from sncf-station/public/lyria.svg rename to trainvel-front/public/lyria.svg diff --git a/sncf-station/public/manifest.json b/trainvel-front/public/manifest.json similarity index 100% rename from sncf-station/public/manifest.json rename to trainvel-front/public/manifest.json diff --git a/sncf-station/public/nightjet.svg b/trainvel-front/public/nightjet.svg similarity index 100% rename from sncf-station/public/nightjet.svg rename to trainvel-front/public/nightjet.svg diff --git a/sncf-station/public/ouigo.svg b/trainvel-front/public/ouigo.svg similarity index 100% rename from sncf-station/public/ouigo.svg rename to trainvel-front/public/ouigo.svg diff --git a/sncf-station/public/renfe.svg b/trainvel-front/public/renfe.svg similarity index 100% rename from sncf-station/public/renfe.svg rename to trainvel-front/public/renfe.svg diff --git a/sncf-station/public/ter.svg b/trainvel-front/public/ter.svg similarity index 100% rename from sncf-station/public/ter.svg rename to trainvel-front/public/ter.svg diff --git a/sncf-station/public/tgv_inoui.svg b/trainvel-front/public/tgv_inoui.svg similarity index 100% rename from sncf-station/public/tgv_inoui.svg rename to trainvel-front/public/tgv_inoui.svg diff --git a/sncf-station/public/trenitalia.svg b/trainvel-front/public/trenitalia.svg similarity index 100% rename from sncf-station/public/trenitalia.svg rename to trainvel-front/public/trenitalia.svg diff --git a/sncf-station/src/App.css b/trainvel-front/src/App.css similarity index 100% rename from sncf-station/src/App.css rename to trainvel-front/src/App.css diff --git a/sncf-station/src/App.js b/trainvel-front/src/App.js similarity index 97% rename from sncf-station/src/App.js rename to trainvel-front/src/App.js index bad617c..166c4b4 100644 --- a/sncf-station/src/App.js +++ b/trainvel-front/src/App.js @@ -18,7 +18,7 @@ function App() { element: , }, { - path: "/station/:stopId", + path: "/station/:theme/:stopId", element: } ]) diff --git a/sncf-station/src/AutocompleteStop.jsx b/trainvel-front/src/AutocompleteStop.jsx similarity index 100% rename from sncf-station/src/AutocompleteStop.jsx rename to trainvel-front/src/AutocompleteStop.jsx diff --git a/sncf-station/src/Home.js b/trainvel-front/src/Home.js similarity index 80% rename from sncf-station/src/Home.js rename to trainvel-front/src/Home.js index 4366fd5..80c7c8e 100644 --- a/sncf-station/src/Home.js +++ b/trainvel-front/src/Home.js @@ -5,11 +5,11 @@ function Home() { const navigate = useNavigate() function onStationSelected(event, stop) { - navigate(`/station/${stop.id}/`) + navigate(`/station/sncf/${stop.id}/`) } return <> -

Horaires SNCF

+

Horaires des trains

Choisissez une gare dont vous désirez connaître le tableau des prochains départs et arrivées :

diff --git a/sncf-station/src/Station.js b/trainvel-front/src/Station.js similarity index 97% rename from sncf-station/src/Station.js rename to trainvel-front/src/Station.js index a5049e3..6823469 100644 --- a/sncf-station/src/Station.js +++ b/trainvel-front/src/Station.js @@ -12,7 +12,7 @@ function DateTimeSelector({stop, date, time}) { function onStationSelected(event, stop) { if (stop !== null) - navigate(`/station/${stop.id}/`) + navigate(`/station/sncf/${stop.id}/`) } return <> @@ -32,7 +32,7 @@ function DateTimeSelector({stop, date, time}) { } function Station() { - let {stopId} = useParams() + let {stopId, theme} = useParams() let [searchParams, _setSearchParams] = useSearchParams() const now = new Date() let dateNow = `${now.getFullYear()}-${String(now.getMonth() + 1).padStart(2, '0')}-${String(now.getDate()).padStart(2, '0')}` diff --git a/sncf-station/src/Station.test.js b/trainvel-front/src/Station.test.js similarity index 100% rename from sncf-station/src/Station.test.js rename to trainvel-front/src/Station.test.js diff --git a/sncf-station/src/TrainsTable.js b/trainvel-front/src/TrainsTable.js similarity index 100% rename from sncf-station/src/TrainsTable.js rename to trainvel-front/src/TrainsTable.js diff --git a/sncf-station/src/index.css b/trainvel-front/src/index.css similarity index 100% rename from sncf-station/src/index.css rename to trainvel-front/src/index.css diff --git a/sncf-station/src/index.js b/trainvel-front/src/index.js similarity index 100% rename from sncf-station/src/index.js rename to trainvel-front/src/index.js diff --git a/sncf-station/src/logo.svg b/trainvel-front/src/logo.svg similarity index 100% rename from sncf-station/src/logo.svg rename to trainvel-front/src/logo.svg diff --git a/sncf-station/src/reportWebVitals.js b/trainvel-front/src/reportWebVitals.js similarity index 100% rename from sncf-station/src/reportWebVitals.js rename to trainvel-front/src/reportWebVitals.js diff --git a/sncf-station/src/setupTests.js b/trainvel-front/src/setupTests.js similarity index 100% rename from sncf-station/src/setupTests.js rename to trainvel-front/src/setupTests.js diff --git a/sncf/__init__.py b/trainvel/__init__.py similarity index 100% rename from sncf/__init__.py rename to trainvel/__init__.py diff --git a/sncf/api/__init__.py b/trainvel/api/__init__.py similarity index 100% rename from sncf/api/__init__.py rename to trainvel/api/__init__.py diff --git a/sncf/api/apps.py b/trainvel/api/apps.py similarity index 82% rename from sncf/api/apps.py rename to trainvel/api/apps.py index 55b034e..64bbd05 100644 --- a/sncf/api/apps.py +++ b/trainvel/api/apps.py @@ -3,4 +3,4 @@ from django.apps import AppConfig class ApiConfig(AppConfig): default_auto_field = "django.db.models.BigAutoField" - name = "sncf.api" + name = "trainvel.api" diff --git a/sncf/api/serializers.py b/trainvel/api/serializers.py similarity index 94% rename from sncf/api/serializers.py rename to trainvel/api/serializers.py index 4307d84..1205c55 100644 --- a/sncf/api/serializers.py +++ b/trainvel/api/serializers.py @@ -1,6 +1,6 @@ from rest_framework import serializers -from sncfgtfs.models import Agency, Stop, Route, Trip, StopTime, Calendar, CalendarDate, \ +from trainvel.gtfs.models import Agency, Stop, Route, Trip, StopTime, Calendar, CalendarDate, \ Transfer, FeedInfo, TripUpdate, StopTimeUpdate diff --git a/sncf/api/tests.py b/trainvel/api/tests.py similarity index 100% rename from sncf/api/tests.py rename to trainvel/api/tests.py diff --git a/sncf/api/views.py b/trainvel/api/views.py similarity index 98% rename from sncf/api/views.py rename to trainvel/api/views.py index cfe63af..25e2a64 100644 --- a/sncf/api/views.py +++ b/trainvel/api/views.py @@ -8,10 +8,10 @@ from django_filters.rest_framework import DjangoFilterBackend from rest_framework import viewsets from rest_framework.filters import OrderingFilter, SearchFilter -from sncf.api.serializers import AgencySerializer, StopSerializer, RouteSerializer, TripSerializer, \ +from trainvel.api.serializers import AgencySerializer, StopSerializer, RouteSerializer, TripSerializer, \ StopTimeSerializer, CalendarSerializer, CalendarDateSerializer, TransferSerializer, \ FeedInfoSerializer, TripUpdateSerializer, StopTimeUpdateSerializer -from sncfgtfs.models import Agency, Calendar, CalendarDate, FeedInfo, GTFSFeed, Route, Stop, StopTime, StopTimeUpdate, \ +from trainvel.gtfs.models import Agency, Calendar, CalendarDate, FeedInfo, GTFSFeed, Route, Stop, StopTime, StopTimeUpdate, \ Transfer, Trip, TripUpdate CACHE_CONTROL = cache_control(max_age=7200) diff --git a/sncf/asgi.py b/trainvel/asgi.py similarity index 73% rename from sncf/asgi.py rename to trainvel/asgi.py index 69f6d29..8d94156 100644 --- a/sncf/asgi.py +++ b/trainvel/asgi.py @@ -1,5 +1,5 @@ """ -ASGI config for sncf project. +ASGI config for trainvel project. It exposes the ASGI callable as a module-level variable named ``application``. @@ -11,6 +11,6 @@ import os from django.core.asgi import get_asgi_application -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "sncf.settings") +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "trainvel.settings") application = get_asgi_application() diff --git a/sncfgtfs/__init__.py b/trainvel/gtfs/__init__.py similarity index 100% rename from sncfgtfs/__init__.py rename to trainvel/gtfs/__init__.py diff --git a/sncfgtfs/admin.py b/trainvel/gtfs/admin.py similarity index 98% rename from sncfgtfs/admin.py rename to trainvel/gtfs/admin.py index 688f0fa..e4e0f86 100644 --- a/sncfgtfs/admin.py +++ b/trainvel/gtfs/admin.py @@ -1,7 +1,7 @@ from django.contrib import admin from django.forms import BaseInlineFormSet -from sncfgtfs.models import Agency, Calendar, CalendarDate, FeedInfo, GTFSFeed, \ +from trainvel.gtfs.models import Agency, Calendar, CalendarDate, FeedInfo, GTFSFeed, \ Route, Stop, StopTime, StopTimeUpdate, Transfer, Trip, TripUpdate diff --git a/sncfgtfs/apps.py b/trainvel/gtfs/apps.py similarity index 59% rename from sncfgtfs/apps.py rename to trainvel/gtfs/apps.py index 1eaf284..bff9fdc 100644 --- a/sncfgtfs/apps.py +++ b/trainvel/gtfs/apps.py @@ -1,6 +1,6 @@ from django.apps import AppConfig -class SncfgtfsConfig(AppConfig): +class TrainvelGTFSConfig(AppConfig): default_auto_field = "django.db.models.BigAutoField" - name = "sncfgtfs" + name = "trainvel.gtfs" diff --git a/sncfgtfs/fixtures/gtfs_feeds.json b/trainvel/gtfs/fixtures/gtfs_feeds.json similarity index 88% rename from sncfgtfs/fixtures/gtfs_feeds.json rename to trainvel/gtfs/fixtures/gtfs_feeds.json index 6b0f7cd..bae96fe 100644 --- a/sncfgtfs/fixtures/gtfs_feeds.json +++ b/trainvel/gtfs/fixtures/gtfs_feeds.json @@ -1,6 +1,6 @@ [ { - "model": "sncfgtfs.gtfsfeed", + "model": "gtfs.gtfsfeed", "pk": "FR-SNCF-TGV", "fields": { "name": "SNCF - TGV", @@ -10,7 +10,7 @@ } }, { - "model": "sncfgtfs.gtfsfeed", + "model": "gtfs.gtfsfeed", "pk": "FR-SNCF-IC", "fields": { "name": "SNCF - Intercités", @@ -20,7 +20,7 @@ } }, { - "model": "sncfgtfs.gtfsfeed", + "model": "gtfs.gtfsfeed", "pk": "FR-SNCF-TER", "fields": { "name": "SNCF - TER", @@ -30,7 +30,7 @@ } }, { - "model": "sncfgtfs.gtfsfeed", + "model": "gtfs.gtfsfeed", "pk": "FR-IDF-TN", "fields": { "name": "SNCF - Transilien", @@ -40,7 +40,7 @@ } }, { - "model": "sncfgtfs.gtfsfeed", + "model": "gtfs.gtfsfeed", "pk": "FR-EUROSTAR", "fields": { "name": "Eurostar", @@ -50,7 +50,7 @@ } }, { - "model": "sncfgtfs.gtfsfeed", + "model": "gtfs.gtfsfeed", "pk": "IT-FRA-TI", "fields": { "name": "Trenitalia France", @@ -60,7 +60,7 @@ } }, { - "model": "sncfgtfs.gtfsfeed", + "model": "gtfs.gtfsfeed", "pk": "ES-RENFE", "fields": { "name": "Renfe", @@ -70,7 +70,7 @@ } }, { - "model": "sncfgtfs.gtfsfeed", + "model": "gtfs.gtfsfeed", "pk": "AT-ÖBB", "fields": { "name": "ÖBB", @@ -80,7 +80,7 @@ } }, { - "model": "sncfgtfs.gtfsfeed", + "model": "gtfs.gtfsfeed", "pk": "CH-ALL", "fields": { "name": "Transports suisses", diff --git a/sncfgtfs/gtfs-realtime.proto b/trainvel/gtfs/gtfs-realtime.proto similarity index 100% rename from sncfgtfs/gtfs-realtime.proto rename to trainvel/gtfs/gtfs-realtime.proto diff --git a/sncfgtfs/gtfs_realtime_pb2.py b/trainvel/gtfs/gtfs_realtime_pb2.py similarity index 100% rename from sncfgtfs/gtfs_realtime_pb2.py rename to trainvel/gtfs/gtfs_realtime_pb2.py diff --git a/sncfgtfs/gtfs_realtime_pb2.pyi b/trainvel/gtfs/gtfs_realtime_pb2.pyi similarity index 100% rename from sncfgtfs/gtfs_realtime_pb2.pyi rename to trainvel/gtfs/gtfs_realtime_pb2.pyi diff --git a/sncfgtfs/locale/fr/LC_MESSAGES/django.po b/trainvel/gtfs/locale/fr/LC_MESSAGES/django.po similarity index 59% rename from sncfgtfs/locale/fr/LC_MESSAGES/django.po rename to trainvel/gtfs/locale/fr/LC_MESSAGES/django.po index a833d72..edd247d 100644 --- a/sncfgtfs/locale/fr/LC_MESSAGES/django.po +++ b/trainvel/gtfs/locale/fr/LC_MESSAGES/django.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: 1.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-05-09 19:27+0200\n" +"POT-Creation-Date: 2024-05-09 19:34+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Emmy D'Anello \n" "Language-Team: LANGUAGE \n" @@ -12,355 +12,355 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: sncfgtfs/models.py:11 +#: trainvel/gtfs/models.py:11 msgid "Albania" msgstr "Albanie" -#: sncfgtfs/models.py:12 +#: trainvel/gtfs/models.py:12 msgid "Andorra" msgstr "Andorre" -#: sncfgtfs/models.py:13 +#: trainvel/gtfs/models.py:13 msgid "Armenia" msgstr "Arménie" -#: sncfgtfs/models.py:14 +#: trainvel/gtfs/models.py:14 msgid "Austria" msgstr "Autriche" -#: sncfgtfs/models.py:15 +#: trainvel/gtfs/models.py:15 msgid "Azerbaijan" msgstr "Azerbaijan" -#: sncfgtfs/models.py:16 +#: trainvel/gtfs/models.py:16 msgid "Belgium" msgstr "Belgique" -#: sncfgtfs/models.py:17 +#: trainvel/gtfs/models.py:17 msgid "Bosnia and Herzegovina" msgstr " Bosnie-Herzégovine" -#: sncfgtfs/models.py:18 +#: trainvel/gtfs/models.py:18 msgid "Bulgaria" msgstr "Bulgarie" -#: sncfgtfs/models.py:19 +#: trainvel/gtfs/models.py:19 msgid "Croatia" msgstr "Croatie" -#: sncfgtfs/models.py:20 +#: trainvel/gtfs/models.py:20 msgid "Cyprus" msgstr "Chypre" -#: sncfgtfs/models.py:21 +#: trainvel/gtfs/models.py:21 msgid "Czech Republic" msgstr "République Tchèque" -#: sncfgtfs/models.py:22 +#: trainvel/gtfs/models.py:22 msgid "Denmark" msgstr "Danemark" -#: sncfgtfs/models.py:23 +#: trainvel/gtfs/models.py:23 msgid "Estonia" msgstr "Estonie" -#: sncfgtfs/models.py:24 +#: trainvel/gtfs/models.py:24 msgid "Finland" msgstr "Finlande" -#: sncfgtfs/models.py:25 +#: trainvel/gtfs/models.py:25 msgid "France" msgstr "France" -#: sncfgtfs/models.py:26 +#: trainvel/gtfs/models.py:26 msgid "Georgia" msgstr "Géorgie" -#: sncfgtfs/models.py:27 +#: trainvel/gtfs/models.py:27 msgid "Germany" msgstr "Allemagne" -#: sncfgtfs/models.py:28 +#: trainvel/gtfs/models.py:28 msgid "Greece" msgstr "Grèce" -#: sncfgtfs/models.py:29 +#: trainvel/gtfs/models.py:29 msgid "Hungary" msgstr "Hongrie" -#: sncfgtfs/models.py:30 +#: trainvel/gtfs/models.py:30 msgid "Iceland" msgstr "Islande" -#: sncfgtfs/models.py:31 +#: trainvel/gtfs/models.py:31 msgid "Ireland" msgstr "Irlande" -#: sncfgtfs/models.py:32 +#: trainvel/gtfs/models.py:32 msgid "Italy" msgstr "Italie" -#: sncfgtfs/models.py:33 +#: trainvel/gtfs/models.py:33 msgid "Latvia" msgstr "Lettonie" -#: sncfgtfs/models.py:34 +#: trainvel/gtfs/models.py:34 msgid "Liechtenstein" msgstr "Liechtenstein" -#: sncfgtfs/models.py:35 +#: trainvel/gtfs/models.py:35 msgid "Lithuania" msgstr "Lituanie" -#: sncfgtfs/models.py:36 +#: trainvel/gtfs/models.py:36 msgid "Luxembourg" msgstr "Luxembourg" -#: sncfgtfs/models.py:37 +#: trainvel/gtfs/models.py:37 msgid "Malta" msgstr "Malte" -#: sncfgtfs/models.py:38 +#: trainvel/gtfs/models.py:38 msgid "Moldova" msgstr "Moldavie" -#: sncfgtfs/models.py:39 +#: trainvel/gtfs/models.py:39 msgid "Monaco" msgstr "Monaco" -#: sncfgtfs/models.py:40 +#: trainvel/gtfs/models.py:40 msgid "Montenegro" msgstr "Monténégro" -#: sncfgtfs/models.py:41 +#: trainvel/gtfs/models.py:41 msgid "Netherlands" msgstr "Pays-Bas" -#: sncfgtfs/models.py:42 +#: trainvel/gtfs/models.py:42 msgid "North Macedonia" msgstr "Macédoine du Nord" -#: sncfgtfs/models.py:43 +#: trainvel/gtfs/models.py:43 msgid "Norway" msgstr "Norvège" -#: sncfgtfs/models.py:44 +#: trainvel/gtfs/models.py:44 msgid "Poland" msgstr "Pologne" -#: sncfgtfs/models.py:45 +#: trainvel/gtfs/models.py:45 msgid "Portugal" msgstr "Portugal" -#: sncfgtfs/models.py:46 +#: trainvel/gtfs/models.py:46 msgid "Romania" msgstr "Roumanie" -#: sncfgtfs/models.py:47 +#: trainvel/gtfs/models.py:47 msgid "San Marino" msgstr "Saint-Marin" -#: sncfgtfs/models.py:48 +#: trainvel/gtfs/models.py:48 msgid "Serbia" msgstr "Serbie" -#: sncfgtfs/models.py:49 +#: trainvel/gtfs/models.py:49 msgid "Slovakia" msgstr "Slovaquie" -#: sncfgtfs/models.py:50 +#: trainvel/gtfs/models.py:50 msgid "Slovenia" msgstr "Slovénie" -#: sncfgtfs/models.py:51 +#: trainvel/gtfs/models.py:51 msgid "Spain" msgstr "Espagne" -#: sncfgtfs/models.py:52 +#: trainvel/gtfs/models.py:52 msgid "Sweden" msgstr "Suède" -#: sncfgtfs/models.py:53 +#: trainvel/gtfs/models.py:53 msgid "Switzerland" msgstr "Suisse" -#: sncfgtfs/models.py:54 +#: trainvel/gtfs/models.py:54 msgid "Turkey" msgstr "Turquie" -#: sncfgtfs/models.py:55 +#: trainvel/gtfs/models.py:55 msgid "United Kingdom" msgstr "Royaume-Uni" -#: sncfgtfs/models.py:56 +#: trainvel/gtfs/models.py:56 msgid "Ukraine" msgstr "Ukraine" -#: sncfgtfs/models.py:60 +#: trainvel/gtfs/models.py:60 msgid "Stop/platform" msgstr "Arrêt / quai" -#: sncfgtfs/models.py:61 +#: trainvel/gtfs/models.py:61 msgid "Station" msgstr "Gare" -#: sncfgtfs/models.py:62 +#: trainvel/gtfs/models.py:62 msgid "Entrance/exit" msgstr "Entrée / sortie" -#: sncfgtfs/models.py:63 +#: trainvel/gtfs/models.py:63 msgid "Generic node" msgstr "Nœud générique" -#: sncfgtfs/models.py:64 +#: trainvel/gtfs/models.py:64 msgid "Boarding area" msgstr "Zone d'embarquement" -#: sncfgtfs/models.py:68 +#: trainvel/gtfs/models.py:68 msgid "No information" msgstr "Pas d'information" -#: sncfgtfs/models.py:69 +#: trainvel/gtfs/models.py:69 msgid "Possible" msgstr "Possible" -#: sncfgtfs/models.py:70 sncfgtfs/models.py:100 +#: trainvel/gtfs/models.py:70 trainvel/gtfs/models.py:100 msgid "Not possible" msgstr "Impossible" -#: sncfgtfs/models.py:74 +#: trainvel/gtfs/models.py:74 msgid "Regular" msgstr "Régulier" -#: sncfgtfs/models.py:75 +#: trainvel/gtfs/models.py:75 msgid "None" msgstr "Aucun" -#: sncfgtfs/models.py:76 +#: trainvel/gtfs/models.py:76 msgid "Must phone agency" msgstr "Doit téléphoner à l'agence" -#: sncfgtfs/models.py:77 +#: trainvel/gtfs/models.py:77 msgid "Must coordinate with driver" msgstr "Doit se coordonner avec læ conducteurice" -#: sncfgtfs/models.py:81 +#: trainvel/gtfs/models.py:81 msgid "Tram" msgstr "Tram" -#: sncfgtfs/models.py:82 +#: trainvel/gtfs/models.py:82 msgid "Metro" msgstr "Métro" -#: sncfgtfs/models.py:83 +#: trainvel/gtfs/models.py:83 msgid "Rail" msgstr "Rail" -#: sncfgtfs/models.py:84 +#: trainvel/gtfs/models.py:84 msgid "Bus" msgstr "Bus" -#: sncfgtfs/models.py:85 +#: trainvel/gtfs/models.py:85 msgid "Ferry" msgstr "Ferry" -#: sncfgtfs/models.py:86 +#: trainvel/gtfs/models.py:86 msgid "Cable car" msgstr "Câble" -#: sncfgtfs/models.py:87 +#: trainvel/gtfs/models.py:87 msgid "Gondola" msgstr "Gondole" -#: sncfgtfs/models.py:88 +#: trainvel/gtfs/models.py:88 msgid "Funicular" msgstr "Funiculaire" -#: sncfgtfs/models.py:92 +#: trainvel/gtfs/models.py:92 msgid "Outbound" msgstr "Vers l'extérieur" -#: sncfgtfs/models.py:93 +#: trainvel/gtfs/models.py:93 msgid "Inbound" msgstr "Vers l'intérieur" -#: sncfgtfs/models.py:97 +#: trainvel/gtfs/models.py:97 msgid "Recommended" msgstr "Recommandé" -#: sncfgtfs/models.py:98 +#: trainvel/gtfs/models.py:98 msgid "Timed" msgstr "Correspondance programmée" -#: sncfgtfs/models.py:99 +#: trainvel/gtfs/models.py:99 msgid "Minimum time" msgstr "Temps de correspondance minimum requis" -#: sncfgtfs/models.py:104 sncfgtfs/models.py:110 +#: trainvel/gtfs/models.py:104 trainvel/gtfs/models.py:110 msgid "Added" msgstr "Ajouté" -#: sncfgtfs/models.py:105 +#: trainvel/gtfs/models.py:105 msgid "Removed" msgstr "Supprimé" -#: sncfgtfs/models.py:109 sncfgtfs/models.py:119 +#: trainvel/gtfs/models.py:109 trainvel/gtfs/models.py:119 msgid "Scheduled" msgstr "Planifié" -#: sncfgtfs/models.py:111 sncfgtfs/models.py:122 +#: trainvel/gtfs/models.py:111 trainvel/gtfs/models.py:122 msgid "Unscheduled" msgstr "Non planifié" -#: sncfgtfs/models.py:112 +#: trainvel/gtfs/models.py:112 msgid "Canceled" msgstr "Annulé" -#: sncfgtfs/models.py:113 +#: trainvel/gtfs/models.py:113 msgid "Replacement" msgstr "Remplacé" -#: sncfgtfs/models.py:114 +#: trainvel/gtfs/models.py:114 msgid "Duplicated" msgstr "Dupliqué" -#: sncfgtfs/models.py:115 +#: trainvel/gtfs/models.py:115 msgid "Deleted" msgstr "Supprimé" -#: sncfgtfs/models.py:120 +#: trainvel/gtfs/models.py:120 msgid "Skipped" msgstr "Sauté" -#: sncfgtfs/models.py:121 +#: trainvel/gtfs/models.py:121 msgid "No data" msgstr "Pas de données" -#: sncfgtfs/models.py:129 +#: trainvel/gtfs/models.py:129 msgid "code" msgstr "code" -#: sncfgtfs/models.py:130 +#: trainvel/gtfs/models.py:130 msgid "Unique code of the feed." msgstr "Code unique du flux." -#: sncfgtfs/models.py:135 +#: trainvel/gtfs/models.py:135 msgid "name" msgstr "nom" -#: sncfgtfs/models.py:137 +#: trainvel/gtfs/models.py:137 msgid "Full name that describes the feed." msgstr "Nom complet qui décrit le flux." -#: sncfgtfs/models.py:142 +#: trainvel/gtfs/models.py:142 msgid "country" msgstr "pays" -#: sncfgtfs/models.py:147 +#: trainvel/gtfs/models.py:147 msgid "feed URL" msgstr "URL du flux" -#: sncfgtfs/models.py:148 +#: trainvel/gtfs/models.py:148 msgid "" "URL to download the GTFS feed. Must point to a ZIP archive. See https://gtfs." "org/schedule/ for more information." @@ -368,11 +368,11 @@ msgstr "" "URL où télécharger le flux GTFS. Doit pointer vers une archive ZIP. Voir " "https://gtfs.org/fr/schedule/ pour plus d'informations." -#: sncfgtfs/models.py:153 +#: trainvel/gtfs/models.py:153 msgid "realtime feed URL" msgstr "URL du flux temps réel" -#: sncfgtfs/models.py:156 +#: trainvel/gtfs/models.py:156 msgid "" "URL to download the GTFS-Realtime feed, in the GTFS-RT format. See https://" "gtfs.org/realtime/ for more information." @@ -380,15 +380,15 @@ msgstr "" "URL où télécharger le flux GTFS-Temps réel, au format GTFS-RT. Voir https://" "gtfs.org/fr/realtime/ pour plus d'informations." -#: sncfgtfs/models.py:161 +#: trainvel/gtfs/models.py:161 msgid "last modified date" msgstr "Date de dernière modification" -#: sncfgtfs/models.py:168 +#: trainvel/gtfs/models.py:168 msgid "ETag" msgstr "ETag" -#: sncfgtfs/models.py:171 +#: trainvel/gtfs/models.py:171 msgid "" "If applicable, corresponds to the tag of the last downloaded file. If it is " "not modified, the file is the same." @@ -396,395 +396,397 @@ msgstr "" "Si applicable, correspond au tag du dernier fichier téléchargé. S'il n'est " "pas modifié, le fichier est considéré comme identique." -#: sncfgtfs/models.py:179 sncfgtfs/models.py:226 sncfgtfs/models.py:326 -#: sncfgtfs/models.py:405 sncfgtfs/models.py:486 sncfgtfs/models.py:696 -#: sncfgtfs/models.py:811 +#: trainvel/gtfs/models.py:179 trainvel/gtfs/models.py:226 +#: trainvel/gtfs/models.py:326 trainvel/gtfs/models.py:405 +#: trainvel/gtfs/models.py:486 trainvel/gtfs/models.py:696 +#: trainvel/gtfs/models.py:811 msgid "GTFS feed" msgstr "flux GTFS" -#: sncfgtfs/models.py:180 +#: trainvel/gtfs/models.py:180 msgid "GTFS feeds" msgstr "flux GTFS" -#: sncfgtfs/models.py:189 +#: trainvel/gtfs/models.py:189 msgid "Agency ID" msgstr "ID de l'agence" -#: sncfgtfs/models.py:194 +#: trainvel/gtfs/models.py:194 msgid "Agency name" msgstr "Nom de l'agence" -#: sncfgtfs/models.py:198 +#: trainvel/gtfs/models.py:198 msgid "Agency URL" msgstr "URL de l'agence" -#: sncfgtfs/models.py:203 +#: trainvel/gtfs/models.py:203 msgid "Agency timezone" msgstr "Fuseau horaire de l'agence" -#: sncfgtfs/models.py:208 +#: trainvel/gtfs/models.py:208 msgid "Agency language" msgstr "Langue de l'agence" -#: sncfgtfs/models.py:214 +#: trainvel/gtfs/models.py:214 msgid "Agency phone" msgstr "Téléphone de l'agence" -#: sncfgtfs/models.py:219 +#: trainvel/gtfs/models.py:219 msgid "Agency email" msgstr "Adresse email de l'agence" -#: sncfgtfs/models.py:233 sncfgtfs/models.py:356 +#: trainvel/gtfs/models.py:233 trainvel/gtfs/models.py:356 msgid "Agency" msgstr "Agence" -#: sncfgtfs/models.py:234 +#: trainvel/gtfs/models.py:234 msgid "Agencies" msgstr "Agences" -#: sncfgtfs/models.py:243 sncfgtfs/models.py:593 +#: trainvel/gtfs/models.py:243 trainvel/gtfs/models.py:593 msgid "Stop ID" msgstr "ID de l'arrêt" -#: sncfgtfs/models.py:248 +#: trainvel/gtfs/models.py:248 msgid "Stop code" msgstr "Code de l'arrêt" -#: sncfgtfs/models.py:254 +#: trainvel/gtfs/models.py:254 msgid "Stop name" msgstr "Nom de l'arrêt" -#: sncfgtfs/models.py:259 +#: trainvel/gtfs/models.py:259 msgid "Stop description" msgstr "Description de l'arrêt" -#: sncfgtfs/models.py:264 +#: trainvel/gtfs/models.py:264 msgid "Stop longitude" msgstr "Longitude de l'arrêt" -#: sncfgtfs/models.py:268 +#: trainvel/gtfs/models.py:268 msgid "Stop latitude" msgstr "Latitude de l'arrêt" -#: sncfgtfs/models.py:273 +#: trainvel/gtfs/models.py:273 msgid "Zone ID" msgstr "ID de la zone" -#: sncfgtfs/models.py:278 +#: trainvel/gtfs/models.py:278 msgid "Stop URL" msgstr "URL de l'arrêt" -#: sncfgtfs/models.py:283 +#: trainvel/gtfs/models.py:283 msgid "Location type" msgstr "Type de localisation" -#: sncfgtfs/models.py:292 +#: trainvel/gtfs/models.py:292 msgid "Parent station" msgstr "Gare parente" -#: sncfgtfs/models.py:300 +#: trainvel/gtfs/models.py:300 msgid "Stop timezone" msgstr "Fuseau horaire de l'arrêt" -#: sncfgtfs/models.py:306 +#: trainvel/gtfs/models.py:306 msgid "Level ID" msgstr "ID du niveau" -#: sncfgtfs/models.py:311 +#: trainvel/gtfs/models.py:311 msgid "Wheelchair boarding" msgstr "Embarquement en fauteuil roulant" -#: sncfgtfs/models.py:319 +#: trainvel/gtfs/models.py:319 msgid "Platform code" msgstr "Code du quai" -#: sncfgtfs/models.py:338 +#: trainvel/gtfs/models.py:338 msgid "Stop" msgstr "Arrêt" -#: sncfgtfs/models.py:339 +#: trainvel/gtfs/models.py:339 msgid "Stops" msgstr "Arrêts" -#: sncfgtfs/models.py:350 sncfgtfs/models.py:572 sncfgtfs/models.py:713 -#: sncfgtfs/models.py:746 +#: trainvel/gtfs/models.py:350 trainvel/gtfs/models.py:572 +#: trainvel/gtfs/models.py:713 trainvel/gtfs/models.py:746 msgid "ID" msgstr "Identifiant" -#: sncfgtfs/models.py:365 +#: trainvel/gtfs/models.py:365 msgid "Route short name" msgstr "Nom court de la ligne" -#: sncfgtfs/models.py:370 +#: trainvel/gtfs/models.py:370 msgid "Route long name" msgstr "Nom long de la ligne" -#: sncfgtfs/models.py:376 +#: trainvel/gtfs/models.py:376 msgid "Route description" msgstr "Description de la ligne" -#: sncfgtfs/models.py:381 +#: trainvel/gtfs/models.py:381 msgid "Route type" msgstr "Type de ligne" -#: sncfgtfs/models.py:386 +#: trainvel/gtfs/models.py:386 msgid "Route URL" msgstr "URL de la ligne" -#: sncfgtfs/models.py:392 +#: trainvel/gtfs/models.py:392 msgid "Route color" msgstr "Couleur de la ligne" -#: sncfgtfs/models.py:398 +#: trainvel/gtfs/models.py:398 msgid "Route text color" msgstr "Couleur du texte de la ligne" -#: sncfgtfs/models.py:412 sncfgtfs/models.py:428 +#: trainvel/gtfs/models.py:412 trainvel/gtfs/models.py:428 msgid "Route" msgstr "Ligne" -#: sncfgtfs/models.py:413 +#: trainvel/gtfs/models.py:413 msgid "Routes" msgstr "Lignes" -#: sncfgtfs/models.py:422 +#: trainvel/gtfs/models.py:422 msgid "Trip ID" msgstr "ID du trajet" -#: sncfgtfs/models.py:435 sncfgtfs/models.py:719 +#: trainvel/gtfs/models.py:435 trainvel/gtfs/models.py:719 msgid "Service" msgstr "Service" -#: sncfgtfs/models.py:441 +#: trainvel/gtfs/models.py:441 msgid "Trip headsign" msgstr "Destination du trajet" -#: sncfgtfs/models.py:447 +#: trainvel/gtfs/models.py:447 msgid "Trip short name" msgstr "Nom court du trajet" -#: sncfgtfs/models.py:452 +#: trainvel/gtfs/models.py:452 msgid "Direction" msgstr "Direction" -#: sncfgtfs/models.py:459 +#: trainvel/gtfs/models.py:459 msgid "Block ID" msgstr "ID du bloc" -#: sncfgtfs/models.py:465 +#: trainvel/gtfs/models.py:465 msgid "Shape ID" msgstr "ID de la forme" -#: sncfgtfs/models.py:470 +#: trainvel/gtfs/models.py:470 msgid "Wheelchair accessible" msgstr "Accessible en fauteuil roulant" -#: sncfgtfs/models.py:477 +#: trainvel/gtfs/models.py:477 msgid "Bikes allowed" msgstr "Vélos autorisés" -#: sncfgtfs/models.py:500 sncfgtfs/models.py:509 sncfgtfs/models.py:552 -#: sncfgtfs/models.py:554 +#: trainvel/gtfs/models.py:500 trainvel/gtfs/models.py:509 +#: trainvel/gtfs/models.py:552 trainvel/gtfs/models.py:554 msgid "Unknown" msgstr "Inconnu" -#: sncfgtfs/models.py:557 +#: trainvel/gtfs/models.py:557 msgid "Origin → Destination" msgstr "Origine → Destination" -#: sncfgtfs/models.py:563 sncfgtfs/models.py:578 sncfgtfs/models.py:825 +#: trainvel/gtfs/models.py:563 trainvel/gtfs/models.py:578 +#: trainvel/gtfs/models.py:825 msgid "Trip" msgstr "Trajet" -#: sncfgtfs/models.py:564 +#: trainvel/gtfs/models.py:564 msgid "Trips" msgstr "Trajets" -#: sncfgtfs/models.py:583 sncfgtfs/models.py:876 +#: trainvel/gtfs/models.py:583 trainvel/gtfs/models.py:876 msgid "Arrival time" msgstr "Heure d'arrivée" -#: sncfgtfs/models.py:587 sncfgtfs/models.py:884 +#: trainvel/gtfs/models.py:587 trainvel/gtfs/models.py:884 msgid "Departure time" msgstr "Heure de départ" -#: sncfgtfs/models.py:598 +#: trainvel/gtfs/models.py:598 msgid "Stop sequence" msgstr "Séquence de l'arrêt" -#: sncfgtfs/models.py:603 +#: trainvel/gtfs/models.py:603 msgid "Stop headsign" msgstr "Destination de l'arrêt" -#: sncfgtfs/models.py:608 +#: trainvel/gtfs/models.py:608 msgid "Pickup type" msgstr "Type de prise en charge" -#: sncfgtfs/models.py:615 +#: trainvel/gtfs/models.py:615 msgid "Drop off type" msgstr "Type de dépose" -#: sncfgtfs/models.py:622 +#: trainvel/gtfs/models.py:622 msgid "Timepoint" msgstr "Ponctualité" -#: sncfgtfs/models.py:645 sncfgtfs/models.py:866 +#: trainvel/gtfs/models.py:645 trainvel/gtfs/models.py:866 msgid "Stop time" msgstr "Heure d'arrêt" -#: sncfgtfs/models.py:646 +#: trainvel/gtfs/models.py:646 msgid "Stop times" msgstr "Heures d'arrêt" -#: sncfgtfs/models.py:654 +#: trainvel/gtfs/models.py:654 msgid "Service ID" msgstr "ID du service" -#: sncfgtfs/models.py:658 +#: trainvel/gtfs/models.py:658 msgid "Monday" msgstr "Lundi" -#: sncfgtfs/models.py:662 +#: trainvel/gtfs/models.py:662 msgid "Tuesday" msgstr "Mardi" -#: sncfgtfs/models.py:666 +#: trainvel/gtfs/models.py:666 msgid "Wednesday" msgstr "Mercredi" -#: sncfgtfs/models.py:670 +#: trainvel/gtfs/models.py:670 msgid "Thursday" msgstr "Jeudi" -#: sncfgtfs/models.py:674 +#: trainvel/gtfs/models.py:674 msgid "Friday" msgstr "Vendredi" -#: sncfgtfs/models.py:678 +#: trainvel/gtfs/models.py:678 msgid "Saturday" msgstr "Samedi" -#: sncfgtfs/models.py:682 +#: trainvel/gtfs/models.py:682 msgid "Sunday" msgstr "Dimanche" -#: sncfgtfs/models.py:686 sncfgtfs/models.py:831 +#: trainvel/gtfs/models.py:686 trainvel/gtfs/models.py:831 msgid "Start date" msgstr "Date de début" -#: sncfgtfs/models.py:690 +#: trainvel/gtfs/models.py:690 msgid "End date" msgstr "Date de fin" -#: sncfgtfs/models.py:703 +#: trainvel/gtfs/models.py:703 msgid "Calendar" msgstr "Calendrier" -#: sncfgtfs/models.py:704 +#: trainvel/gtfs/models.py:704 msgid "Calendars" msgstr "Calendriers" -#: sncfgtfs/models.py:724 +#: trainvel/gtfs/models.py:724 msgid "Date" msgstr "Date" -#: sncfgtfs/models.py:728 +#: trainvel/gtfs/models.py:728 msgid "Exception type" msgstr "Type d'exception" -#: sncfgtfs/models.py:736 +#: trainvel/gtfs/models.py:736 msgid "Calendar date" msgstr "Date du calendrier" -#: sncfgtfs/models.py:737 +#: trainvel/gtfs/models.py:737 msgid "Calendar dates" msgstr "Dates du calendrier" -#: sncfgtfs/models.py:752 +#: trainvel/gtfs/models.py:752 msgid "From stop" msgstr "Depuis l'arrêt" -#: sncfgtfs/models.py:759 +#: trainvel/gtfs/models.py:759 msgid "To stop" msgstr "Jusqu'à l'arrêt" -#: sncfgtfs/models.py:764 +#: trainvel/gtfs/models.py:764 msgid "Transfer type" msgstr "Type de correspondance" -#: sncfgtfs/models.py:770 +#: trainvel/gtfs/models.py:770 msgid "Minimum transfer time" msgstr "Temps de correspondance minimum" -#: sncfgtfs/models.py:775 +#: trainvel/gtfs/models.py:775 msgid "Transfer" msgstr "Correspondance" -#: sncfgtfs/models.py:776 +#: trainvel/gtfs/models.py:776 msgid "Transfers" msgstr "Correspondances" -#: sncfgtfs/models.py:783 +#: trainvel/gtfs/models.py:783 msgid "Feed publisher name" msgstr "Nom de l'éditeur du flux" -#: sncfgtfs/models.py:787 +#: trainvel/gtfs/models.py:787 msgid "Feed publisher URL" msgstr "URL de l'éditeur du flux" -#: sncfgtfs/models.py:792 +#: trainvel/gtfs/models.py:792 msgid "Feed language" msgstr "Langue du flux" -#: sncfgtfs/models.py:796 +#: trainvel/gtfs/models.py:796 msgid "Feed start date" msgstr "Date de début du flux" -#: sncfgtfs/models.py:800 +#: trainvel/gtfs/models.py:800 msgid "Feed end date" msgstr "Date de fin du flux" -#: sncfgtfs/models.py:805 +#: trainvel/gtfs/models.py:805 msgid "Feed version" msgstr "Version du flux" -#: sncfgtfs/models.py:815 +#: trainvel/gtfs/models.py:815 msgid "Feed info" msgstr "Information du flux" -#: sncfgtfs/models.py:816 +#: trainvel/gtfs/models.py:816 msgid "Feed infos" msgstr "Informations du flux" -#: sncfgtfs/models.py:835 +#: trainvel/gtfs/models.py:835 msgid "Start time" msgstr "Heure de début" -#: sncfgtfs/models.py:839 sncfgtfs/models.py:888 +#: trainvel/gtfs/models.py:839 trainvel/gtfs/models.py:888 msgid "Schedule relationship" msgstr "Relation de la planification" -#: sncfgtfs/models.py:848 sncfgtfs/models.py:859 +#: trainvel/gtfs/models.py:848 trainvel/gtfs/models.py:859 msgid "Trip update" msgstr "Mise à jour du trajet" -#: sncfgtfs/models.py:849 +#: trainvel/gtfs/models.py:849 msgid "Trip updates" msgstr "Mises à jour des trajets" -#: sncfgtfs/models.py:872 +#: trainvel/gtfs/models.py:872 msgid "Arrival delay" msgstr "Retard à l'arrivée" -#: sncfgtfs/models.py:880 +#: trainvel/gtfs/models.py:880 msgid "Departure delay" msgstr "Retard au départ" -#: sncfgtfs/models.py:897 +#: trainvel/gtfs/models.py:897 msgid "Stop time update" msgstr "Mise à jour du temps d'arrêt" -#: sncfgtfs/models.py:898 +#: trainvel/gtfs/models.py:898 msgid "Stop time updates" msgstr "Mises à jour des temps d'arrêt" diff --git a/sncfgtfs/migrations/__init__.py b/trainvel/gtfs/management/__init__.py similarity index 100% rename from sncfgtfs/migrations/__init__.py rename to trainvel/gtfs/management/__init__.py diff --git a/trainvel/gtfs/management/commands/__init__.py b/trainvel/gtfs/management/commands/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sncfgtfs/management/commands/update_sncf_gtfs.py b/trainvel/gtfs/management/commands/update_sncf_gtfs.py similarity index 99% rename from sncfgtfs/management/commands/update_sncf_gtfs.py rename to trainvel/gtfs/management/commands/update_sncf_gtfs.py index 1e61dc0..be2e913 100644 --- a/sncfgtfs/management/commands/update_sncf_gtfs.py +++ b/trainvel/gtfs/management/commands/update_sncf_gtfs.py @@ -7,12 +7,12 @@ from zoneinfo import ZoneInfo import requests from django.core.management import BaseCommand -from sncfgtfs.models import Agency, Calendar, CalendarDate, FeedInfo, GTFSFeed, Route, Stop, StopTime, Transfer, Trip, \ +from trainvel.gtfs.models import Agency, Calendar, CalendarDate, FeedInfo, GTFSFeed, Route, Stop, StopTime, Transfer, Trip, \ PickupType class Command(BaseCommand): - help = "Update the SNCF GTFS database." + help = "Update the Trainvel GTFS database." def add_arguments(self, parser): parser.add_argument('--debug', '-d', action='store_true', help="Activate debug mode") diff --git a/sncfgtfs/management/commands/update_sncf_gtfs_rt.py b/trainvel/gtfs/management/commands/update_sncf_gtfs_rt.py similarity index 97% rename from sncfgtfs/management/commands/update_sncf_gtfs_rt.py rename to trainvel/gtfs/management/commands/update_sncf_gtfs_rt.py index 25851a3..0adaad6 100644 --- a/sncfgtfs/management/commands/update_sncf_gtfs_rt.py +++ b/trainvel/gtfs/management/commands/update_sncf_gtfs_rt.py @@ -3,16 +3,15 @@ from zoneinfo import ZoneInfo import requests from django.core.management import BaseCommand -from django.db.models import Q -from sncfgtfs.gtfs_realtime_pb2 import FeedMessage, TripUpdate as GTFSTripUpdate -from sncfgtfs.models import Agency, Calendar, CalendarDate, ExceptionType, GTFSFeed, LocationType, PickupType, \ +from trainvel.gtfs.gtfs_realtime_pb2 import FeedMessage, TripUpdate as GTFSTripUpdate +from trainvel.gtfs.models import Agency, Calendar, CalendarDate, ExceptionType, GTFSFeed, PickupType, \ Route, RouteType, Stop, StopScheduleRelationship, StopTime, StopTimeUpdate, \ Trip, TripUpdate, TripScheduleRelationship class Command(BaseCommand): - help = "Update the SNCF GTFS Realtime database." + help = "Update the Trainvel GTFS Realtime database." def add_arguments(self, parser): parser.add_argument('--debug', '-d', action='store_true', help="Activate debug mode") diff --git a/sncfgtfs/migrations/0001_initial.py b/trainvel/gtfs/migrations/0001_initial.py similarity index 93% rename from sncfgtfs/migrations/0001_initial.py rename to trainvel/gtfs/migrations/0001_initial.py index 57caf90..f46393d 100644 --- a/sncfgtfs/migrations/0001_initial.py +++ b/trainvel/gtfs/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 5.0.1 on 2024-05-09 17:16 +# Generated by Django 5.0.1 on 2024-05-09 17:34 import django.db.models.deletion from django.db import migrations, models @@ -263,7 +263,7 @@ class Migration(migrations.Migration): "verbose_name_plural": "GTFS feeds", "ordering": ("country", "name"), "indexes": [ - models.Index(fields=["name"], name="sncfgtfs_gt_name_43c613_idx") + models.Index(fields=["name"], name="gtfs_gtfsfe_name_aabd02_idx") ], }, ), @@ -292,7 +292,7 @@ class Migration(migrations.Migration): "gtfs_feed", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, - to="sncfgtfs.gtfsfeed", + to="gtfs.gtfsfeed", verbose_name="GTFS feed", ), ), @@ -343,7 +343,7 @@ class Migration(migrations.Migration): "gtfs_feed", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, - to="sncfgtfs.gtfsfeed", + to="gtfs.gtfsfeed", verbose_name="GTFS feed", ), ), @@ -419,7 +419,7 @@ class Migration(migrations.Migration): null=True, on_delete=django.db.models.deletion.CASCADE, related_name="routes", - to="sncfgtfs.agency", + to="gtfs.agency", verbose_name="Agency", ), ), @@ -427,7 +427,7 @@ class Migration(migrations.Migration): "gtfs_feed", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, - to="sncfgtfs.gtfsfeed", + to="gtfs.gtfsfeed", verbose_name="GTFS feed", ), ), @@ -522,7 +522,7 @@ class Migration(migrations.Migration): "gtfs_feed", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, - to="sncfgtfs.gtfsfeed", + to="gtfs.gtfsfeed", verbose_name="GTFS feed", ), ), @@ -533,7 +533,7 @@ class Migration(migrations.Migration): null=True, on_delete=django.db.models.deletion.PROTECT, related_name="children", - to="sncfgtfs.stop", + to="gtfs.stop", verbose_name="Parent station", ), ), @@ -554,7 +554,7 @@ class Migration(migrations.Migration): primary_key=True, related_name="update", serialize=False, - to="sncfgtfs.stoptime", + to="gtfs.stoptime", verbose_name="Stop time", ), ), @@ -591,7 +591,7 @@ class Migration(migrations.Migration): field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="stop_times", - to="sncfgtfs.stop", + to="gtfs.stop", verbose_name="Stop ID", ), ), @@ -631,7 +631,7 @@ class Migration(migrations.Migration): models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="transfers_from", - to="sncfgtfs.stop", + to="gtfs.stop", verbose_name="From stop", ), ), @@ -640,7 +640,7 @@ class Migration(migrations.Migration): models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="transfers_to", - to="sncfgtfs.stop", + to="gtfs.stop", verbose_name="To stop", ), ), @@ -661,7 +661,7 @@ class Migration(migrations.Migration): primary_key=True, related_name="update", serialize=False, - to="sncfgtfs.trip", + to="gtfs.trip", verbose_name="Trip", ), ), @@ -695,7 +695,7 @@ class Migration(migrations.Migration): name="gtfs_feed", field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, - to="sncfgtfs.gtfsfeed", + to="gtfs.gtfsfeed", verbose_name="GTFS feed", ), ), @@ -705,7 +705,7 @@ class Migration(migrations.Migration): field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="trips", - to="sncfgtfs.route", + to="gtfs.route", verbose_name="Route", ), ), @@ -715,7 +715,7 @@ class Migration(migrations.Migration): field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="trips", - to="sncfgtfs.calendar", + to="gtfs.calendar", verbose_name="Service", ), ), @@ -725,7 +725,7 @@ class Migration(migrations.Migration): field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="stop_times", - to="sncfgtfs.trip", + to="gtfs.trip", verbose_name="Trip", ), ), @@ -754,7 +754,7 @@ class Migration(migrations.Migration): models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="dates", - to="sncfgtfs.calendar", + to="gtfs.calendar", verbose_name="Service", ), ), @@ -765,9 +765,9 @@ class Migration(migrations.Migration): "ordering": ("id",), "indexes": [ models.Index( - fields=["service"], name="sncfgtfs_ca_service_837ec3_idx" + fields=["service"], name="gtfs_calend_service_211472_idx" ), - models.Index(fields=["date"], name="sncfgtfs_ca_date_6c4732_idx"), + models.Index(fields=["date"], name="gtfs_calend_date_e90040_idx"), ], }, ), @@ -804,7 +804,7 @@ class Migration(migrations.Migration): "gtfs_feed", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, - to="sncfgtfs.gtfsfeed", + to="gtfs.gtfsfeed", verbose_name="GTFS feed", ), ), @@ -815,7 +815,7 @@ class Migration(migrations.Migration): "ordering": ("publisher_name",), "indexes": [ models.Index( - fields=["gtfs_feed"], name="sncfgtfs_fe_gtfs_fe_b5e3d7_idx" + fields=["gtfs_feed"], name="gtfs_feedin_gtfs_fe_73554b_idx" ) ], }, @@ -823,42 +823,42 @@ class Migration(migrations.Migration): migrations.AddIndex( model_name="calendar", index=models.Index( - fields=["gtfs_feed"], name="sncfgtfs_ca_gtfs_fe_061858_idx" + fields=["gtfs_feed"], name="gtfs_calend_gtfs_fe_ff03d1_idx" ), ), migrations.AddIndex( model_name="agency", - index=models.Index(fields=["name"], name="sncfgtfs_ag_name_fe3bcd_idx"), + index=models.Index(fields=["name"], name="gtfs_agency_name_a6dd2b_idx"), ), migrations.AddIndex( model_name="agency", index=models.Index( - fields=["gtfs_feed"], name="sncfgtfs_ag_gtfs_fe_588658_idx" + fields=["gtfs_feed"], name="gtfs_agency_gtfs_fe_86414c_idx" ), ), migrations.AddIndex( model_name="route", index=models.Index( - fields=["gtfs_feed"], name="sncfgtfs_ro_gtfs_fe_818b6e_idx" + fields=["gtfs_feed"], name="gtfs_route_gtfs_fe_c6ac59_idx" ), ), migrations.AddIndex( model_name="stop", - index=models.Index(fields=["name"], name="sncfgtfs_st_name_63b266_idx"), + index=models.Index(fields=["name"], name="gtfs_stop_name_1c87d7_idx"), ), migrations.AddIndex( model_name="stop", - index=models.Index(fields=["code"], name="sncfgtfs_st_code_5b6ba9_idx"), + index=models.Index(fields=["code"], name="gtfs_stop_code_5f4ebc_idx"), ), migrations.AddIndex( model_name="stop", index=models.Index( - fields=["gtfs_feed"], name="sncfgtfs_st_gtfs_fe_a59997_idx" + fields=["gtfs_feed"], name="gtfs_stop_gtfs_fe_0e17d6_idx" ), ), migrations.AddIndex( model_name="tripupdate", - index=models.Index(fields=["trip"], name="sncfgtfs_tr_trip_id_56a7e3_idx"), + index=models.Index(fields=["trip"], name="gtfs_tripup_trip_id_b3ee0e_idx"), ), migrations.AlterUniqueTogether( name="tripupdate", @@ -870,38 +870,38 @@ class Migration(migrations.Migration): field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="stop_time_updates", - to="sncfgtfs.tripupdate", + to="gtfs.tripupdate", verbose_name="Trip update", ), ), migrations.AddIndex( model_name="trip", - index=models.Index(fields=["route"], name="sncfgtfs_tr_route_i_003721_idx"), + index=models.Index(fields=["route"], name="gtfs_trip_route_i_6d85d9_idx"), ), migrations.AddIndex( model_name="trip", index=models.Index( - fields=["gtfs_feed"], name="sncfgtfs_tr_gtfs_fe_55db7e_idx" + fields=["gtfs_feed"], name="gtfs_trip_gtfs_fe_e63eac_idx" ), ), migrations.AddIndex( model_name="stoptime", - index=models.Index(fields=["stop"], name="sncfgtfs_st_stop_id_e3012f_idx"), + index=models.Index(fields=["stop"], name="gtfs_stopti_stop_id_64a4e3_idx"), ), migrations.AddIndex( model_name="stoptime", - index=models.Index(fields=["trip"], name="sncfgtfs_st_trip_id_751dca_idx"), + index=models.Index(fields=["trip"], name="gtfs_stopti_trip_id_bec7fe_idx"), ), migrations.AddIndex( model_name="stoptimeupdate", index=models.Index( - fields=["trip_update"], name="sncfgtfs_st_trip_up_a7fabf_idx" + fields=["trip_update"], name="gtfs_stopti_trip_up_ffe901_idx" ), ), migrations.AddIndex( model_name="stoptimeupdate", index=models.Index( - fields=["stop_time"], name="sncfgtfs_st_stop_ti_96270f_idx" + fields=["stop_time"], name="gtfs_stopti_stop_ti_4f2c63_idx" ), ), migrations.AlterUniqueTogether( diff --git a/trainvel/gtfs/migrations/__init__.py b/trainvel/gtfs/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sncfgtfs/models.py b/trainvel/gtfs/models.py similarity index 100% rename from sncfgtfs/models.py rename to trainvel/gtfs/models.py diff --git a/sncfgtfs/tests.py b/trainvel/gtfs/tests.py similarity index 100% rename from sncfgtfs/tests.py rename to trainvel/gtfs/tests.py diff --git a/sncf/settings.py b/trainvel/settings.py similarity index 95% rename from sncf/settings.py rename to trainvel/settings.py index e2578a8..7dbc8bd 100644 --- a/sncf/settings.py +++ b/trainvel/settings.py @@ -1,5 +1,5 @@ """ -Django settings for sncf project. +Django settings for trainvel project. Generated by 'django-admin startproject' using Django 5.0.1. @@ -44,8 +44,8 @@ INSTALLED_APPS = [ "django_filters", "rest_framework", - "sncf.api", - "sncfgtfs", + "trainvel.api", + "trainvel.gtfs", ] MIDDLEWARE = [ @@ -69,7 +69,7 @@ CORS_ALLOW_HEADERS = ( 'Cache-Control', ) -ROOT_URLCONF = "sncf.urls" +ROOT_URLCONF = "trainvel.urls" TEMPLATES = [ { @@ -87,7 +87,7 @@ TEMPLATES = [ }, ] -WSGI_APPLICATION = "sncf.wsgi.application" +WSGI_APPLICATION = "trainvel.wsgi.application" # Database diff --git a/sncf/settings_local_example.py b/trainvel/settings_local_example.py similarity index 84% rename from sncf/settings_local_example.py rename to trainvel/settings_local_example.py index f3f2f62..5e12bf5 100644 --- a/sncf/settings_local_example.py +++ b/trainvel/settings_local_example.py @@ -11,8 +11,8 @@ CORS_ALLOWED_ORIGINS = [ DATABASES = { "default": { "ENGINE": "django.db.backends.postgresql", - "NAME": "sncf", - "USER": "sncf", + "NAME": "trainvel", + "USER": "trainvel", "PASSWORD": "CHANGE ME", "HOST": "localhost", "PORT": "5432", diff --git a/sncf/urls.py b/trainvel/urls.py similarity index 92% rename from sncf/urls.py rename to trainvel/urls.py index e1dae15..c784a3c 100644 --- a/sncf/urls.py +++ b/trainvel/urls.py @@ -1,5 +1,5 @@ """ -URL configuration for sncf project. +URL configuration for trainvel project. The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/5.0/topics/http/urls/ @@ -18,7 +18,7 @@ from django.contrib import admin from django.urls import path, include from rest_framework import routers -from sncf.api.views import AgencyViewSet, StopViewSet, RouteViewSet, TripViewSet, StopTimeViewSet, \ +from trainvel.api.views import AgencyViewSet, StopViewSet, RouteViewSet, TripViewSet, StopTimeViewSet, \ CalendarViewSet, CalendarDateViewSet, TransferViewSet, FeedInfoViewSet, NextDeparturesViewSet, NextArrivalsViewSet, \ TripUpdateViewSet, StopTimeUpdateViewSet diff --git a/sncf/wsgi.py b/trainvel/wsgi.py similarity index 73% rename from sncf/wsgi.py rename to trainvel/wsgi.py index b9b6ba8..58e21dc 100644 --- a/sncf/wsgi.py +++ b/trainvel/wsgi.py @@ -1,5 +1,5 @@ """ -WSGI config for sncf project. +WSGI config for trainvel project. It exposes the WSGI callable as a module-level variable named ``application``. @@ -11,6 +11,6 @@ import os from django.core.wsgi import get_wsgi_application -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "sncf.settings") +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "trainvel.settings") application = get_wsgi_application()