This project has been archived by its maintainers, and is no longer receiving any updates.
Lyon e-Sport assets generator
This website help you to generate assets from an image and GET parameters
Requirements
- Python (check version in pyproject.toml)
Install
pip install les-assets-generator
Dev
Install Poetry with version >= 1.2.0a1
Install and setup dependencies
poetry install
poetry shell
pre-commit install
Run pre-commit
pre-commit run --all-files
Configuration
Production only
Set the environnement for production (.env file or env vars)
Dev: les_assets_generator.assets_generator.settings.dev
Prod: les_assets_generator.assets_generator.settings.production
DJANGO_SETTINGS_MODULE="les_assets_generator.assets_generator.settings.production"
# Database URL following https://github.com/jazzband/dj-database-url#url-schema
DATABASE_URL="sqlite:////opt//assets-generator//db.sqlite3"
# Folder that store static files
DJANGO_STATIC_ROOT="/var/www/assets-generator/static"
# Folder that store media files
DJANGO_MEDIA_ROOT="/var/www/assets-generator/media"
# Django allowed host like .lyon-esport.fr
DJANGO_ALLOWED_HOST=""
# Django log level
DJANGO_LOG_LEVEL=""
# Set the secret key for session and other thinks
SECRET_KEY=""
# Used to generate example URL in django admin like https://assets.lyon-esport.fr
DEFAULT_DOMAIN=""
# Set allowed google email domain like lyon-esport.fr
GOOGLE_DOMAIN=""
Run
$ export DJANGO_SETTINGS_MODULE="les_assets_generator.assets_generator.settings.production"
$ python -m les_assets_generator.manage makemigrations
$ python -m les_assets_generator.manage migrate
$ python -m les_assets_generator.manage compilemessages
Dev
$ cd les_assets_generator
$ python -m les_assets_generator.manage runserver
Production
$ python -m les_assets_generator.manage collectstatic --noinput
$ gunicorn les_assets_generator.assets_generator.wsgi:application --bind localhost:8000 --workers 3
i18n
https://docs.djangoproject.com/en/4.1/topics/i18n/translation/#message-files
Licence
The code is under CeCILL license.
You can find all details here: https://cecill.info/licences/Licence_CeCILL_V2.1-en.html
Credits
Copyright © Lyon e-Sport, 2022
Contributor(s):
-Ortega Ludovic - ludovic.ortega@lyon-esport.fr
Metadata
Release files for les-assets-generator 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| les-assets-generator-0.6.0.tar.gz | 27.0 kB | Without provenance | Details for les-assets-generator-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| les_assets_generator-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for les_assets_generator-0.6.0-py3-none-any.whl |
Total release size: 75.2 kB
Release files / les-assets-generator-0.6.0.tar.gz
| Download URL | les-assets-generator-0.6.0.tar.gz |
|---|---|
| Size | 27.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e7da987c9b294cd224805e8f5d26861241932142c20bc839c718c5aa78bc853
|
|
BLAKE2b-256 checksum How to use checksums |
b29bbc734ad1cf0f69da2979750d542bbb95b99d61ef831442315d4e0b10791c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.0b1 CPython/3.10.7 Linux/5.15.0-1020-azure
|
Release files / les_assets_generator-0.6.0-py3-none-any.whl
| Download URL | les_assets_generator-0.6.0-py3-none-any.whl |
|---|---|
| Size | 48.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7887fb337bc356e65de1b19135f5d94c117733a4eec20415a715c27cb730dcbd
|
|
BLAKE2b-256 checksum How to use checksums |
90b5826f0cdfd3e7a347195f39649a043e84d80412291ecf2f01ae8c097352f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.0b1 CPython/3.10.7 Linux/5.15.0-1020-azure
|
Security for les-assets-generator 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.