domainrules-0.1.9
توضیحات
Let's describe alowed rules!
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | domainrules-0.1.9 |
| نام | domainrules |
| نسخه کتابخانه | 0.1.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Svyatoslav |
| ایمیل نویسنده | svyatka@gmail.com |
| آدرس صفحه اصلی | https://github.com/Svyat33/domain_rules |
| آدرس اینترنتی | https://pypi.org/project/domainrules/ |
| مجوز | - |
Describe rules for domain
Usage example:
```python
import json
from domainrules import Domain, Rule
from domainrules.fabric import NewRule
#1. Set rules decorators
domain = Domain("")
# default bal - 0
base_rule = Rule(domain).set_rules(bal=0)
system_domain_rules: list[dict]
for rule in system_domain_rules:
rule_dict = json.loads(rule)
base_rule = NewRule.build(base_rule, rule_dict)
#2. apply
system_domain_rules.name = "somedomain.com"
if system_domain_rules.weight > 50:
print("Warning!")
```
نیازمندی
| مقدار | نام |
|---|---|
| - | pydantic>=1.8.1 |
| - | levenshtein>=0.12.0 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl domainrules-0.1.9:
pip install domainrules-0.1.9.whl
نصب پکیج tar.gz domainrules-0.1.9:
pip install domainrules-0.1.9.tar.gz