From 541ba6ab0379f83966b3d7c277523f784e8bd42b Mon Sep 17 00:00:00 2001 From: tiagovla Date: Mon, 3 Oct 2022 21:42:52 -0300 Subject: [PATCH] docs: update README --- README.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.rst b/README.rst index e69de29..3830b53 100644 --- a/README.rst +++ b/README.rst @@ -0,0 +1,17 @@ +.. code:: python + + import asyncio + from ppgee import PPGEE + + + async def main(): + cpf = "00011122233" + async with PPGEE(user=cpf, password=cpf) as ppgee: + response = await ppgee.frequency() + if "Opção não disponível" in response: + print("Not ready yet") + await asyncio.sleep(5) + + + if __name__ == "__main__": + asyncio.run(main())