fauna-easy-0.0.1
توضیحات
A convenient wrapper around faunadb-py that abstracts away FQL code for the database service faunadb.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | fauna-easy-0.0.1 |
| نام | fauna-easy |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | DudeBro249 |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/DudeBro249/fauna-easy-py |
| آدرس اینترنتی | https://pypi.org/project/fauna-easy/ |
| مجوز | Apache License 2.0 |
# 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](https://pypi.org/) to install fauna-easy.
```bash
pip install fauna_easy
```
## QuickStart
```python
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
[Apache License 2.0](https://choosealicense.com/licenses/apache-2.0/)
نیازمندی
| مقدار | نام |
|---|---|
| - | faunadb |
| - | pydantic |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl fauna-easy-0.0.1:
pip install fauna-easy-0.0.1.whl
نصب پکیج tar.gz fauna-easy-0.0.1:
pip install fauna-easy-0.0.1.tar.gz