Skip to main content

Un package CLI qui génère un fichier .env prêt à l’emploi pour Django, Flask, etc.

Project description

envgen

envgen est un outil en ligne de commande simple pour générer des fichiers .env prêts à l’emploi pour des projets Django ou Flask.


🔧 Installation

pip install envgen

###  🔧 Utilisation
m
```bash

envgen <framework_choisi>

"Cela créera un fichier .env dans le dossier courant avec les variables d’environnement de base pour le framework choisi."

"C’est une bibliothèque qui permet à Python de lire le fichier .env."

```bash

pip install python-dotenv

'ensuite ajouter en haut du settings.py:'




import os
from dotenv import load_dotenv

# Charge le fichier .env à la racine du projet
load_dotenv()

# Utilisation des variables
SECRET_KEY = os.getenv("SECRET_KEY")
DEBUG = os.getenv("DEBUG") == "True"

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

envgen_jaysimy-0.0.4.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

envgen_jaysimy-0.0.4-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file envgen_jaysimy-0.0.4.tar.gz.

File metadata

  • Download URL: envgen_jaysimy-0.0.4.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for envgen_jaysimy-0.0.4.tar.gz
Algorithm Hash digest
SHA256 71022fd3ce26d9e30bbf1bf7d21ce491df13a5ed442e3c7733ea156e1b7d4051
MD5 72f7c5e622fdd97ea49773f0d13a05c5
BLAKE2b-256 2023a244eb72cb1d20794e7634704d9fa230ef3c3ba956b4133fb30f89521bc6

See more details on using hashes here.

File details

Details for the file envgen_jaysimy-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: envgen_jaysimy-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for envgen_jaysimy-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c3bc11add8e6a090036c97f1e804908105f56ea8a75fce07aeb0dd595190183f
MD5 d0d9b12ffab4425f2cda522213604333
BLAKE2b-256 5016936f380b8c1012acf9cfe2367a152750e903957ee1b8ae167af692d50d7a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page