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.4.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.4-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spuring-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 ec32b1da13df62e659ff57966c9ef03ef1769194390e8eb72a313b0f091f68b7
MD5 c4a69ebe5fbf8015bc94eb57fcb42437
BLAKE2b-256 cacd745a5dc9d335c966d68edb6dc9658ce1b7def8e589aa6740ad2ef4f9a14d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spuring-0.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 df9ade0784cb3db49b0991ecd693962e51b6f53c6fd150ecfef9f923fa597005
MD5 ba57f9d33c3538f620b27c3ca24edbff
BLAKE2b-256 338128815dd577829eb048ca493a196c7106b0720710f196913a20cb7ecefebc

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