docs: update README
This commit is contained in:
12
README.rst
12
README.rst
@@ -1,15 +1,19 @@
|
||||
.. code:: python
|
||||
|
||||
import asyncio
|
||||
import logging
|
||||
|
||||
from ppgee import PPGEE
|
||||
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
|
||||
async def main():
|
||||
|
||||
async def main() -> None:
|
||||
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")
|
||||
frequency_page = await ppgee.frequency()
|
||||
print(frequency_page.history())
|
||||
await frequency_page.confirm()
|
||||
await asyncio.sleep(5)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user