Skip to main content

scaffolding

Project description

korpokkur is command tool set for scaffold.

(only support 2.7 and 3.3

korpokkur has several subcommands. list below.

  • list

  • create

  • scan

list

$ korpokkur list
package -- tiny python package scaffold (this is sample)
scaffold -- korpokkur scaffold template template

create

$ korpokkur create package .
package (package name)[sample]:foo
version (version number for project)[0.0]:0.1
description (package description)[-]:sample package

$ tree foo
foo
|-- CHANGES.txt
|-- README.rst
|-- foo
|   `-- tests
|       `-- __init__.py
`-- setup.py

sometime, it’s annoying that asking via interactive shell when unknown setting is found. so, enable to pass value by config file.

$ korpokkur create --config ./foo.ini package .
[scaffold]
package = foo
version = 0.1
description = sample package

or json file is also ok.

$ korpokkur create --config ./foo.json package .
{"package": "foo", "version": "0.1", "sample package"}

scan

scan is dry-run operation about create.

$ korpokkur scan package
package (package name)[sample]:foo
d[c]: /tmp/foo
d[c]: /tmp/foo/foo
f[c]: ~/korpokkur/scaffolds/package/+package+/CHANGES.txt -> /tmp/foo/CHANGES.txt
f[m]: ~/korpokkur/scaffolds/package/+package+/README.rst.tmpl -> /tmp/foo/README.rst
f[m]: ~/korpokkur/scaffolds/package/+package+/setup.py.tmpl -> /tmp/foo/setup.py
version (version number for project)[0.0]:0.1
description (package description)[-]:sample package
d[c]: /tmp/foo/foo/tests
f[c]: ~/korpokkur/scaffolds/package/+package+/+package+/tests/__init__.py -> /tmp/foo/foo/tests/__init__.py
f[c]: ~/korpokkur/scaffolds/pygitignore/+package+/.gitignore -> /tmp/foo/.gitignore
----------------------------------------
*input values*
{
  "version": "0.1",
  "package": "foo",
  "description": "sample package"
}

output information what files are generated and what values are asked.

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

korpokkur-0.0.9.3.tar.gz (19.0 kB view details)

Uploaded Source

File details

Details for the file korpokkur-0.0.9.3.tar.gz.

File metadata

  • Download URL: korpokkur-0.0.9.3.tar.gz
  • Upload date:
  • Size: 19.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for korpokkur-0.0.9.3.tar.gz
Algorithm Hash digest
SHA256 44f3ae78b4c915811f200202e89c7a6bed9939cc372b0977a04b0d12351f545f
MD5 bcbecf9bf57a8581fd80903ca0489447
BLAKE2b-256 b80001b25d7e74da439034b7b9f3d228ca9ffe439ec7cb98a5f14c546b21b300

See more details on using hashes here.

Provenance

Supported by

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