# syst3m
Author(s): Daan van den Bergh.<br>
Copyright: © 2020 Daan van den Bergh All Rights Reserved.<br>
Supported Operating Systems: macos & linux.<br>
<br>
<br>
<p align="center">
<img src="https://raw.githubusercontent.com/vandenberghinc/public-storage/master/vandenberghinc/icon/icon.png" alt="Bergh-Encryption" width="50">
</p>
## Table of content:
* [Description](#description)
* [Installation](#installation)
* [CLI Usage](#cli-usage)
* [Code Examples](#code-examples)
# Description:
Python & cli toolset for the os system.
# Installation:
Install the package.
pip3 install syst3m --upgrade && python3 -c 'import syst3m' --create-alias syst3m --sudo
# CLI Usage:
Usage: syst3m <mode> <options>
Modes:
--user myuser : Configure a system user (linux).
--check : Check the existance of the specified group.
--create : Create the specified group.
--delete : Delete the specified group.
--password MyPassword : Set the password of the specifed user (leave password blank for safe prompt).
--add-groups group1,group2 : Add the specified user to groups.
--delete-groups group1,group2 : Remove the specified user from groups.
--group mygroup : Configure a system group (linux).
--list-users : List the users of the specified group.
--add-users user1,user2 : Add users from the specified group.
--delete-users user1,user2 : Delete users from the specified group.
--force-users user1,user2 : Add the specified users to the group and remove all others.
--disk-space : Get the free disk space (linux).
--size /path/to/file : Get the size of a file / directory (linux).
-h / --help : Show the documentation.
Author: Daan van den Bergh.
Copyright: © Daan van den Bergh 2020 - 2021. All rights reserved.
# Code Examples:
### Table of content:
- [__Browser__](#browser)
* [get](#get)
* [get_element](#get_element)
- [__Cache__](#cache)
* [set](#set)
* [get](#get-1)
* [delete](#delete)
- [__Color__](#color)
* [remove](#remove)
* [fill](#fill)
* [boolean](#boolean)
- [__Disks__](#disks)
* [list](#list)
* [erase](#erase)
* [partition](#partition)
* [format](#format)
* [mount](#mount)
* [unmount](#unmount)
- [__Env__](#env)
* [fill](#fill-1)
* [import_](#import_)
* [export](#export)
* [get](#get-2)
* [get_string](#get_string)
* [get_boolean](#get_boolean)
* [get_integer](#get_integer)
* [get_array](#get_array)
* [get_tuple](#get_tuple)
* [get_dictionary](#get_dictionary)
* [set](#set-1)
* [set_string](#set_string)
* [set_boolean](#set_boolean)
* [set_integer](#set_integer)
* [set_array](#set_array)
* [set_tuple](#set_tuple)
* [set_dictionary](#set_dictionary)
- [__Group__](#group)
* [create](#create)
* [delete](#delete-1)
* [check](#check)
* [list_users](#list_users)
* [delete_users](#delete_users)
* [add_users](#add_users)
* [check_users](#check_users)
- [__Loader__](#loader)
* [run](#run)
* [stop](#stop)
* [mark](#mark)
* [hold](#hold)
* [release](#release)
- [__Output__](#output)
* [instance](#instance)
- [__ProgressLoader__](#progressloader)
* [next](#next)
* [stop](#stop-1)
- [__RestAPI__](#restapi)
* [request](#request)
- [__Service__](#service)
* [create](#create-1)
* [check](#check-1)
* [delete](#delete-2)
* [start](#start)
* [stop](#stop-2)
* [restart](#restart)
* [status](#status)
* [reset_logs](#reset_logs)
* [tail](#tail)
- [__Symbol__](#symbol)
- [__User__](#user)
* [create](#create-2)
* [delete](#delete-3)
* [check](#check-2)
* [set_password](#set_password)
* [add_groups](#add_groups)
* [delete_groups](#delete_groups)
- [__WebServer__](#webserver)
* [set](#set-2)
* [get](#get-3)
* [app](#app)
* [run](#run-1)
* [fork](#fork)
* [stop](#stop-3)
* [start_thread](#start_thread)
* [get_thread](#get_thread)
* [token](#properties)
## Browser:
The browser object class.
``` python
# initialize the browser object class.
browser = syst3m.classes.browser.Browser(
# the driver.
driver="chromedriver", )
```
#### Functions:
##### get:
``` python
# call browser.get.
_ = browser.get(url)
```
##### get_element:
``` python
# call browser.get_element.
_ = browser.get_element(
# the element type.
element="input",
# the attribute name.
attribute="name",
# the attributes value.
value="username",
# the parent element (default is browser.driver).
parent=None, )
```
## Cache:
The cache object class.
``` python
# initialize the cache object class.
cache = syst3m.classes.cache.Cache(path=None)
```
#### Functions:
##### set:
``` python
# call cache.set.
_ = cache.set(data=None, group=None, id=None, format="str")
```
##### get:
``` python
# call cache.get.
_ = cache.get(group=None, id=None, format="str", default=None)
```
##### delete:
``` python
# call cache.delete.
_ = cache.delete(group=None, id=None, forced=False, sudo=False)
```
## Color:
The color object class.
``` python
# initialize the color object class.
color = syst3m.classes.color.Color()
```
#### Functions:
##### remove:
``` python
# call color.remove.
_ = color.remove(string)
```
##### fill:
``` python
# call color.fill.
_ = color.fill(string)
```
##### boolean:
``` python
# call color.boolean.
_ = color.boolean(boolean, red=True)
```
## Disks:
The disks object class.
``` python
# initialize the disks object class.
disks = syst3m.classes.disks.Disks()
```
#### Functions:
##### list:
``` python
# call disks.list.
_ = disks.list()
```
##### erase:
``` python
# call disks.erase.
response = disks.erase(
# the device without partition number (/dev/sdb).
device=None, )
```
##### partition:
``` python
# call disks.partition.
response = disks.partition(
# the device without partition number (/dev/sdb).
device=None, )
```
##### format:
``` python
# call disks.format.
response = disks.format(
# the device with partition number (/dev/sdb1).
device=None,
# the assigned label (name).
label=None, )
```
##### mount:
``` python
# call disks.mount.
response = disks.mount(
# the device with partition number (/dev/sdb1).
device=None,
# the mountpoint path.
path=None, )
```
##### unmount:
``` python
# call disks.unmount.
response = disks.unmount(
# the mountpoint path.
path=None, )
```
## Env:
The env object class.
``` python
# initialize the env object class.
env = syst3m.classes.env.Env()
```
#### Functions:
##### fill:
``` python
# call env.fill.
_ = env.fill(string)
```
##### import_:
``` python
# call env.import_.
response = env.import_(env=None)
```
##### export:
``` python
# call env.export.
response = env.export(env=None, export=None)
```
##### get:
``` python
# call env.get.
_ = env.get(id, default=None, format="str")
```
##### get_string:
``` python
# call env.get_string.
_ = env.get_string(id, default=None)
```
##### get_boolean:
``` python
# call env.get_boolean.
_ = env.get_boolean(id, default=None)
```
##### get_integer:
``` python
# call env.get_integer.
_ = env.get_integer(id, default=None)
```
##### get_array:
``` python
# call env.get_array.
_ = env.get_array(id, default=None)
```
##### get_tuple:
``` python
# call env.get_tuple.
_ = env.get_tuple(id, default=None)
```
##### get_dictionary:
``` python
# call env.get_dictionary.
_ = env.get_dictionary(id, default=None)
```
##### set:
``` python
# call env.set.
_ = env.set(id, value, format="unknown")
```
##### set_string:
``` python
# call env.set_string.
_ = env.set_string(id, value)
```
##### set_boolean:
``` python
# call env.set_boolean.
_ = env.set_boolean(id, value)
```
##### set_integer:
``` python
# call env.set_integer.
_ = env.set_integer(id, value)
```
##### set_array:
``` python
# call env.set_array.
_ = env.set_array(id, value)
```
##### set_tuple:
``` python
# call env.set_tuple.
_ = env.set_tuple(id, value)
```
##### set
挣扎的蓝藻
- 粉丝: 14w+
- 资源: 15万+
最新资源
- 自考02197概率论与数理统计(二)试卷及答案解释2016-2021
- java毕设项目之游戏分享网站lw(完整前后端+说明文档+mysql).zip
- java毕设项目之ssm助学贷款+jsp(完整前后端+说明文档+mysql+lw).zip
- IBM Instana应用性能监视.pptx
- webview+H5来实现的android短视频(短剧)音视频播放依赖控件资源
- 黑马最新Hive存储压缩与优化课程总结
- 商城系统项目源代码全套技术资料.zip
- 番茄图像目标检测数据【已标注,约4,300张数据,YOLO 标注格式】
- 校园生活相关项目源代码全套技术资料.zip
- C语言上机实验_1.pptx
- 基于遗传算法求解TSP问题的研究 50个样本点
- 基于XGBoost的振动数据预警模型与参数优化技术-构建一个基于XGBoost的振动信息数据集预警模型 首先引入算法实现动态阈值设置,然后进行参数优化
- sublimeText 4
- 西红柿叶片缺陷分类数据集【已标注,约500张数据】
- 自考00023《高等数学(工本)》试题及答案及复习资料
- 智能点阵笔项目源代码全套技术资料.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