{"id":26830916,"url":"https://github.com/drbea/system-utilities","last_synced_at":"2026-04-14T06:03:37.607Z","repository":{"id":284558598,"uuid":"955329022","full_name":"drbea/system-utilities","owner":"drbea","description":"Ce dépôt GitHub contient une collection de scripts utilitaires simples pour interagir avec le système d'exploitation. **Actuellement inclus :**  * **`shutdown_script.py` :** ","archived":false,"fork":false,"pushed_at":"2025-04-16T09:59:15.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-16T12:31:45.273Z","etag":null,"topics":["automation","cross-platform","linux","macos","python","script","shutdown","system-utilities","utility-script","windows"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drbea.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-26T13:24:29.000Z","updated_at":"2025-04-16T09:59:18.000Z","dependencies_parsed_at":"2025-03-26T14:40:44.275Z","dependency_job_id":"19b57d2b-0e45-4e27-95e4-e52a36faccb1","html_url":"https://github.com/drbea/system-utilities","commit_stats":null,"previous_names":["drbea/system-utilities"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/drbea/system-utilities","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drbea%2Fsystem-utilities","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drbea%2Fsystem-utilities/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drbea%2Fsystem-utilities/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drbea%2Fsystem-utilities/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drbea","download_url":"https://codeload.github.com/drbea/system-utilities/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drbea%2Fsystem-utilities/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267133640,"owners_count":24040782,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","cross-platform","linux","macos","python","script","shutdown","system-utilities","utility-script","windows"],"created_at":"2025-03-30T14:18:19.501Z","updated_at":"2026-04-14T06:03:37.603Z","avatar_url":"https://github.com/drbea.png","language":"Python","readme":"# system-utilities\n\n## 🚀 create_project.sh\n\nUn script Bash universel pour créer rapidement des projets Python/Django avec :\n\nEnvironnement virtuel .venv automatique\n\nSupport Django ou structure Python générique\n\nConfiguration .env avec SECRET_KEY et DATABASE_URL\n\nBase de données : SQLite (par défaut), PostgreSQL ou MySQL/MariaDB\n\nInitialisation Git + .gitignore complet\n\nMakefile avec commandes utiles (setup, run, migrate, createsuperuser, …)\n\nREADME + .env.example générés automatiquement\n\n📦 Installation\n\nCloner le dépôt :\n```bash\ngit clone https://github.com/drbea/system-utilities.git\n# ou \ngit clone git@github.com:drbea/system-utilities.git\ncd system-utilities\nchmod +x create_project.sh\n```\n\n▶️ Utilisation\n1. Créer un projet Django\n   ```bash\n   ./create_project.sh --django mon_projet\n   ```\n2. Créer un projet Python générique\n   ```bash\n   ./create_project.sh mon_package\n   ```\n3. Créer un projet dans le dossier courant\n   ```bash\n   ./create_project.sh --django\n   ```\n5. ⚙️ Options disponibles\n      | Option      | Description                                     |\n      | ----------- | ----------------------------------------------- |\n      | `--no-venv` | Ne pas créer d’environnement virtuel            |\n      | `--no-git`  | Ne pas initialiser de dépôt Git                 |\n      | `--django`  | Créer un projet Django (`src/config`)           |\n      | `--db`      | Base de données : `sqlite`, `postgres`, `mysql` |\n      | `--db-name` | Nom de la base (par défaut : `\u003cproject\u003e_db`)    |\n      | `--db-user` | Utilisateur DB (postgres/mysql)                 |\n      | `--db-pass` | Mot de passe DB                                 |\n      | `--yes`     | Mode non interactif (tout par défaut)           |\n      | `--help`    | Affiche l’aide                                  |\n\n7. 🗃️ Exemple d’utilisation avec PostgreSQL\n   ```bash\n   ./create_project.sh --django --db postgres --db-name blog_db --db-user bloguser --db-pass secret blog\n   ```\n   Cela va créer :\n   Un projet Django dans src/config/\n   Un fichier .env :\n   ```\n   DEBUG=True\n   SECRET_KEY=xxxxxx\n   DATABASE_URL=postgres://bloguser:secret@localhost:5432/blog_db\n   ```\n   📂 Structure générée\n   Avec Django\n   ```arduino\n   mon_projet/\n      ├── .venv/\n      ├── src/\n      │   └── config/\n      ├── tests/\n      ├── docs/\n      ├── .env\n      ├── .env.example\n      ├── requirements.txt\n      ├── Makefile\n      ├── .gitignore\n      └── README.md\n   ```\n   Projet Python générique\n   ```arduino\n      mon_package/\n            ├── .venv/\n            ├── src/\n            │   └── mon_package/\n            │       └── __init__.py\n            ├── tests/\n            ├── docs/\n            ├── .env\n            ├── .env.example\n            ├── requirements.txt\n            ├── Makefile\n            ├── .gitignore\n            └── README.md\n   ```\n   🔧 Makefile inclus\n      | Commande               | Description                              |\n      | ---------------------- | ---------------------------------------- |\n      | `make setup`           | Crée `.venv` et installe les dépendances |\n      | `make run`             | Lance le serveur Django                  |\n      | `make migrate`         | Exécute les migrations Django            |\n      | `make createsuperuser` | Crée un super utilisateur Django         |\n      | `make test`            | Lance les tests unitaires                |\n      | `make freeze`          | Met à jour `requirements.txt`            |\n      | `make clean`           | Nettoie le projet                        |\n\n9. 🤝 Contribution\n\nFork le repo 🍴\n\n- Crée ta branche (```bash git checkout -b feature/ma-feature```)\n\nCommit tes changements (```bash git commit -m \"Ajout nouvelle option\"```)\n\nPush ta branche (```bash git push origin feature/ma-feature```)\n\nOuvre une Pull Request 🚀\n10. ----\n   \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrbea%2Fsystem-utilities","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrbea%2Fsystem-utilities","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrbea%2Fsystem-utilities/lists"}