objects
Project description
NAME
OBJX - objects
SYNOPSIS
objx <cmd> [key=val] [key==val] objx [-a] [-c] [-d] [-i] [-v] options are: -a load all modules -c start console -d run in the background -h show help -i start services -v use verbose
INSTALL
$ pipx install objx $ pipx ensurepath
DESCRIPTION
OBJX contains all the python3 code to program objects in a functional way. It provides a base Object class that has only dunder methods, all methods are factored out into functions with the objects as the first argument. It is called Object Programming (OP), OOP without the oriented. OBJX 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. OBJX has all you need 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. OBJX has a demo bot, it can connect to IRC, fetch and display RSS feeds, take todo notes, keep a shopping list and log text. You can also copy/paste the service file and run it under systemd for 24/7 presence in a IRC channel. OBJX is Public Domain.
CONFIGURATION
$ objx cfg channel=#objx commands=True nick=objx port=6667 server=localhost irc $ objx cfg server=<server> $ objx cfg channel=<channel> $ objx cfg nick=<nick> sasl $ objx pwd <nsvnick> <nspass> $ objx cfg password=<frompwd> rss $ objx rss <url> $ objx dpl <url> <item1,item2> $ objx rem <url> $ objx nme <url> <name> opml $ objx exp $ objx imp <filename>
USAGE
without any argument the program does nothing $ objx $ see list of commands $ objx cmd cmd,err,mod,req,thr,ver list of modules $ objx mod cmd,err,fnd,irc,log,mod,req,rss,tdo,thr use -c to start a console $ objx -c use mod=<name1,name2> to load additional modules $ botl -c mod=irc,rss > use -v for verbose $ objx -civ mod=irc BOTL started CV started Sat Dec 2 17:53:24 2023 >
COMMANDS
cmd - commands cfg - irc configuration dlt - remove a user dpl - sets display items fnd - find objects log - log some text met - add a user mre - displays cached output pwd - sasl nickserv name/pass rem - removes a rss feed rss - add a feed thr - show the running threads
SYSTEMD
save the following it in /etc/systemd/system/objx.service and replace "<user>" with the user running pipx [Unit] Description=objects Requires=network-online.target After=network-online.target [Service] Type=simple User=<user> Group=<user> WorkingDirectory=/home/<user>/.objx ExecStart=/home/<user>/.local/pipx/venvs/objx/bin/objx -d RemainAfterExit=yes [Install] WantedBy=default.target then run this $ mkdir ~/.objx $ sudo systemctl enable objx --now default channel/server is #objx on localhost
FILES
~/.objx ~/.local/bin/objd ~/.local/bin/objsh ~/.local/bin/objx ~/.local/pipx/venvs/objx/
AUTHOR
xobjectz <objx@proton.me>
COPYRIGHT
OBJX is Public Domain.
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
objx-92.tar.gz
(27.1 kB
view details)
File details
Details for the file objx-92.tar.gz
.
File metadata
- Download URL: objx-92.tar.gz
- Upload date:
- Size: 27.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 374f203f67cfef1a64dad653af74b54763e576654fa72e3a5e2516068f659e83 |
|
MD5 | 1bb860eba7551979bd4e2c84bfe8f5d7 |
|
BLAKE2b-256 | 68af0ffecb085d92ff25be750d342b1995a025d299292a89c12698ff095ff95e |