Skip to main content

Fuck Off As A Service

Project description

async_foaas

A simple Async Python library to FOAAS.

Documentation

Installation

This package relies on httpx, async-property and should be installed with pip:

pip install async_foaas

Basic Usage

Fuck off:

from async_foaas import Fuck
import asyncio

fuck = Fuck(secure=True)

async def main():
  fuck_off = await fuck.off(name='Tom', from_='Chris').text
  print(fuck_off)

asyncio.run(main())

Give me some fucking JSON:

print(await fuck.that(from_='Chris').json)
{u'message': u'Fuck that.', u'subtitle': u'- Chris'}

Just get the fucking URL:

print(fuck.everything(from_='Chris').url)
http://foaas.dev/everything/Chris

Give me some random fucking things:

print(await fuck.random(from_='Chris').text)
Fuck you very much. - Chris

print(await fuck.random(from_='Chris').text)
Fuck my life. - Chris

print (await fuck.random(name='Tom', from_='Chris').text)
Fuck me gently with a chainsaw, Tom. Do I look like Mother Teresa? - Chris

print(await fuck.random(name='Tom', from_='Chris').text)
Fuck off, Tom. - Chris

Supported Actions

  • fuck.awesome(from_)
  • fuck.ballmer(name, company, from_)
  • fuck.because(from_)
  • fuck.bus(name, from_)
  • fuck.bye(from_)
  • fuck.caniuse(namer, from_)
  • fuck.chainsaw(name, from_)
  • fuck.cool(from_)
  • fuck.diabetes(from_)
  • fuck.donut(name, from_)
  • fuck.everyone(from_)
  • fuck.everything(from_)
  • fuck.fascinating(from_)
  • fuck.field(name, from_, reference)
  • fuck.flying(from_)
  • fuck.king(name, from_)
  • fuck.life(from_)
  • fuck.linus(name, from_)
  • fuck.madison(name, from_)
  • fuck.nugget(name, from_)
  • fuck.off(name, from_)
  • fuck.outside(name, from_)
  • fuck.pink(from_)
  • fuck.thanks(from_)
  • fuck.that(from_)
  • fuck.thing(thing, from_)
  • fuck.this(from_)
  • fuck.random(name, from_)
  • fuck.shakespeare(name, from_)
  • fuck.what(from_)
  • fuck.xmas(name, from_)
  • fuck.yoda(name, from_)
  • fuck.you(name, from_)

tl;dr

foaas.Fuck([secure=True]).<action>(**kwargs)[.<url|html|text|json>]

Testing

$ python tests.py
.......
----------------------------------------------------------------------
Ran 7 tests in 0.724s

OK

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

async_foaas-0.4.0.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

async_foaas-0.4.0-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

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