Skip to main content

program your own commands

Project description

NAME

OBX - program your own commands

INSTALL

$ pipx install obx
$ pipx ensurepath

SYNOPSIS

>>> from obx.object 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.broker     object broker
obx.client     clients
obx.disk       object store
obx.find       find objects on disk
obx.handler    event handler
obx.log        logging
obx.object     a clean namespace
obx.run        runtime
obx.threads    threads

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-3.tar.gz (39.4 kB view details)

Uploaded Source

File details

Details for the file obx-3.tar.gz.

File metadata

  • Download URL: obx-3.tar.gz
  • Upload date:
  • Size: 39.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for obx-3.tar.gz
Algorithm Hash digest
SHA256 1374ef1cb283ffa276af643fd5c8b83b174d4ef08437d9d4ea38feadfa5bee48
MD5 82bbb30327faae7ae7dc678499eb7b3f
BLAKE2b-256 70970c408dcb5ac975ad11e00b3d7f6a2236a01a0fce47e4bc9c1920a0843f78

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