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
Metadata
Release files for async-foaas 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| async_foaas-0.4.0.tar.gz | 4.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| async_foaas-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.6 kB
Release files / async_foaas-0.4.0.tar.gz
| Download URL | async_foaas-0.4.0.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
02aa0bfc8a87ce0dff69852908aa590a634a8b29b19fbce03254619cafc24d03
|
|
BLAKE2b-256 checksum How to use checksums |
1fa175dea5a2059cfe9c7ba20cc3304350a6e41c5758ca768a3478c786ad8de7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / async_foaas-0.4.0-py3-none-any.whl
| Download URL | async_foaas-0.4.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ab88622eb67c0a9dce7bd8819fc2d23a144a134b422f77c06aab5b32d896f824
|
|
BLAKE2b-256 checksum How to use checksums |
a79f3b1698a76d38d0748b14512fe7f0022c655e3cf434f883831550d918b0d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Security for async-foaas 0.4.0
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.