Metadata-Version: 2.1
Name: xango
Version: 0.1.3
Summary: xango 
Home-page: https://github.com/mardix/xango
Author: Mardix
Author-email: mardix@blackdevhub.io
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Database
Requires-Python: >=3.8.0
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: cuid2
Requires-Dist: arrow
Requires-Dist: python-slugify
Requires-Dist: Jinja2>=3.0
Requires-Dist: python-arango==7.5.8

# Xango

**Xango**

## API

- `db` 
- `xql_to_aql`
- `parse_dict_mutations`
- `gen_xid`
- `Collection` 
- `CollectionItem`
- `CollectionActiveRecordMixin`
- 
## Connection

```
import xango

#--- connect
db = xango.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 



```
  {
    "_modified_at:$datetime": "+2hh"
  }
```

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


