Skip to main content

A shell and other utils

Project description

workflow-badge

Overview

In addition, there are some utilities.

In src:

  • An object parser which converts JSON data to Python classes: object_parser.py.
  • An OAS-generator for Python classes: oas.py.
  • A parallelization framework for load testing: parallel.py.
  • A shell that can interpret a domain-specific language: shell.py.
  • A subshell wrapper, to redirect the output of shell scripts: subshell.py.

Shell

See shell and reference.

Example of a shell with a dropdown completion menu

Setup

Using a Makefile for convenience.

make install
make test

Optional

Setup completions

source setup/setup.sh

Parallelization Utilities

Some experiments with parallelization, concurrency and asyncio in Python.

Test

Start a dummy server.

python3 src/server.py

Do a simple load test

python3 src/parallel.py -v

Object Parser

Exammple

python src/object_parser_example.py
OAS Example

REST API

Server

python src/object_parser_server.py

Client

curl -X 'POST' 'http://localhost:5000/v1/organizations' \
  -H 'Content-Type: application/json' \
  -d '{ "board": [ "string" ], "ceo": "string", "departments": [ { "manager": "string", "teams": [ { "manager": "string", "members": [ "string" ], "team_type": "A", "active": true, "capacity": 0, "value": 0 } ] } ] }'

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

mash-shell-0.0.6.tar.gz (63.1 kB view hashes)

Uploaded Source

Built Distribution

mash_shell-0.0.6-py3-none-any.whl (67.5 kB view hashes)

Uploaded Python 3

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