Skip to main content

Modular toolbox

Project description

Clyjin

System configuration toolbox

Modules

Clyjin has set of builtin modules to work with, to call a module use:

python3 -m clyjin {module_name} {module_args}

modules.API

Module deploying web server to display OpenAPI (A.K.A Swagger) specification UI for set of paths to api entrypoints defined in given file.

Usage:

python3 -m clyjin api -f {path/to/file/with/api/paths.txt}

Structure of paths.txt might be something like:

/home/user/project1/api/main.yml
/home/user/project2/api/main.yml
/home/user/project3/api/main.yml

All paths defined in paths.txt are fetched, and if they hold correct OpenAPI yaml spec, UI representation is built.

It is mandatory for now for API entrypoint to hold info.title info inside according entrypoint spec. This is required to build route to this file.

For example, main.yml:

openapi: '3.0.2'
info:
    title: MyProject
    version: package
...

will produce OpenAPI specification on route /myproject (or any cased route, e.g. /MyPrOjEcT since lower casing is performed before api names matching).

⚠️ WARNING
Accessing raw yaml files for main entrypoint and related dependencies is allowed across all filesystem of web-server's host (of course, where user launched the web-server has an access). Although, the validation for having exactly this api specified in paths.txt is done, this is not the best practice to have, because validation is checking and "pinging" requested target file.

Use on your own risk in public-faced servers.

Important notes

  • Unfortunately, folder structure inside directory with entrypoint specified is not allowed. This won't pass validation for referenced yaml files. I plan to fix this in future releases

  • And yes, only yaml formats supported for now

modules.Boot

[IN DEVELOPMENT] Flexible system configurations from apps installation to own settings applying.

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

clyjin-0.2.6.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

clyjin-0.2.6-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file clyjin-0.2.6.tar.gz.

File metadata

  • Download URL: clyjin-0.2.6.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.3 Linux/6.4.8-zen1-1-zen

File hashes

Hashes for clyjin-0.2.6.tar.gz
Algorithm Hash digest
SHA256 c3ecf64df26bd77f56bb852f5ece9db09fa206a403613a707b4f09a8e63b7c26
MD5 d8f7f0cfac3d61a4ecff7e6d1e09e4c6
BLAKE2b-256 8b672609d74338e4c94e9555968edf1709bfe75a92bd80efae3f7b6dee8e41b8

See more details on using hashes here.

File details

Details for the file clyjin-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: clyjin-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 18.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.3 Linux/6.4.8-zen1-1-zen

File hashes

Hashes for clyjin-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 446eb99edad3cc4e3ce9ee9cc7ec5c47c2c9ac53406edea16d3e759fc0786a9a
MD5 53062018faf460d3e9734a4cf8c3fd75
BLAKE2b-256 b6aecb77f1f2aba59dda6cc6628c62f4601b5e26fbbfab2aa8f6ea3eb9090b82

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