Skip to main content

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.

Metadata

Release files for clyjin 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for clyjin 0.2.0
File Size Uploaded
clyjin-0.2.0.tar.gz 12.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for clyjin 0.2.0
File Interpreter ABI Platform
clyjin-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 30.6 kB

Release files / clyjin-0.2.0.tar.gz

Download URL clyjin-0.2.0.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
71e5dd1473a3fd0214f672e7723d300d201de0740bef79dfd214fc3dcd0202c9
BLAKE2b-256 checksum
How to use checksums
4e020e44f7b5d0db767fec63d2d4da6070c98d66de490f436c1a8d512648198b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.3 Linux/6.4.8-zen1-1-zen

Release files / clyjin-0.2.0-py3-none-any.whl

Download URL clyjin-0.2.0-py3-none-any.whl
Size 18.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
706aa35d3aed308127e6987c4260dc9c64f39b4514335ba50def15f3a018f0b8
BLAKE2b-256 checksum
How to use checksums
c57fc0a20eace48b51661dbf4453321dae8d6be23efc3096bfc759190a67c57c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.3 Linux/6.4.8-zen1-1-zen

Release history Release notifications | RSS feed

0.2.10

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

This release

0.2.0 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

1 release file

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page