This is a Hello World / dev notes for Python/Django, with VirtualEnv to connect to a MySQL/MariaDB instance on MAMP (or separately configured MySQL/MariaDB instance) instead of using the default SQLite. I’m learning how to do very basic UI, RPC calls, and REST JSON – as basic as a Hello World can be. Github The HelloDjango can…
Purpose Scan –inputFolder, identify all the content of the files within the input folder by year and month, and copy them into –outputFolder with files grouped not by existing subfolder, but by year & months subfolders. If –testMode flag is specified, it will not perform an actual copy, but instead will only output action to be performed…
This code snippet is a generic python xml-rpc client that supports custom extensions. This is tested with pytnon 2.6 – usage is as follow: Interactive mode
# run the client like so:
python client.py --url=http://serverUrl:port/path/to/serverPoint
# in interactive mode, you see the CLI interface like so:
xmlrpc >> helloWorld("hello zen")
hello zen #<- this is the response from the server
Oneliner mode You can invoke the client as a one-liner, by passing the xmlrpc function to be called using the –cmd option. Like so:
python client.py --url=http://serverUrl:port/path/to/serverPoint --cmd='helloWorld("hello zen")'
Which is quite…
Introducing, zero-configuration issue tracking system. Still under development 🙂
A quick intro to python documentation string (docstrings) and means to obtain them programmatically. Snippets available – copy, paste and code away!