NIXM
Project description
NAME
nixm - NIXM
SYNOPSIS
nixmctl <cmd> [key=val] [key==val]nixmdnixms
DESCRIPTION
NIXM 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.
NIXM 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.
NIXM 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, deferred exception handling to not crash on an error, etc.
NIXM is Public Domain.
You need to set PYTHONPATH if you run this locally.
You might need to uninstall and rm ~/.cache/pip in case of error.
INSTALL
installation is done with pipx
$ pipx install nixm$ pipx ensurepath<new terminal>$ nixmctl srv > nixm.service$ sudo mv nixm.service /etc/systemd/system/$ sudo systemctl enable nixm --nowjoins #nixm on localhost
USAGE
without any argument the bot does nothing
$ nixm$see list of commands
$ nixmctl cmdcfg,cmd,dne,dpl,err,exp,imp,log,mod,mre,nme,now,pwd,rem,req,res,rss,srv,syn,tdo,thr,uptstart daemon
$ nixmd$start service
$ nixms<runs until ctrl-c>show request to the prosecutor
$ nixm reqInformation and Evidence UnitOffice of the ProsecutorPost Office Box 195192500 CM The HagueThe Netherlands
COMMANDS
here is a list of available commands
cfg - irc configurationcmd - commandsdpl - sets display itemserr - show errorsexp - export opml (stdout)imp - import opmllog - log textmre - display cached outputnow - show genocide statspwd - sasl nickserv name/passrem - removes a rss feedres - restore deleted feedsreq - reconsiderrss - add a feedsyn - sync rss feedstdo - add todo itemthr - show running threadsupt - show uptime
CONFIGURATION
irc
$ nixmctl cfg server=<server>$ nixmctl cfg channel=<channel>$ nixmctl cfg nick=<nick>sasl
$ nixmctl pwd <nsvnick> <nspass>$ nixmctl cfg password=<frompwd>rss
$ nixmctl rss <url>$ nixmctl dpl <url> <item1,item2>$ nixmctl rem <url>$ nixmctl nme <url> <name>opml
$ nixmctl exp$ nixmctl imp <filename>
SOURCE
source is here
FILES
~/.nixm~/.local/bin/nixmctl~/.local/bin/nixmd~/.local/bin/nixms~/.local/pipx/venvs/nixm/*
AUTHOR
Bart Thate <record11719@gmail.com>
COPYRIGHT
NIXM 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
File details
Details for the file nixm-46.tar.gz
.
File metadata
- Download URL: nixm-46.tar.gz
- Upload date:
- Size: 25.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ced7b283520fb24926e76798ff4983b40a0774bc56a70e1018d0871e959c4613 |
|
MD5 | e50d263aa500fbf479b962d205916d36 |
|
BLAKE2b-256 | f5a046c036c6417ed05e141d5bb397f53127653a12da62223efaca1a6bed918a |