FaunaDB Python driver
Project description
Python driver for FaunaDB.
Installation
$ pip install faunadb
Compatibility
The following versions of Python are supported:
Python 2.7
Python 3.3
Python 3.4
Python 3.5
Python 3.6
Documentation
Driver documentation is available at https://faunadb.readthedocs.org/en/latest/.
See the FaunaDB Documentation for a complete API reference, or look in tests for more examples.
Basic Usage
The first step for any program is to create a client instance. This object must be explicitly threaded through any code that needs to access FaunaDB.
FaunaDB can be used directly using the query API.
Building it yourself
Setup
$ virtualenv venv
$ source venv/bin/activate
$ pip install .
Testing
To run the tests you must have a FaunaDB database available. Then set the environment variable FAUNA_ROOT_KEY to your database’s root key. If you use FaunaDB cloud, this is the password you log in with.
Then run make test. To test a single test, use e.g. python -m unittest tests.test_client.ClientTest.test_ping.
Coverage
To run the tests with coverage, install the coverage dependencies with pip install .[coverage], and then run make coverage. A summary will be displayed to the terminal, and a detailed coverage report will be available at htmlcov/index.html.
Documenting
Run pip install .[doc] to install the needed packages to generate the docs. Then run make doc, then open docs/_build/html/index.html in a web browser.
Contribute
GitHub pull requests are very welcome.
License
Copyright 2017 Fauna, Inc.
Licensed under the Mozilla Public License, Version 2.0 (the “License”); you may not use this software except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file faunadb-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: faunadb-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea2009f3228fda17728e88dee5d46fc68d3cbc2bc193796d8c07a585dbb02897 |
|
MD5 | c23daa1297064cb740e328953a3b334a |
|
BLAKE2b-256 | 2c1016730bc0f65b4c3814571416913187327d8412d0986f7eb41d93bf5024c3 |