Skip to main content

angola

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

angola-0.11.2.tar.gz (32.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

angola-0.11.2-py3-none-any.whl (32.5 kB view details)

Uploaded Python 3

File details

Details for the file angola-0.11.2.tar.gz.

File metadata

  • Download URL: angola-0.11.2.tar.gz
  • Upload date:
  • Size: 32.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for angola-0.11.2.tar.gz
Algorithm Hash digest
SHA256 39da998407efc72087b1263e8da8efe2bc48ecd9f222f95e4657426176405b46
MD5 92cbc585d34d24df7fd01e53d6d423db
BLAKE2b-256 0e71495efa3539b78e3987c93fa83fb94fd2089414b841765142095fb3f32a10

See more details on using hashes here.

File details

Details for the file angola-0.11.2-py3-none-any.whl.

File metadata

  • Download URL: angola-0.11.2-py3-none-any.whl
  • Upload date:
  • Size: 32.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for angola-0.11.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1ee7db9b6de34beb9ff7cfdffe7f25a2af60bf0e2b19265b224f1260e011db87
MD5 bcd524534cef1c1a6e8e57354eebb37a
BLAKE2b-256 d6b090043be1094222f5ab87baa07d2e4b4e99194b4a59e8845bd93f2ccfb0c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page