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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file async_foaas-0.4.0.tar.gz.

File metadata

  • Download URL: async_foaas-0.4.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for async_foaas-0.4.0.tar.gz
Algorithm Hash digest
SHA256 02aa0bfc8a87ce0dff69852908aa590a634a8b29b19fbce03254619cafc24d03
MD5 b620f671049744f0457bc2abfe41e927
BLAKE2b-256 1fa175dea5a2059cfe9c7ba20cc3304350a6e41c5758ca768a3478c786ad8de7

See more details on using hashes here.

File details

Details for the file async_foaas-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: async_foaas-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for async_foaas-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab88622eb67c0a9dce7bd8819fc2d23a144a134b422f77c06aab5b32d896f824
MD5 f91c6e5b8e433dc569ebcccdf3e2cf24
BLAKE2b-256 a79f3b1698a76d38d0748b14512fe7f0022c655e3cf434f883831550d918b0d9

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 Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page