Skip to main content

Create a project folder. It can be self configurated

Project description

Welcome to spuring documentation

Spuring creates predefined folder setups. It is mainly mend to be a project folder scaffolder for python projects, but thanks to the template ans plugin system you can customize it for your needs.

Install

py -m pip install spruing

How to use it

Help

spruing -h

shows a list commands

List Templates

spruing -l

list all templates that are in your template folder (more later)

Create a Template

spruing -t default -o MyProject

Creates the content of the default template in the folder MyProject.

This will create the following folder tree

│─── README.md
│─── requirements-dev.txt
├─── .venv
├─── MyProject
│       __init__.py
└─── test
        TestMyproject.py

You only can just start the virtual environment and start coding. All the packages in the requirements-dev.txt already downloaded and ready to use.

Find the template folder

As i said, you can customize your own template.

First thinks first. Lets locate the template folder.

Type the following in you terminal

spuring -tp

The result should be on windows like that

C:\Users\%user%\AppData\Local\Programs\Python\Python3%$\Lib\site-packages\spuring\templates

For later - You will found the plugin folder (here named "scripts") on the parent directory.

C:\Users\%user%\AppData\Local\Programs\Python\Python3%$\Lib\site-packages\spuring\scripts

Create a simple template

There are 4 main sections for a template. Lets create a toml file and lets right the "head" section.

# The name for your template
name = "my_template"

# a short description. 
description = "A project setup that i like"

# In the narrative you can write a little bit more, so that you know late what going on.
narrative = "I use a src folder. It's much better!"

That was the first part. Now lets dive in the second section. Its the folder section.

# Here can you list all folders
# now we start with the folder flag. That wasn't needed in the first section
[folders]
# the name of the key isn't important
src = "src"
# you can create multi layers
test = "test/test-reports"

Just start the section with [folders]. After that choose any key, it is not important for the creation of the project file. Only double occurrence play a role. This could be important if you work with more advance stuff. But now low go forward to the files. Now it will be interesting.

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

spuring-0.0.3.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spuring-0.0.3-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file spuring-0.0.3.tar.gz.

File metadata

  • Download URL: spuring-0.0.3.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for spuring-0.0.3.tar.gz
Algorithm Hash digest
SHA256 9a57ca0fc116bf4e08a62a912c9e99911ac4054ef50930d944f9231a530dbcb3
MD5 eb11d2f3ee2f876bca6c42bf947333e8
BLAKE2b-256 c8e1a733727789e32073c1be6d0b765eb78f6b927e0d714ebfba174c9f2a13db

See more details on using hashes here.

File details

Details for the file spuring-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: spuring-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for spuring-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f7c566a9e62e874804e7d108a0597512d45ac3705e5b61e1283baf0a9161e0a8
MD5 b8f057539382737a99e784dee3c0833a
BLAKE2b-256 0a20ae105f4821f1c3261c878d66c50cd9717fbbf059c0a470f658263dab9df3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page