angola-0.10.9
توضیحات
angola
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | angola-0.10.9 |
| نام | angola |
| نسخه کتابخانه | 0.10.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Mardix |
| ایمیل نویسنده | mardix@blackdevhub.io |
| آدرس صفحه اصلی | https://github.com/mardix/angola |
| آدرس اینترنتی | https://pypi.org/project/angola/ |
| مجوز | - |
# Angola
**Angola**
## API
## Connection
```
import angola
#--- connect
db = angola.db(hosts="http://host:8529", username="root", password:str)
#--- select collection
coll = db.select_collection('test')
#--- insert item
coll.insert({k:v, ...})
#--- insert item with custom _key
coll.insert({k:v,...}, _key='awesome')
```
### Query
### @@CURRDATE
`@@CURRDATE($format=None, $dateshifter=None) `
```
{
"_modified_at": "@@CURRDATE() +2Days"
}
```
Format:
```
YYYY: Year
MM: Month
DD: Date
HH: Hour
mm: Min
ss: seconds
ISODATE: YYYY-MM-DDTHH:mm:ss
```
### $AND and $OR
```
filters = {
"$or": [
{ // query between dates
"_created_at:$lt": "@@CURRDATE() -2days",
"_created_at:$gt": "@@CURRDATE() +2days"
}
]
}
```
### Insert
### Update
### Delete
### Collection
### SubCollection
### Operators
### Custom Operators
نیازمندی
| مقدار | نام |
|---|---|
| >=3.0 | Jinja2 |
| - | python-slugify |
| - | arrow |
| - | python3-xid |
| - | python-arango |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8.0 | Python |
نحوه نصب
نصب پکیج whl angola-0.10.9:
pip install angola-0.10.9.whl
نصب پکیج tar.gz angola-0.10.9:
pip install angola-0.10.9.tar.gz