Skip to main content

System configuration toolbox

Project description

Clyjin

System configuration toolbox

I think it is better not to reinvent the wheel and implement these toolbox ideas in Golang itself.

Modules

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

python3 -m clyjin {module_name} {module_args}

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

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.1.0.tar.gz (2.7 MB view details)

Uploaded Source

Built Distribution

clyjin-0.1.0-py3-none-any.whl (2.8 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: clyjin-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for clyjin-0.1.0.tar.gz
Algorithm Hash digest
SHA256 50a460b883f52e97e031859dc3d5699b03d0942d82c50755280bb28a43775306
MD5 33446c8bca04087ec7d03e784570bc05
BLAKE2b-256 bf7e656988e4c2d08d7f63521c8e02021e97a28d7575ee3d3459a16a6515c483

See more details on using hashes here.

File details

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

File metadata

  • Download URL: clyjin-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for clyjin-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 38d12beec605a5e6993bd68e6d3c242e8e3028e42b4a3dab6620cf7114482327
MD5 a67fd9f41e2c6cc77602daa0c1cd40ba
BLAKE2b-256 519eeae4b0784b3861915ed4b7ebf984b795f6216058a6cb78aa9d243bb5e6c0

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