Fuck Off As A Service
Project description
async_foaas
A simple Async Python library to FOAAS.
- Author: Alex Raskin
- Version: 0.3.0
- License: MIT
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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02aa0bfc8a87ce0dff69852908aa590a634a8b29b19fbce03254619cafc24d03
|
|
| MD5 |
b620f671049744f0457bc2abfe41e927
|
|
| BLAKE2b-256 |
1fa175dea5a2059cfe9c7ba20cc3304350a6e41c5758ca768a3478c786ad8de7
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab88622eb67c0a9dce7bd8819fc2d23a144a134b422f77c06aab5b32d896f824
|
|
| MD5 |
f91c6e5b8e433dc569ebcccdf3e2cf24
|
|
| BLAKE2b-256 |
a79f3b1698a76d38d0748b14512fe7f0022c655e3cf434f883831550d918b0d9
|