Skip to main content

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

Metadata

Release files for inspiro 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for inspiro 0.0.3
File Size Uploaded Provenance Actions
inspiro-0.0.3.tar.gz 4.6 kB Without provenance Details for inspiro-0.0.3.tar.gz

Release files / inspiro-0.0.3.tar.gz

Download URL inspiro-0.0.3.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2c87a85f3622cef931194f2fc9d48089745ae1ba3b252f38c5279aaee497e967
BLAKE2b-256 checksum
How to use checksums
e8077bf8498dfdbac9e4f9ff0d14de000cc03b1ad8415c3301532cb075275bca
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for inspiro 0.0.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page