aog
===
A simple and easy to use python client library for Actions on google webhook.
Installation
============
Fast install:
```
pip install aog
```
Example
=======
```python
import json
import os
from flask import Flask
from flask import request
from flask import make_response
from aog import conv
# Flask app should start in global layout
app = Flask(__name__)
@app.route('/', methods=['POST'])
def fullfillment():
req = request.get_json(silent=True, force=True)
print("Request:")
print(json.dumps(req, indent=4))
res = makeFullfillment(req)
res = json.dumps(res, indent=4)
#print(res)
final = make_response(res)
final.headers['Content-Type'] = 'application/json'
return final
def makeFullfillment(req):
# Wrte your python code here
#isfrom function is used to check from which dialogflow intent request came from.
if conv.isfrom(req,'ask_intent'):
# ask method expect a reply from user. after the message mic will be open for user to reply.
res=conv.ask("You made me ask this","You made me print this")
return res
# F I N A L R E S P O N S E
if conv.isfrom(req,'final response'):
# Close is for terminating the conversation with a message.
res=conv.close('Closing')
return res
```
Metadata
Release files for aog 1.0.0
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 | |
|---|---|---|---|---|
| aog-1.0.0.tar.gz | 4.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aog-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.8 kB
Release files / aog-1.0.0.tar.gz
| Download URL | aog-1.0.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e19d739563bfaff33dcd61b71879c5078eed0ba6d2f6bc5dd46dd2c8de24e51c
|
|
BLAKE2b-256 checksum How to use checksums |
cc6a7a9e5a002916b4ac5eb78cd4163d3a37a2da18e0720df5bd5e802f626010
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5
|
Release files / aog-1.0.0-py3-none-any.whl
| Download URL | aog-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fc938e8898a228f25c7fc25ebec7bc3328e4420dd16ef7cada20b854218b0f15
|
|
BLAKE2b-256 checksum How to use checksums |
06fcd617c6ba98b263b016ee8263361f1723620a977df150340d48b55a25f3e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5
|
Security for aog 1.0.0
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.