A shell and other utils
Project description
Docs: MAIN | SHELL.md | REFERENCE.md
Overview
A subshell and various utilities.
- A shell that can interpret a domain-specific language:
shell.py
. - A client application for REST APIs with a programmatic yet intuitive interface.
- A subshell wrapper, to redirect the output of shell scripts:
subshell.py
. - 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
.
Links
Shell
See SHELL.md and REFERENCE.md.
Usage
pip install mash-shell
python -m mash
See src/examples
for advances usages.
Setup
Using a Makefile
for convenience.
make install
make test
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
- src/object_parser/object_parser.py parses JSON data and instantiate Python objects.
- src/object_parser/oas.py converts domain-models to OAS.
Example
python src/object_parser_example.py
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
Release history Release notifications | RSS feed
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.2.0.tar.gz
(80.0 kB
view hashes)
Built Distribution
mash_shell-0.2.0-py3-none-any.whl
(86.4 kB
view hashes)
Close
Hashes for mash_shell-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 945d8f8f2dc17ecedc7d45e6541cf3d7d837f56a1976f6adf950397d624371ae |
|
MD5 | 3851c9c5019f3dd9473ac49e67eebf80 |
|
BLAKE2b-256 | 7c7e82996579aa0773e58be4428284912a9df6f0db886da2664917ea54bdb25f |