Pluggable app for your Django projects to modify your mobile app versions using your API.
Project description
django-mobile-app-version
A Django app for managing mobile app versions through your API.
Requirements
- Python 3.13+
- Django 3.0+
- Django REST Framework 3.14+
Installation
pip install django-mobile-app-version
Quick Start
- Add
'mobile_app_version.apps.MobileAppVersionConfig'to yourINSTALLED_APPSinsettings.pymodule:
INSTALLED_APPS = [
...
'mobile_app_version.apps.MobileAppVersionConfig',
]
- Include the Mobile App Version URLconf in your projects
urls.pylike this:
path('app-versions', include('mobile_app_version')),
- Run migrations to create the database tables:
python manage.py migrate mobile_app_version
If you clone this app directly in your project and have changes to application models, first run:
python manage.py makemigrations mobile_app_version
python manage.py migrate mobile_app_version
Version Format
Semantic Versioning
The version field follows Semantic Versioning format: X.Y.Z
- X (Major): Incremented for incompatible API changes
- Y (Minor): Incremented for backwards-compatible functionality additions
- Z (Patch): Incremented for backwards-compatible bug fixes
Valid Version Examples
1.0.0
2.5.3
10.20.30
0.1.0
Invalid Version Examples
1.0 # Missing patch version
v1.0.0 # Prefix not allowed
1.0.0-alpha # Pre-release tags not allowed
1.0.0.1 # Too many components
01.0.0 # Leading zeros not allowed
API Usage
When creating or updating a mobile app version through the API, the version field must follow the semantic versioning format:
# Valid request
{
"version": "1.0.0",
"platform_type": "ANDROID",
"link": "https://example.com/app.apk",
"forcing_update": true
}
# Invalid request - will return validation error
{
"version": "v1.0.0", # Error: Version must follow semantic versioning format (X.Y.Z)
"platform_type": "ANDROID",
"link": "https://example.com/app.apk"
}
Error Messages
If an invalid version format is provided, you'll receive a clear error message:
{
"version": [
"Version must follow semantic versioning format (X.Y.Z). Each component must be a non-negative integer. Example: 1.0.0, 2.3.4"
]
}
Contributing
Interested in contributing? Please see our CONTRIBUTING.md for development setup instructions and guidelines.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_mobile_app_version-1.3.0.tar.gz.
File metadata
- Download URL: django_mobile_app_version-1.3.0.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f941a12a9afb8abae67401615fd374e1a62d0eb57bd9ac0287863be8e5e45f6
|
|
| MD5 |
2f61ea2dfbc030af62a57ceba29771b1
|
|
| BLAKE2b-256 |
abf32519ae41f49718334d5032e35ecce260ca400845b9b5b268a23e81e66b01
|
File details
Details for the file django_mobile_app_version-1.3.0-py3-none-any.whl.
File metadata
- Download URL: django_mobile_app_version-1.3.0-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f098364e810715fc01a443e06d7b7194967bbbc319ad4ed829636f9fa5113046
|
|
| MD5 |
73b158c34da8d34d73b4642fb260f9e0
|
|
| BLAKE2b-256 |
c2b2bae0f9c4800d9f79570663f881b49b7764012df3082447173ef51c8452c8
|