Web_Interaction_Package (ask_pepperonit)
This is a small part collection of methods from a Pepper project. This package does not have any value by itself, but is rather customized for our colleagues to call upon certain methods within their block-programming module.
Functionality mainly revolves around doing calls to Google's and Wikipedia's API with text(string) input and having Pepper display the results in an appropriate way.
Installation
Run the following to install:
pip install ask_pepperonit
Usage / Example
Usage will be demonstrated with bash/terminal use.
In order to use the module, we import the Ask class from the module:
python
from ask_pepperonit import Ask
Then we instatiate the Ask class with your Google search engine information.
ask = Ask("YOUR_GOOGLE_API_KEY", "YOUR_GOOGLE_CX_KEY")
Now we can simply call either ask_google_api or ask_wikipedia_api with a string input
ask.ask_google_api("Cats and dogs")
To which the method returns a string, a link to a google image (Link provided in the terminal aswell)
Contribution
python setup.py bdist_wheel sdist
then:
twine upload .\dist\ask_pepperonit-x.x.x-py3-none-any.whl .\dist\ask_pepperonit-x.x.x.tar.gz
Where "x.x.x" is the version number set in the setup.py file, e.g. "0.0.1"
LICENSE
MIT License
Metadata
Release files for ask-pepperonit 0.0.8
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 | |
|---|---|---|---|---|
| ask_pepperonit-0.0.8.tar.gz | 3.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ask_pepperonit-0.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.5 kB
Release files / ask_pepperonit-0.0.8.tar.gz
| Download URL | ask_pepperonit-0.0.8.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f7fb783f9fa3ace05aa7fd310224914dc44601270b37502d02ccb869fdeb8d2
|
|
BLAKE2b-256 checksum How to use checksums |
3017050151af209092ea62d57eda3448960534e4418ee384cd79bf7e542e45a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Release files / ask_pepperonit-0.0.8-py3-none-any.whl
| Download URL | ask_pepperonit-0.0.8-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
550a2ee3ef2f77764ef60d7c8dc63853e02244008086f96a9951d967c240d122
|
|
BLAKE2b-256 checksum How to use checksums |
b4f695b47798b405b64211abd273683ee58e9403764a765231a4742c14b187a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Security for ask-pepperonit 0.0.8
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.