Skip to main content

Python3 API wrapper for InspiroBot

Project description

Inspirobot API

A Python3 api wrapper for InspiroBot

Requirements

  • Python 3.5+
  • Requests

Install

Using PyPi (Pip)

python3 -m pip install inspiro

Using Git

python3 -m pip install git+https://github.com/SamHDev/inspiro.git

Manual

git clone https://github.com/SamHDev/inspiro.git inspiro_python
cd inspiro_python
python3 -m pip -r requirements.txt
python3 -m pip install .

Usage

Generating a classic Quote Image

import inspirobot  # Import the libary
quote = inspirobot.generate()  # Generate Image
print(quote.url)  # Print the url

Using the mindfullness (flow) API

import inspirobot  # Import the libary
flow = inspirobot.flow()  # Generate a flow object
for quote in flow:
    print(quote.text)

Spamming the mindfullness (flow) API

import inspirobot  # Import the libary
flow = inspirobot.flow()  # Generate a flow object
for i in range(0, 100):
    for quote in flow:
        print(quote.text, quote.image.url)
    flow.new()
    print("-"*50)
HTTP Mode

Does your work/school network use https interception? Mine sure does!

import inspirobot
inspirobot.HTTPS = False

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

inspiro-0.0.3.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file inspiro-0.0.3.tar.gz.

File metadata

  • Download URL: inspiro-0.0.3.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.8.3 requests/2.26.0 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.9.6

File hashes

Hashes for inspiro-0.0.3.tar.gz
Algorithm Hash digest
SHA256 2c87a85f3622cef931194f2fc9d48089745ae1ba3b252f38c5279aaee497e967
MD5 a3624f558fbf1bbae24a540cd24a82e9
BLAKE2b-256 e8077bf8498dfdbac9e4f9ff0d14de000cc03b1ad8415c3301532cb075275bca

See more details on using hashes here.

Supported by

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