Fauna Easy Python
A convenient wrapper around faunadb for python that abstracts away FQL code for the database service faunadb
Installation
Use the package manager pip to install fauna-easy.
pip install fauna_easy
QuickStart
from fauna_easy.base_model import FaunaEasyBaseModel
from pydantic import BaseModel
from faunadb.client import FaunaClient
if __name__ == '__main__':
class NewPost(BaseModel):
title: str
content: str
fauna_client = FaunaClient('YOUR_CLIENT_SECRET')
Post = FaunaEasyBaseModel('posts', NewPost)
create_query = Post.create({
'title': 'my post title',
'content': 'my post content'
}) # Will not automatically create document in database. This merely creates the query
created_documents = fauna_client.query(create_query) # creates document in database
print(created_documents)
Documentation
Still under development :)
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
Metadata
Release files for fauna-easy 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fauna_easy-0.0.1.tar.gz | 6.2 kB | Without provenance | Details for fauna_easy-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fauna_easy-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for fauna_easy-0.0.1-py3-none-any.whl |
Total release size: 12.9 kB
Release files / fauna_easy-0.0.1.tar.gz
| Download URL | fauna_easy-0.0.1.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
369b61f99257b150eba42bb02c581584ceb94e258cdabe52dab653a9543ca449
|
|
BLAKE2b-256 checksum How to use checksums |
6a255a9b1a0cc301a44832428da64cf257a26ccc0885627bee407be1c29355de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.5
|
Release files / fauna_easy-0.0.1-py3-none-any.whl
| Download URL | fauna_easy-0.0.1-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2c6a8ea9232888c7a2dfeea91a80ef6731a3663b9aa5239dbe78dfee989573e3
|
|
BLAKE2b-256 checksum How to use checksums |
81d186a7e65753925c239f4ac9235660b48fc1dcda8d1dcdad5ea04b0cf79ddf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.5
|
Security for fauna-easy 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.