Skip to main content

Shinigami is an open source Python library allowing the user to generate and build Dockerfiles during runtime

Project description

Shinigami was created to be simplistic and maintainable

Shinigami is an open source Python library allowing the user to generate and build Dockerfiles during runtime.

Usage

You can install Shinigami via pip:

pip install shinigami

Example

from shinigami import Shinigami

def create_file():
    Shinigami(lang_os="python", version="3.9", build=True, verbose=True, color=True).generate_dockerfile()

if __name__ == '__main__':
    create_file()

If you just want to generate the Dockerfile without building the container, you can do that too. Just remove the build boolean from the class and you should see a Dockerfile populate in your current directory within seconds.

CLI

Usage

Available commands:

-h,  --help      |  Help menu
-i,  --image     |  Docker image to generate
-v,  --version   |  Version of the Docker image
-b,  --build     |  Build the Dockerfile after generation
-c,  --color     |  Generate color in the output
-rm, --remove    |  Remove the Dockerfile in your current working directory

Examples

This command will generate a Dockerfile for Ubuntu 22.04, but won't build the Docker image

shinigami -i "ubuntu" -v "22.04"

This command will build a Docker image running Python 3.8 and generate the Dockerfile

shinigami -i "python" -v "3.8" -b

Removes the Dockerfile in your current working directory

shinigami -rm

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

shinigami-0.2.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

shinigami-0.2.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file shinigami-0.2.1.tar.gz.

File metadata

  • Download URL: shinigami-0.2.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.31.0 requests-toolbelt/0.10.1 urllib3/1.26.12 tqdm/4.65.0 importlib-metadata/6.0.0 keyring/23.13.1 rfc3986/1.5.0 colorama/0.4.6 CPython/3.11.7

File hashes

Hashes for shinigami-0.2.1.tar.gz
Algorithm Hash digest
SHA256 3a1dd4922f0391e42afe0a6ca0a92d265eac78ddc3bad2e7963f8f3b026cb3ad
MD5 862281431a5a837d677d03adeccdf5ec
BLAKE2b-256 6ed97c99b1bc6449bf4309e4e44d3f82de0a14e7a88ecc588f792e7b470a6206

See more details on using hashes here.

File details

Details for the file shinigami-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: shinigami-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.31.0 requests-toolbelt/0.10.1 urllib3/1.26.12 tqdm/4.65.0 importlib-metadata/6.0.0 keyring/23.13.1 rfc3986/1.5.0 colorama/0.4.6 CPython/3.11.7

File hashes

Hashes for shinigami-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c7e0d4b3838b74a9290e4b192dd517fb71700b244242be558cd26c833e6d9531
MD5 22a405fa14ac6b986ea5367cdd958717
BLAKE2b-256 27af8bb35dc65eef858c165e15b96148a501d2704949355f6104dc75dc4071b4

See more details on using hashes here.

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