### Install create-poetry-app using fetch Source: https://github.com/aifirstd3v/create-poetry-app/blob/main/README.md Installs the create-poetry-app script by downloading and executing the installer script from GitHub using fetch. This method is an alternative for systems that prefer or only have the fetch utility available. ```shell sh -c "$(fetch -o - https://raw.githubusercontent.com/aifirstd3v/create-poetry-app/main/install.sh)" ``` -------------------------------- ### Install create-poetry-app using wget Source: https://github.com/aifirstd3v/create-poetry-app/blob/main/README.md Installs the create-poetry-app script by downloading and executing the installer script from GitHub using wget. This command achieves the same installation goal as the curl method but utilizes wget for fetching the script. ```shell sh -c "$(wget -O- https://raw.githubusercontent.com/aifirstd3v/create-poetry-app/main/install.sh)" ``` -------------------------------- ### Create Project Using Datascience Template Example Source: https://github.com/aifirstd3v/create-poetry-app/blob/main/README.md A full example demonstrating the creation of a new project using the 'datascience' template, assuming the template is configured. ```sh python create_poetry_app.py -p my_datascience_project -t datascience ``` -------------------------------- ### Create Project Using New Web Template Source: https://github.com/aifirstd3v/create-poetry-app/blob/main/README.md Example of creating a new project using the 'web' template after it has been added to the config.toml. ```sh python create_poetry_app.py -p my_web_project -t web ``` -------------------------------- ### Check System Prerequisites Source: https://github.com/aifirstd3v/create-poetry-app/blob/main/README.md Commands to verify the installation and versions of required tools like Zsh, Python, curl, wget, and Git. These checks ensure the system meets the script's prerequisites before installation. ```shell zsh --version ``` ```shell python3 --version ``` ```shell curl --version ``` ```shell wget --version ``` ```shell git --version ``` -------------------------------- ### Configure Project Templates in config.toml Source: https://github.com/aifirstd3v/create-poetry-app/blob/main/README.md Example TOML configuration file defining dependencies for 'datascience' and 'ai' project templates. ```toml [template.dependency.datascience] pandas = "^2.2.2" numpy = ">=1.26.0,<2.0.0" [template.dependency.ai] pandas = "^2.2.2" numpy = ">=1.26.0,<3.0.0" tensorflow = "^2.4.1" ``` -------------------------------- ### Install create-poetry-app using curl Source: https://github.com/aifirstd3v/create-poetry-app/blob/main/README.md Installs the create-poetry-app script by downloading and executing the installer script from GitHub using curl. This is a common method for fetching and running shell scripts from remote sources. ```shell sh -c "$(curl -fsSL https://raw.githubusercontent.com/aifirstd3v/create-poetry-app/main/install.sh)" ``` -------------------------------- ### Create Project with Full Customization Source: https://github.com/aifirstd3v/create-poetry-app/blob/main/README.md Illustrates creating a new project with all available options specified via command-line arguments for full customization. ```sh create-poetry-app -p my_project -n my_package -v "^3.12" -u "3.33" -d "My new project" -a "Smith Neo" -e "aifirstd3v@matrix.universe" -c true ``` -------------------------------- ### Create Project with Defaults Source: https://github.com/aifirstd3v/create-poetry-app/blob/main/README.md Demonstrates creating a new project using default values for all prompts by passing the -y flag. ```sh create-poetry-app -y ``` -------------------------------- ### Create Project Using Template Source: https://github.com/aifirstd3v/create-poetry-app/blob/main/README.md Demonstrates creating a project with a specified template using the -t or --template option, automatically including predefined dependencies. ```sh python create_poetry_app.py -p my_project -t datascience ``` -------------------------------- ### Setting Poetry Configuration Options Source: https://github.com/aifirstd3v/create-poetry-app/blob/main/README.md Examples of how to use the `poetry config` command to set various project and environment-related configuration options. ```sh poetry config virtualenvs.in-project true poetry config virtualenvs.path "/path/to/your/virtualenvs" poetry config virtualenvs.prefer-active-python true poetry config virtualenvs.prompt "{project_name}-py{python_version}" ``` -------------------------------- ### Uninstall create-poetry-app (Local) Source: https://github.com/aifirstd3v/create-poetry-app/blob/main/README.md Removes the `create-poetry-app` installation by navigating to its installation directory (typically `$HOME/.create-poetry-app`), making the `uninstaller.sh` script executable, and then running it. ```sh cd $HOME/.create-poetry-app chmod +x uninstaller.sh ./uninstaller.sh ``` -------------------------------- ### Install create-poetry-app Script Source: https://github.com/aifirstd3v/create-poetry-app/blob/main/README.md Moves the `create-poetry-app` script to a directory in your system's PATH (e.g., `/usr/local/bin`) and makes it executable. This allows the script to be run from any directory in the terminal. ```sh sudo mv create-poetry-app /usr/local/bin/ sudo chmod +x /usr/local/bin/create-poetry-app ``` -------------------------------- ### Add New Project Template Configuration Source: https://github.com/aifirstd3v/create-poetry-app/blob/main/README.md Shows how to add a new template, like 'web', by defining its dependencies in the config.toml file. ```toml [template.dependency.web] flask = "^2.0.0" requests = "^2.25.1" ``` -------------------------------- ### Create Project with Name and Python Version Source: https://github.com/aifirstd3v/create-poetry-app/blob/main/README.md Shows how to create a new project specifying the project name with -p and the desired Python version with -v. ```sh create-poetry-app -p my_project -v "^3.12" ``` -------------------------------- ### Uninstall create-poetry-app (Remote - fetch) Source: https://github.com/aifirstd3v/create-poetry-app/blob/main/README.md Uninstalls `create-poetry-app` by downloading and executing the `uninstaller.sh` script directly from its GitHub repository using `fetch`. ```sh sh -c "$(fetch -o - https://raw.githubusercontent.com/aifirstd3v/create-poetry-app/main/uninstaller.sh)" ``` -------------------------------- ### Poetry CLI Basic Commands Source: https://github.com/aifirstd3v/create-poetry-app/blob/main/README.md Essential Poetry commands for managing Python projects, including version checking, project creation, dependency management, and environment listing. ```sh poetry --version poetry new poetry init poetry add poetry update poetry install poetry show poetry check poetry export poetry config --list poetry env list poetry lock poetry lock --no-update poetry run ``` -------------------------------- ### Uninstall create-poetry-app (Remote - wget) Source: https://github.com/aifirstd3v/create-poetry-app/blob/main/README.md Uninstalls `create-poetry-app` by downloading and executing the `uninstaller.sh` script directly from its GitHub repository using `wget`. ```sh sh -c "$(wget -O- https://raw.githubusercontent.com/aifirstd3v/create-poetry-app/main/uninstaller.sh)" ``` -------------------------------- ### Uninstall create-poetry-app (Remote - curl) Source: https://github.com/aifirstd3v/create-poetry-app/blob/main/README.md Uninstalls `create-poetry-app` by downloading and executing the `uninstaller.sh` script directly from its GitHub repository using `curl`. ```sh sh -c "$(curl -fsSL https://raw.githubusercontent.com/aifirstd3v/create-poetry-app/main/uninstaller.sh)" ``` -------------------------------- ### Poetry Configuration Settings Source: https://github.com/aifirstd3v/create-poetry-app/blob/main/README.md Key configuration options for Poetry that control virtual environment creation, paths, and prompt formatting. These settings help tailor Poetry's behavior to your workflow. ```APIDOC Poetry Configuration Options: virtualenvs.in-project Description: Determines whether to create virtual environments within the project directory. Set to `true` to keep the virtual environment in the project folder. Type: boolean Default: false virtualenvs.path Description: Defines the path where virtual environments will be created. By default, this is in a cache directory under your home directory. Type: string virtualenvs.prefer-active-python Description: If set to `true`, uses the currently active Python version to create new virtual environments. Introduced in Poetry 1.2.0. Type: boolean Default: false virtualenvs.prompt Description: Sets the format for the virtual environment prompt. Variables available for formatting include `{project_name}` and `{python_version}`. Type: string Example: "{project_name}-py{python_version}" ``` -------------------------------- ### Add Script Directory to PATH (Bash) Source: https://github.com/aifirstd3v/create-poetry-app/blob/main/README.md Appends the directory containing the `create-poetry-app` script (e.g., `/usr/local/bin`) to the PATH environment variable in the `.bashrc` file. This ensures the script is recognized by the shell. The changes are then applied by sourcing the configuration file. ```sh echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bashrc source ~/.bashrc ``` -------------------------------- ### Add Script Directory to PATH (Zsh) Source: https://github.com/aifirstd3v/create-poetry-app/blob/main/README.md Appends the directory containing the `create-poetry-app` script (e.g., `/usr/local/bin`) to the PATH environment variable in the `.zshrc` file. This ensures the script is recognized by the shell. The changes are then applied by sourcing the configuration file. ```sh echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.zshrc source ~/.zshrc ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.