Standart Library for elixs.dev
Project description
elixs.dev Standart Library
Librarys includes:
- Config File Loader
- MySQL interface
- Logger
- Color interface (based on color4console)
The library is public on GitHub and Licensed under GNU AGPLv3. Contact me via EMail: eliservices.server@gmail.com
Installation
pip install elixs
Usage
import elixs
color("Starting...", "info")
config_obj = ReadConfig("/path/to/dir", "project.conf")
conf_array = config_obj.getconfig("all")
color("I got all configs!", "success")
sql = mySQL(config_obj)
tables = sql.sendquery("SHOW TABLES;")
sql.sendquery("CREATE TABLE firsttable;")
sql.commit()
sql.close()
sqll = MySQLLogger(config_obj, "/path/to/dir")
sqll.create_table("people", [["name", "VARCHAR(10)"], ["age", "INTEGER"]])
sqll.write(beacon)
sqll.close()
color("Script is over", "error")
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
elixs-0.1.1.tar.gz
(17.8 kB
view hashes)
Built Distribution
elixs-0.1.1-py3-none-any.whl
(21.3 kB
view hashes)