This is a module that automates the file structure and settings of a new project.
Project description
Title: README.md Path: README.md Author: Max Ludden Date: 2022-11-22 CSS: static/style.css ...
MaxSetup 0.6.0
Version 0.6.0 Updates
Updated MaxSetup so the when you call the function new_run() it preforms the following:
- Checks to make sure that
run.txtfile exists in the Current Working Directory (CWD)'s log directory.- If it doesn't exist, MaxSetup will:
- Read the
CWD'spyproject.tomlandpoetry.lockinto active memory. - Delete the files and directories in the
CWD. - Copy the default file structure and files from the template directory into CWD.
- Rewrite the
pyproject.tomlandpoetry.lockback into theCWD.
- Read the
- If it doesn't exist, MaxSetup will:
- After ensuring that
run.txtexists, it will:- Read what the last run was from the file.
- Increment the last run to determine the current run.
- Write the current run to disk
- Setup up the loguru sinks and add the current run to the log's extra dictionary.
- Clear the console.
- Print a white horizontal rule to the console with a gradient Run title.
- Return the configured log and its sinks to what called it.
Changes in 0.5.0
Changed setup to return only "log" (These changes were overwritten as they caused confusion.)
Purpose
This is a module that automates the file structure and settings of a new project.
Changes from v0.3.0
Updated module configuration.
Installation
Install from Pip
pip install maxsetup
Install from Pipx
pipx install maxsetup
Install from Pipx
python add maxsetup
Usage
All you need from maxsetup is the following:
from maxsetup import new_run
log = new_run()
MaxSetup keeps track of the current run and logs all output to the console and to loguru sinks.
In addition it creates a file structure for the project that looks like this:
Max Setup File Structure
. (Current working directory) │ ├── .env ├── .gitignore ├── .vscode │ ├── launch.json │ ├── settings.json │ └── tasks.json ├── LICENSE ├── logs │ ├── log.log │ ├── run.txt │ └── verbose.log └── static ├── Century Gothic Bold.ttf ├── Century Gothic.ttf ├── MesloLGS NF Bold Italic.ttf ├── MesloLGS NF Bold.ttf ├── MesloLGS NF Italic.ttf ├── MesloLGS NF Regular.ttf ├── Urbanist-Black.ttf ├── Urbanist-BlackItalic.ttf ├── Urbanist-Italic.ttf ├── Urbanist-Light.ttf ├── Urbanist-LightItalic.ttf ├── Urbanist-Regular.ttf ├── White Modesty.ttf └── style.css
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 maxsetup-0.8.0.tar.gz.
File metadata
- Download URL: maxsetup-0.8.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.11.0 Darwin/22.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
605673bcfd37236d77705d5d378f603f45238155a84b4d1c78ef4e18f08fc5bb
|
|
| MD5 |
5afc096344063b2315f6057ba73d38e8
|
|
| BLAKE2b-256 |
fb13e6fb58fc9184b6d5ac81cee5cd68063fcb61cc6168e00565badb51f55ba0
|
File details
Details for the file maxsetup-0.8.0-py3-none-any.whl.
File metadata
- Download URL: maxsetup-0.8.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.11.0 Darwin/22.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9dfe06a2945550d54182864b025ab2636574a8e2e583bca76d8d1fcfd5f7686e
|
|
| MD5 |
6301da95f0ba79efa283997ceb8a946b
|
|
| BLAKE2b-256 |
d8bf4a253338a8d91d25fb19ed7e567fe71cb90b32254d2a8f2778a7a9d29c88
|