Skip to main content

Say Hello!

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ask_pepperonit-0.0.8.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

ask_pepperonit-0.0.8-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file ask_pepperonit-0.0.8.tar.gz.

File metadata

  • Download URL: ask_pepperonit-0.0.8.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for ask_pepperonit-0.0.8.tar.gz
Algorithm Hash digest
SHA256 9f7fb783f9fa3ace05aa7fd310224914dc44601270b37502d02ccb869fdeb8d2
MD5 e1aa27c55741faee39533bb6e23ec6f0
BLAKE2b-256 3017050151af209092ea62d57eda3448960534e4418ee384cd79bf7e542e45a3

See more details on using hashes here.

File details

Details for the file ask_pepperonit-0.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for ask_pepperonit-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 550a2ee3ef2f77764ef60d7c8dc63853e02244008086f96a9951d967c240d122
MD5 7a8edde07ad250296da15c6e85d041fe
BLAKE2b-256 b4f695b47798b405b64211abd273683ee58e9403764a765231a4742c14b187a1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page