program your own commands
Project description
NAME
OBX - program your own commands
SYNOPSIS
>>> from obx import Object, dumps, loads >>> o = Object() >>> o.a = "b" >>> txt = dumps(o) >>> loads(txt) {"a": "b"}
DESCRIPTION
OBX has all the python3 code to program a unix cli program, such as disk perisistence for configuration files, event handler to handle the client/server connection, code to introspect modules for commands, deferred exception handling to not crash on an error, a parser to parse commandline options and values, etc. OBX uses object programming (OP) that allows for easy json save//load to/from disk of objects. It provides an "clean namespace" Object class that only has dunder methods, so the namespace is not cluttered with method names. This makes storing and reading to/from json possible.
CONTENT
obx.brokers object broker obx.excepts deferred exception handling obx.handler event handler obx.locates find objects on disk obx.objects a clean namespace obx.parsers arguments parsing obx.persist object store obx.repeats repeaters obx.threads threads obx.workdir directory to store objects
INSTALL
$ pip install obx
AUTHOR
Bart Thate <bthate@dds.nl>
COPYRIGHT
OBX is Public Domain.
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
obx-2.tar.gz
(10.0 kB
view details)
File details
Details for the file obx-2.tar.gz
.
File metadata
- Download URL: obx-2.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e9379bededdbefc25e85314465fa675d5f10e6544bc4727289b8dfb7d9eeb41 |
|
MD5 | 8f5cac6db2d2a2d979d548c68eae3789 |
|
BLAKE2b-256 | 214cbc7cb86f39a09e1257867a207ea37b4a78e052b2659d52fc53cb3edbc95a |