From 36fbd469091e72d8986074ace7dd761b89569150 Mon Sep 17 00:00:00 2001 From: Viner Abubakirov Date: Wed, 10 Dec 2025 14:18:04 +0500 Subject: [PATCH] Init --- .python-version | 1 + music_storage/core/__init__.py | 0 music_storage/core/admin.py | 3 + music_storage/core/apps.py | 5 + .../core/middleware/current_request.py | 34 +++ music_storage/core/migrations/__init__.py | 0 music_storage/core/models.py | 42 ++++ music_storage/core/tests.py | 3 + music_storage/core/views.py | 3 + music_storage/manage.py | 22 ++ music_storage/music/__init__.py | 0 music_storage/music/admin.py | 29 +++ music_storage/music/apps.py | 5 + .../music/migrations/0001_initial.py | 63 ++++++ music_storage/music/migrations/__init__.py | 0 music_storage/music/models.py | 27 +++ music_storage/music/tests.py | 3 + music_storage/music/urls.py | 8 + music_storage/music/views.py | 11 + music_storage/music_storage/__init__.py | 0 music_storage/music_storage/asgi.py | 16 ++ music_storage/music_storage/settings.py | 144 +++++++++++++ music_storage/music_storage/urls.py | 23 ++ music_storage/music_storage/wsgi.py | 16 ++ music_storage/templates/base.html | 0 music_storage/templates/music/track_list.html | 198 ++++++++++++++++++ pyproject.toml | 11 + uv.lock | 152 ++++++++++++++ 28 files changed, 819 insertions(+) create mode 100644 .python-version create mode 100644 music_storage/core/__init__.py create mode 100644 music_storage/core/admin.py create mode 100644 music_storage/core/apps.py create mode 100644 music_storage/core/middleware/current_request.py create mode 100644 music_storage/core/migrations/__init__.py create mode 100644 music_storage/core/models.py create mode 100644 music_storage/core/tests.py create mode 100644 music_storage/core/views.py create mode 100755 music_storage/manage.py create mode 100644 music_storage/music/__init__.py create mode 100644 music_storage/music/admin.py create mode 100644 music_storage/music/apps.py create mode 100644 music_storage/music/migrations/0001_initial.py create mode 100644 music_storage/music/migrations/__init__.py create mode 100644 music_storage/music/models.py create mode 100644 music_storage/music/tests.py create mode 100644 music_storage/music/urls.py create mode 100644 music_storage/music/views.py create mode 100644 music_storage/music_storage/__init__.py create mode 100644 music_storage/music_storage/asgi.py create mode 100644 music_storage/music_storage/settings.py create mode 100644 music_storage/music_storage/urls.py create mode 100644 music_storage/music_storage/wsgi.py create mode 100644 music_storage/templates/base.html create mode 100644 music_storage/templates/music/track_list.html create mode 100644 pyproject.toml create mode 100644 uv.lock diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..24ee5b1 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.13 diff --git a/music_storage/core/__init__.py b/music_storage/core/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/music_storage/core/admin.py b/music_storage/core/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/music_storage/core/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/music_storage/core/apps.py b/music_storage/core/apps.py new file mode 100644 index 0000000..26f78a8 --- /dev/null +++ b/music_storage/core/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class CoreConfig(AppConfig): + name = 'core' diff --git a/music_storage/core/middleware/current_request.py b/music_storage/core/middleware/current_request.py new file mode 100644 index 0000000..cccf745 --- /dev/null +++ b/music_storage/core/middleware/current_request.py @@ -0,0 +1,34 @@ +import threading +from django.utils.deprecation import MiddlewareMixin + + +_thread_local = threading.local() + + +def get_current_request(): + """Retrieve the current request stored in thread-local storage.""" + return getattr(_thread_local, "request", None) + + +def get_current_user(): + """Retrieve the user from the current request.""" + request = get_current_request() + if request: + return getattr(request, "user", None) + return None + + +class CurrentRequestMiddleware(MiddlewareMixin): + """Middleware to store the current request in thread-local storage. + + Args: + MiddlewareMixin : Base class for Django middleware. + """ + + def process_request(self, request): + _thread_local.request = request + + def process_response(self, request, response): + if hasattr(_thread_local, "request"): + del _thread_local.request + return response diff --git a/music_storage/core/migrations/__init__.py b/music_storage/core/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/music_storage/core/models.py b/music_storage/core/models.py new file mode 100644 index 0000000..e10fb61 --- /dev/null +++ b/music_storage/core/models.py @@ -0,0 +1,42 @@ +from django.db import models +from django.contrib.auth import get_user_model +from core.middleware.current_request import get_current_user + + +UserModel = get_user_model() + + +class BaseModel(models.Model): + """Abstract base model that includes created_by and updated_by fields. + + The fields are automatically populated with the current user from the request. + """ + + created_by = models.ForeignKey( + UserModel, + on_delete=models.SET_NULL, + null=True, + blank=True, + related_name="%(class)s_created", + editable=False, + ) + updated_by = models.ForeignKey( + UserModel, + on_delete=models.SET_NULL, + null=True, + blank=True, + related_name="%(class)s_updated", + editable=False, + ) + created_at = models.DateTimeField(auto_now_add=True) + updated_at = models.DateTimeField(auto_now=True) + + class Meta: + abstract = True + + def save(self, *args, **kwargs): + current_user = get_current_user() + if not self.pk and not self.created_by: + self.created_by = current_user + self.updated_by = current_user + super().save(*args, **kwargs) diff --git a/music_storage/core/tests.py b/music_storage/core/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/music_storage/core/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/music_storage/core/views.py b/music_storage/core/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/music_storage/core/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/music_storage/manage.py b/music_storage/manage.py new file mode 100755 index 0000000..522c782 --- /dev/null +++ b/music_storage/manage.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python +"""Django's command-line utility for administrative tasks.""" +import os +import sys + + +def main(): + """Run administrative tasks.""" + os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'music_storage.settings') + try: + from django.core.management import execute_from_command_line + except ImportError as exc: + raise ImportError( + "Couldn't import Django. Are you sure it's installed and " + "available on your PYTHONPATH environment variable? Did you " + "forget to activate a virtual environment?" + ) from exc + execute_from_command_line(sys.argv) + + +if __name__ == '__main__': + main() diff --git a/music_storage/music/__init__.py b/music_storage/music/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/music_storage/music/admin.py b/music_storage/music/admin.py new file mode 100644 index 0000000..2378241 --- /dev/null +++ b/music_storage/music/admin.py @@ -0,0 +1,29 @@ +from django.contrib import admin + +from music.models import Track, Album, Artist + + +@admin.register(Track) +class TrackAdmin(admin.ModelAdmin): + class Media: + js = ('admin/js/upload_progress.js',) + css = { + 'all': ('admin/css/upload_progress.css',) + } + + list_display = ("artist__name", "title", "created_by", "created_at") + search_fields = ("title", "artist__name", "album__name") + list_filter = ("artist__name",) + + +@admin.register(Album) +class AlbumAdmin(admin.ModelAdmin): + list_display = ("artist__name", "name") + search_fields = ("artist__name", "name") + list_filter = ("artist__name",) + + +@admin.register(Artist) +class ArtistAdmin(admin.ModelAdmin): + list_display = ("name",) + search_fields = ("name",) diff --git a/music_storage/music/apps.py b/music_storage/music/apps.py new file mode 100644 index 0000000..d909c7f --- /dev/null +++ b/music_storage/music/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class MusicConfig(AppConfig): + name = 'music' diff --git a/music_storage/music/migrations/0001_initial.py b/music_storage/music/migrations/0001_initial.py new file mode 100644 index 0000000..df7b73c --- /dev/null +++ b/music_storage/music/migrations/0001_initial.py @@ -0,0 +1,63 @@ +# Generated by Django 6.0 on 2025-12-10 07:50 + +import django.db.models.deletion +from django.conf import settings +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.CreateModel( + name='Artist', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created_at', models.DateTimeField(auto_now_add=True)), + ('updated_at', models.DateTimeField(auto_now=True)), + ('name', models.CharField(max_length=200)), + ('created_by', models.ForeignKey(blank=True, editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='%(class)s_created', to=settings.AUTH_USER_MODEL)), + ('updated_by', models.ForeignKey(blank=True, editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='%(class)s_updated', to=settings.AUTH_USER_MODEL)), + ], + options={ + 'abstract': False, + }, + ), + migrations.CreateModel( + name='Album', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created_at', models.DateTimeField(auto_now_add=True)), + ('updated_at', models.DateTimeField(auto_now=True)), + ('name', models.CharField(max_length=200)), + ('created_by', models.ForeignKey(blank=True, editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='%(class)s_created', to=settings.AUTH_USER_MODEL)), + ('updated_by', models.ForeignKey(blank=True, editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='%(class)s_updated', to=settings.AUTH_USER_MODEL)), + ('artist', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='music.artist')), + ], + options={ + 'abstract': False, + }, + ), + migrations.CreateModel( + name='Track', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created_at', models.DateTimeField(auto_now_add=True)), + ('updated_at', models.DateTimeField(auto_now=True)), + ('title', models.CharField(max_length=200)), + ('file', models.FileField(upload_to='music/')), + ('album', models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_DEFAULT, to='music.album')), + ('artist', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='music.artist')), + ('created_by', models.ForeignKey(blank=True, editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='%(class)s_created', to=settings.AUTH_USER_MODEL)), + ('updated_by', models.ForeignKey(blank=True, editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='%(class)s_updated', to=settings.AUTH_USER_MODEL)), + ], + options={ + 'abstract': False, + }, + ), + ] diff --git a/music_storage/music/migrations/__init__.py b/music_storage/music/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/music_storage/music/models.py b/music_storage/music/models.py new file mode 100644 index 0000000..ec1d6c7 --- /dev/null +++ b/music_storage/music/models.py @@ -0,0 +1,27 @@ +from django.db import models +from core.models import BaseModel + + +class Artist(BaseModel): + name = models.CharField(max_length=200) + + def __str__(self): + return f"{self.name}" + + +class Album(BaseModel): + artist = models.ForeignKey(Artist, on_delete=models.CASCADE) + name = models.CharField(max_length=200) + + def __str__(self): + return f"{self.artist} - {self.name}" + + +class Track(BaseModel): + title = models.CharField(max_length=200) + artist = models.ForeignKey(Artist, on_delete=models.CASCADE) + album = models.ForeignKey(Album, blank=True, null=True, default=None, on_delete=models.SET_DEFAULT) + file = models.FileField(upload_to="music/") + + def __str__(self): + return f"{self.artist} - {self.title}" diff --git a/music_storage/music/tests.py b/music_storage/music/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/music_storage/music/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/music_storage/music/urls.py b/music_storage/music/urls.py new file mode 100644 index 0000000..e4fcd8f --- /dev/null +++ b/music_storage/music/urls.py @@ -0,0 +1,8 @@ +from django.urls import path + +from music.views import TrackListView + + +urlpatterns = [ + path("", TrackListView.as_view(), name="track_list"), +] diff --git a/music_storage/music/views.py b/music_storage/music/views.py new file mode 100644 index 0000000..41bda82 --- /dev/null +++ b/music_storage/music/views.py @@ -0,0 +1,11 @@ +from django import views as django_views +from django.shortcuts import render +from django.http.request import HttpRequest + +from music.models import Track + + +class TrackListView(django_views.View): + def get(self, request: HttpRequest, *args, **kwargs): + tracks = Track.objects.all() + return render(request, "music/track_list.html", {"tracks": tracks}) diff --git a/music_storage/music_storage/__init__.py b/music_storage/music_storage/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/music_storage/music_storage/asgi.py b/music_storage/music_storage/asgi.py new file mode 100644 index 0000000..07dc2bc --- /dev/null +++ b/music_storage/music_storage/asgi.py @@ -0,0 +1,16 @@ +""" +ASGI config for music_storage project. + +It exposes the ASGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/6.0/howto/deployment/asgi/ +""" + +import os + +from django.core.asgi import get_asgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'music_storage.settings') + +application = get_asgi_application() diff --git a/music_storage/music_storage/settings.py b/music_storage/music_storage/settings.py new file mode 100644 index 0000000..76b8d3f --- /dev/null +++ b/music_storage/music_storage/settings.py @@ -0,0 +1,144 @@ +""" +Django settings for music_storage project. + +Generated by 'django-admin startproject' using Django 6.0. + +For more information on this file, see +https://docs.djangoproject.com/en/6.0/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/6.0/ref/settings/ +""" + +from pathlib import Path + +# Build paths inside the project like this: BASE_DIR / 'subdir'. +BASE_DIR = Path(__file__).resolve().parent.parent + + +# Quick-start development settings - unsuitable for production +# See https://docs.djangoproject.com/en/6.0/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = 'django-insecure-=*m3r8o(%h3@7tl2-((k&t%%k)m&*b)i^4w#ixl0i$#6!gtg&+' + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +ALLOWED_HOSTS = ["*"] + + +# Application definition + +INSTALLED_APPS = [ + 'django.contrib.admin', + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.messages', + 'django.contrib.staticfiles', + # External apps + 'storages', + # Custom apps + 'core', + 'music', +] + +MIDDLEWARE = [ + 'django.middleware.security.SecurityMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', + # Custom middlewares + "core.middleware.current_request.CurrentRequestMiddleware", +] + +ROOT_URLCONF = 'music_storage.urls' + +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': [BASE_DIR / 'templates',], + 'APP_DIRS': True, + 'OPTIONS': { + 'context_processors': [ + 'django.template.context_processors.request', + 'django.contrib.auth.context_processors.auth', + 'django.contrib.messages.context_processors.messages', + ], + }, + }, +] + +WSGI_APPLICATION = 'music_storage.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/6.0/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': BASE_DIR / 'db.sqlite3', + } +} + + +# Password validation +# https://docs.djangoproject.com/en/6.0/ref/settings/#auth-password-validators + +AUTH_PASSWORD_VALIDATORS = [ + { + 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', + }, +] + + +# Internationalization +# https://docs.djangoproject.com/en/6.0/topics/i18n/ + +LANGUAGE_CODE = 'en-us' + +TIME_ZONE = 'UTC' + +USE_I18N = True + +USE_TZ = True + + +# Static files (CSS, JavaScript, Images) +# https://docs.djangoproject.com/en/6.0/howto/static-files/ + +STATIC_URL = 'static/' + +STORAGES = { + # default storage for user uploads + "default": { + "BACKEND": "storages.backends.s3.S3Storage", + "OPTIONS": { + "access_key": "admin", + "secret_key": "admintestpassword", + "bucket_name": "dev-bucket", + "endpoint_url": "http://192.168.88.252:9000", + "region_name": "us-east-1", + "signature_version": "s3v4", + } + }, + + # static files — если нужно, может остаться на FileSystemStorage + "staticfiles": { + "BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage", + } +} diff --git a/music_storage/music_storage/urls.py b/music_storage/music_storage/urls.py new file mode 100644 index 0000000..3524e89 --- /dev/null +++ b/music_storage/music_storage/urls.py @@ -0,0 +1,23 @@ +""" +URL configuration for music_storage project. + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/6.0/topics/http/urls/ +Examples: +Function views + 1. Add an import: from my_app import views + 2. Add a URL to urlpatterns: path('', views.home, name='home') +Class-based views + 1. Add an import: from other_app.views import Home + 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') +Including another URLconf + 1. Import the include() function: from django.urls import include, path + 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) +""" +from django.contrib import admin +from django.urls import path, include + +urlpatterns = [ + path('admin/', admin.site.urls), + path('', include("music.urls")), +] diff --git a/music_storage/music_storage/wsgi.py b/music_storage/music_storage/wsgi.py new file mode 100644 index 0000000..29605f4 --- /dev/null +++ b/music_storage/music_storage/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for music_storage project. + +It exposes the WSGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/6.0/howto/deployment/wsgi/ +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'music_storage.settings') + +application = get_wsgi_application() diff --git a/music_storage/templates/base.html b/music_storage/templates/base.html new file mode 100644 index 0000000..e69de29 diff --git a/music_storage/templates/music/track_list.html b/music_storage/templates/music/track_list.html new file mode 100644 index 0000000..ed0a1c2 --- /dev/null +++ b/music_storage/templates/music/track_list.html @@ -0,0 +1,198 @@ + + + + + + Музыкальный сервис + + + + +
+
+

