Python-Utils is intended to be a swiss-army-knife toolbox that houses boilerplate codes for many apps or scripts. A generic set of libs to access the following: (inspired by my home-automation services)
- databases,
- config files,
- logs,
- email servers for notifications,
- simple encryption, etc...
- common.utils : add support for log, config, etc...
- common.mongo : add basic MongoDB CRUD support to your script/app
- common.fm : basic file management (file processing most common tasks)
config.json
{
"service": {
"app-name": "app",
"app-logs": "logs",
"log-level": "DEBUG",
"log-stdout": true,
"base-url": "/",
"security": null
}
}
or
config.yaml
service:
app-name: app
app-log: /var/log
log-level: INFO
log-stdout: true
sendmail:
server: mta.sendmail.com
port: null
default-from: [email protected]
to:
- [email protected]
- [email protected]
- [email protected]
subject: "sending emails"
body: "This is an email..."