Skip to main content

asyncio drivers for FoundationDB

Project description

asyncio drivers for foundationdb tested with CPython 3.5+

In [1]: import found
In [2]: import asyncio
In [3]: found.api_version(600)
In [4]: loop = asyncio.get_event_loop()
In [5]: db = loop.run_until_complete(
In [6]: tr = db._create_transaction()
In [7]: loop.run_until_complete(tr.get(b'hello'))
In [8]: tr.set(b'hello', b'world')
In [9]: loop.run_until_complete(tr.get(b'hello'))
Out[9]: b'world'

Also @transactional is supported.

Getting started

pip install asyncio-foundationdb


You must read the official python api documentation, it is awesome.

In general, the asyncio bindings are the same except there is async and await that must be added here and there.

Here are differences with the synchronous bindings:

  • no shorthand syntax like: foo[b'bar']
  • You can do value is None instead of value == None
  • Transaction.get_range returns a list of (key, value) pairs

If something is missing it’s a bug, please fill an issue.

Project details

Download files

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

Files for asyncio-foundationdb, version 0.7.0
Filename, size File type Python version Upload date Hashes
Filename, size asyncio-foundationdb-0.7.0.tar.gz (24.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page