### Boss Configuration for Default Answers Source: https://boss.readthedocs.io/en/latest/dev/quickstart.html Example of the `~/.boss/config` file showing how to set default answers for project creation prompts. ```ini [answers] creator = BJ Dierkes email = derks@bjdierkes.com version = 0.9.1 license = BSD-three-clause ``` -------------------------------- ### Example Python Template Structure Source: https://boss.readthedocs.io/en/latest/dev/templates.html Illustrates the file and directory structure for a Python template. It shows how variables like '@module@' are used in file and directory names. ```text -> python `----> @module@/ `----> @module@.py `----> setup.py `----> setup.cfg `----> README `----> LICENSE `----> boss.yml ``` -------------------------------- ### Install Stable Boss Version Source: https://boss.readthedocs.io/en/latest/dev/quickstart.html Use this command to install the latest stable version of Boss from PyPi. ```bash $ pip install boss ``` -------------------------------- ### Create New Project from Boss Template Source: https://boss.readthedocs.io/en/latest/dev/quickstart.html Generate a new project using a specified template. This example prompts for project details and shows the files being written. ```bash $ boss create ./helloworld -t local:python Version: [0.9.1] Python Module Name: helloworld Python Class Prefix: HelloWorld Project Name: Hello World Project Description: Hello World does Amazing Things Project Creator: [BJ Dierkes] Project Creator Email: [derks@bjdierkes.com] License: [BSD-three-clause] Project URL: http://helloworld.example.com ------------------------------------------------------------------------------ Writing: /Volumes/Users/derks/helloworld/README Writing: /Volumes/Users/derks/helloworld/requirements.txt Writing: /Volumes/Users/derks/helloworld/setup.cfg Writing: /Volumes/Users/derks/helloworld/setup.py Writing: /Volumes/Users/derks/helloworld/helloworld/__init__.py Writing: /Volumes/Users/derks/helloworld/tests/test_helloworld.py Writing: /Volumes/Users/derks/helloworld/.gitignore Writing: /Volumes/Users/derks/helloworld/LICENSE ``` -------------------------------- ### Install Development Version of Boss Source: https://boss.readthedocs.io/en/latest/dev/quickstart.html Install the development version of Boss by cloning the master branch from GitHub. ```bash $ pip install -e git+git://github.com/datafolklabs/boss.git#egg=boss ``` -------------------------------- ### Custom Delimiters Configuration Source: https://boss.readthedocs.io/en/latest/dev/templates.html Shows how to customize the delimiters used for variables within Boss templates. Examples include '%' and '{{' delimiters. ```yaml delimiters: ['%', '%'] ``` ```yaml delimiters: ['{{', '}}'] ``` -------------------------------- ### Boss Template Configuration (YAML) Source: https://boss.readthedocs.io/en/latest/dev/templates.html An example of a boss.yml configuration file. It defines variables for project details and specifies external files to be included, such as .gitignore and LICENSE. ```yaml variables: version: Version module: Python Module Name class_prefix: Python Class Prefix project: Project Name description: Project Description creator: Project Creator email: Project Creator Email url: Project URL license: Project License external_files: .gitignore: https://raw.github.com/github/gitignore/master/Python.gitignore LICENSE: https://raw.github.com/datafolklabs/license/master/@license@ ``` -------------------------------- ### Add Remote and Local Boss Template Sources Source: https://boss.readthedocs.io/en/latest/dev/quickstart.html Add new template repositories. The first example adds a remote Git repository, while the second adds a local repository that will not sync. ```bash $ boss add-source my-remote git@github.com:john.doe/boss-templates.git $ boss add-source local /path/to/my/templates --local ``` -------------------------------- ### List Available Boss Templates Source: https://boss.readthedocs.io/en/latest/dev/quickstart.html Display all available templates from configured local and remote sources. ```bash $ boss templates ``` -------------------------------- ### List Boss Template Sources Source: https://boss.readthedocs.io/en/latest/dev/quickstart.html View the configured local and remote template repositories for Boss. ```bash $ boss sources ``` -------------------------------- ### Import Created Project in Python Source: https://boss.readthedocs.io/en/latest/dev/quickstart.html Verify that the newly created project can be imported as a Python module. ```python >>> import helloworld ``` -------------------------------- ### Run Tests for Created Project Source: https://boss.readthedocs.io/en/latest/dev/quickstart.html Execute the tests for the generated project using `nosetests`. ```bash $ nosetests test_helloworld (test_helloworld.HelloWorldTestCase) ... ok ---------------------------------------------------------------------- Ran 1 test in 0.006s OK ``` -------------------------------- ### Sync Boss Templates Source: https://boss.readthedocs.io/en/latest/dev/quickstart.html Synchronize local template caches with remote sources. This command also shows output from the Git receiving process. ```bash $ boss sync Syncing Boss Templates . . . remote: Counting objects: 137, done. remote: Compressing objects: 100% (73/73), done. remote: Total 102 (delta 45), reused 83 (delta 26) Receiving objects: 100% (102/102), 63.38 KiB, done. Resolving deltas: 100% (45/45), completed with 18 local objects. From github.com:datafolklabs/boss-templates 8626879..8bc867a master -> origin/master ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.