Skip to main content

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.txt file exists in the Current Working Directory (CWD)'s log directory.
    • If it doesn't exist, MaxSetup will:
      • Read the CWD's pyproject.toml and poetry.lock into 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.toml and poetry.lock back into the CWD.
  • After ensuring that run.txt exists, 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

Metadata

Release files for maxsetup 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for maxsetup 0.8.0
File Size Uploaded
maxsetup-0.8.0.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for maxsetup 0.8.0
File Interpreter ABI Platform
maxsetup-0.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.1 kB

Release files / maxsetup-0.8.0.tar.gz

Download URL maxsetup-0.8.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
605673bcfd37236d77705d5d378f603f45238155a84b4d1c78ef4e18f08fc5bb
BLAKE2b-256 checksum
How to use checksums
fb13e6fb58fc9184b6d5ac81cee5cd68063fcb61cc6168e00565badb51f55ba0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.11.0 Darwin/22.1.0

Release files / maxsetup-0.8.0-py3-none-any.whl

Download URL maxsetup-0.8.0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9dfe06a2945550d54182864b025ab2636574a8e2e583bca76d8d1fcfd5f7686e
BLAKE2b-256 checksum
How to use checksums
d8bf4a253338a8d91d25fb19ed7e567fe71cb90b32254d2a8f2778a7a9d29c88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.11.0 Darwin/22.1.0

Release history Release notifications | RSS feed

This release

0.8.0 This release

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page