Музыкальный сервис

+

Ваша коллекция треков

+
+ + + + +
+ + diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..8807fdf --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,11 @@ +[project] +name = "music-storage" +version = "0.1.0" +description = "Add your description here" +readme = "README.md" +requires-python = ">=3.13" +dependencies = [ + "boto3>=1.42.6", + "django>=6.0", + "django-storages>=1.14.6", +] diff --git a/uv.lock b/uv.lock new file mode 100644 index 0000000..cc5d2c0 --- /dev/null +++ b/uv.lock @@ -0,0 +1,152 @@ +version = 1 +revision = 2 +requires-python = ">=3.13" + +[[package]] +name = "asgiref" +version = "3.11.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/76/b9/4db2509eabd14b4a8c71d1b24c8d5734c52b8560a7b1e1a8b56c8d25568b/asgiref-3.11.0.tar.gz", hash = "sha256:13acff32519542a1736223fb79a715acdebe24286d98e8b164a73085f40da2c4", size = 37969, upload-time = "2025-11-19T15:32:20.106Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/91/be/317c2c55b8bbec407257d45f5c8d1b6867abc76d12043f2d3d58c538a4ea/asgiref-3.11.0-py3-none-any.whl", hash = "sha256:1db9021efadb0d9512ce8ffaf72fcef601c7b73a8807a1bb2ef143dc6b14846d", size = 24096, upload-time = "2025-11-19T15:32:19.004Z" }, +] + +[[package]] +name = "boto3" +version = "1.42.6" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "botocore" }, + { name = "jmespath" }, + { name = "s3transfer" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/06/a8/e7a408127d61569df097d6c128775ffa3e609a023d4461686fd85fe5eef4/boto3-1.42.6.tar.gz", hash = "sha256:11dab889a24f378af6c93afd4aa06d7cace3866cbf02e78c7a77e9a7fb41967a", size = 112859, upload-time = "2025-12-09T23:00:33.685Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ee/dd/af36b27e9fc004cd8ae2290d6d76a8de34d098d17a3718ae875e5e856ab1/boto3-1.42.6-py3-none-any.whl", hash = "sha256:69ff5cf6431fe7870da009f23aceabb20d56b4c9852ba9a808eaf6cc30ae02a5", size = 140574, upload-time = "2025-12-09T23:00:31.355Z" }, +] + +[[package]] +name = "botocore" +version = "1.42.6" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "jmespath" }, + { name = "python-dateutil" }, + { name = "urllib3" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/a6/28/e1ad336dd409e3cde0644cbba644056248e873b77129502f81581f5a222f/botocore-1.42.6.tar.gz", hash = "sha256:ab389c6874dfbdc4c18de9b4a02d300cb6c7f6f2d4622c73e5965aeef80e570d", size = 14851572, upload-time = "2025-12-09T23:00:21.993Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/6c/1e/545d3ca599aea7a7aaad23735ae2d1c7280557e115086208d68af1621f93/botocore-1.42.6-py3-none-any.whl", hash = "sha256:c4aebdc391f3542270ebea8b8f0060fde514f6441de207dce862ed759887607e", size = 14527177, upload-time = "2025-12-09T23:00:17.197Z" }, +] + +[[package]] +name = "django" +version = "6.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "asgiref" }, + { name = "sqlparse" }, + { name = "tzdata", marker = "sys_platform == 'win32'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/15/75/19762bfc4ea556c303d9af8e36f0cd910ab17dff6c8774644314427a2120/django-6.0.tar.gz", hash = "sha256:7b0c1f50c0759bbe6331c6a39c89ae022a84672674aeda908784617ef47d8e26", size = 10932418, upload-time = "2025-12-03T16:26:21.878Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d7/ae/f19e24789a5ad852670d6885f5480f5e5895576945fcc01817dfd9bc002a/django-6.0-py3-none-any.whl", hash = "sha256:1cc2c7344303bbfb7ba5070487c17f7fc0b7174bbb0a38cebf03c675f5f19b6d", size = 8339181, upload-time = "2025-12-03T16:26:16.231Z" }, +] + +[[package]] +name = "django-storages" +version = "1.14.6" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "django" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ff/d6/2e50e378fff0408d558f36c4acffc090f9a641fd6e084af9e54d45307efa/django_storages-1.14.6.tar.gz", hash = "sha256:7a25ce8f4214f69ac9c7ce87e2603887f7ae99326c316bc8d2d75375e09341c9", size = 87587, upload-time = "2025-04-02T02:34:55.103Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/1f/21/3cedee63417bc5553eed0c204be478071c9ab208e5e259e97287590194f1/django_storages-1.14.6-py3-none-any.whl", hash = "sha256:11b7b6200e1cb5ffcd9962bd3673a39c7d6a6109e8096f0e03d46fab3d3aabd9", size = 33095, upload-time = "2025-04-02T02:34:53.291Z" }, +] + +[[package]] +name = "jmespath" +version = "1.0.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/00/2a/e867e8531cf3e36b41201936b7fa7ba7b5702dbef42922193f05c8976cd6/jmespath-1.0.1.tar.gz", hash = "sha256:90261b206d6defd58fdd5e85f478bf633a2901798906be2ad389150c5c60edbe", size = 25843, upload-time = "2022-06-17T18:00:12.224Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/31/b4/b9b800c45527aadd64d5b442f9b932b00648617eb5d63d2c7a6587b7cafc/jmespath-1.0.1-py3-none-any.whl", hash = "sha256:02e2e4cc71b5bcab88332eebf907519190dd9e6e82107fa7f83b1003a6252980", size = 20256, upload-time = "2022-06-17T18:00:10.251Z" }, +] + +[[package]] +name = "music-storage" +version = "0.1.0" +source = { virtual = "." } +dependencies = [ + { name = "boto3" }, + { name = "django" }, + { name = "django-storages" }, +] + +[package.metadata] +requires-dist = [ + { name = "boto3", specifier = ">=1.42.6" }, + { name = "django", specifier = ">=6.0" }, + { name = "django-storages", specifier = ">=1.14.6" }, +] + +[[package]] +name = "python-dateutil" +version = "2.9.0.post0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "six" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/66/c0/0c8b6ad9f17a802ee498c46e004a0eb49bc148f2fd230864601a86dcf6db/python-dateutil-2.9.0.post0.tar.gz", hash = "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3", size = 342432, upload-time = "2024-03-01T18:36:20.211Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ec/57/56b9bcc3c9c6a792fcbaf139543cee77261f3651ca9da0c93f5c1221264b/python_dateutil-2.9.0.post0-py2.py3-none-any.whl", hash = "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427", size = 229892, upload-time = "2024-03-01T18:36:18.57Z" }, +] + +[[package]] +name = "s3transfer" +version = "0.16.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "botocore" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/05/04/74127fc843314818edfa81b5540e26dd537353b123a4edc563109d8f17dd/s3transfer-0.16.0.tar.gz", hash = "sha256:8e990f13268025792229cd52fa10cb7163744bf56e719e0b9cb925ab79abf920", size = 153827, upload-time = "2025-12-01T02:30:59.114Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/fc/51/727abb13f44c1fcf6d145979e1535a35794db0f6e450a0cb46aa24732fe2/s3transfer-0.16.0-py3-none-any.whl", hash = "sha256:18e25d66fed509e3868dc1572b3f427ff947dd2c56f844a5bf09481ad3f3b2fe", size = 86830, upload-time = "2025-12-01T02:30:57.729Z" }, +] + +[[package]] +name = "six" +version = "1.17.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/94/e7/b2c673351809dca68a0e064b6af791aa332cf192da575fd474ed7d6f16a2/six-1.17.0.tar.gz", hash = "sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81", size = 34031, upload-time = "2024-12-04T17:35:28.174Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274", size = 11050, upload-time = "2024-12-04T17:35:26.475Z" }, +] + +[[package]] +name = "sqlparse" +version = "0.5.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/18/67/701f86b28d63b2086de47c942eccf8ca2208b3be69715a1119a4e384415a/sqlparse-0.5.4.tar.gz", hash = "sha256:4396a7d3cf1cd679c1be976cf3dc6e0a51d0111e87787e7a8d780e7d5a998f9e", size = 120112, upload-time = "2025-11-28T07:10:18.377Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/25/70/001ee337f7aa888fb2e3f5fd7592a6afc5283adb1ed44ce8df5764070f22/sqlparse-0.5.4-py3-none-any.whl", hash = "sha256:99a9f0314977b76d776a0fcb8554de91b9bb8a18560631d6bc48721d07023dcb", size = 45933, upload-time = "2025-11-28T07:10:19.73Z" }, +] + +[[package]] +name = "tzdata" +version = "2025.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/95/32/1a225d6164441be760d75c2c42e2780dc0873fe382da3e98a2e1e48361e5/tzdata-2025.2.tar.gz", hash = "sha256:b60a638fcc0daffadf82fe0f57e53d06bdec2f36c4df66280ae79bce6bd6f2b9", size = 196380, upload-time = "2025-03-23T13:54:43.652Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/5c/23/c7abc0ca0a1526a0774eca151daeb8de62ec457e77262b66b359c3c7679e/tzdata-2025.2-py2.py3-none-any.whl", hash = "sha256:1a403fada01ff9221ca8044d701868fa132215d84beb92242d9acd2147f667a8", size = 347839, upload-time = "2025-03-23T13:54:41.845Z" }, +] + +[[package]] +name = "urllib3" +version = "2.6.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/5e/1d/0f3a93cca1ac5e8287842ed4eebbd0f7a991315089b1a0b01c7788aa7b63/urllib3-2.6.1.tar.gz", hash = "sha256:5379eb6e1aba4088bae84f8242960017ec8d8e3decf30480b3a1abdaa9671a3f", size = 432678, upload-time = "2025-12-08T15:25:26.773Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/bc/56/190ceb8cb10511b730b564fb1e0293fa468363dbad26145c34928a60cb0c/urllib3-2.6.1-py3-none-any.whl", hash = "sha256:e67d06fe947c36a7ca39f4994b08d73922d40e6cca949907be05efa6fd75110b", size = 131138, upload-time = "2025-12-08T15:25:25.51Z" }, +]