mkciud
This utility constructs cloud-init user-data files.
This package provides both a command-line utility and a module for Python 3.
Command-Line
mkciud [ [type-specifier:]filename ]+
python -m mkciud [ [type-specifier:]filename ]+
type-specifiers:
(default), (empty string), auto autodetect
cb, cloud-boothook cloud-boothook
cc, cloud-config cloud-config
ca, cloud-config-archive cloud-config-archive
ph, part-handler part-handler
uj, upstart-job upstart-job
io, include-once, x-include-once-url x-include-once-url
in, include, x-include-url x-include-url
sh, shellscript, x-shellscript x-shellscript
Outputs user-data to stdout. This will be binary data, so redirect to a file.
Module
import mkciud
userdata = mkciud.UserData()
for message_body, message_subtype in message_bodies_and_subtypes:
userdata.add(message_body, message_subtype)
userdata.export(sys.stdout.buffer)
message_subtype is the full MIME subtype string for the file, such as x-shellscript or cloud-config. If message_subtype is omitted or None, it will attempt to autodetect the type.
Notes
Type autodetection is done by looking for a recognized specifier in the first line of the file, such as #!/bin/bash or #cloud-config.
Metadata
Release files for mkciud 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mkciud-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / mkciud-1.0.1-py3-none-any.whl
| Download URL | mkciud-1.0.1-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b830a5c6729fbb8def288acc0b2c7225fced23a61fcafe722bce7f572f6b24e3
|
|
BLAKE2b-256 checksum How to use checksums |
b104bf241b03405b6c7948490343c2d51f904b292fd12ede0ecf9a9e7bbb27ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for mkciud 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.